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.
- 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.LICENSE.txt +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 +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.LICENSE.txt +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.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.LICENSE.txt +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 +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.LICENSE.txt +1 -1
- package/dist/meta-adder.esm.js.LICENSE.txt +1 -1
- package/dist/modal-2025.cjs.js.LICENSE.txt +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.LICENSE.txt +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.LICENSE.txt +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 +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.LICENSE.txt +1 -1
- package/dist/spacer.esm.js.LICENSE.txt +1 -1
- package/dist/stack.cjs.js.LICENSE.txt +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 +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.LICENSE.txt +1 -1
- package/dist/video.esm.js.LICENSE.txt +1 -1
- package/dist/wrap.cjs.js.LICENSE.txt +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 -1
- package/layout/audio.js +1 -5
- package/layout/audionew.js +1 -1
- package/layout/base-2.js +1 -1
- package/layout/base.js +1 -1
- package/layout/beta-desktop-bar.js +1 -1
- package/layout/beta-mobile-bar.js +1 -1
- package/layout/button.js +7 -30
- package/layout/cards.js +6 -2
- package/layout/center.js +1 -29
- package/layout/checkbox.js +1 -5
- package/layout/circle.js +6 -2
- package/layout/code.js +1 -1
- package/layout/container.js +15 -16
- package/layout/dropdown-2025.js +1 -1
- package/layout/external-stylesheet.js +1 -1
- package/layout/flex-card.js +20 -10
- package/layout/flex-grid.js +1 -5
- package/layout/flex-row.js +2 -6
- package/layout/footer.js +1 -1
- 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 -1
- package/layout/grid-switcher.js +1 -1
- package/layout/grid.js +1 -1
- package/layout/group.js +6 -6
- package/layout/horizontal-scroller.js +1 -1
- package/layout/image.js +15 -26
- package/layout/index.js +1 -1
- package/layout/label.js +1 -1
- package/layout/link.js +19 -51
- package/layout/list-OLD.js +1 -1
- package/layout/list.js +1 -1
- package/layout/meta-adder.js +1 -1
- package/layout/modal-2025.js +1 -1
- package/layout/multiswitcher.js +1 -1
- package/layout/nav-bar.js +1 -1
- package/layout/nav-factor/custom-div.js +1 -1
- package/layout/navBar-OLD.js +1 -1
- package/layout/new-flat-adder.js +1 -1
- package/layout/new-nav-bar.js +1 -1
- package/layout/offset-container.js +1 -15
- package/layout/polygon.js +7 -12
- package/layout/prerender-site.js +1 -1
- package/layout/prerender.js +1 -1
- package/layout/progress.js +1 -1
- package/layout/row.js +1 -1
- package/layout/saved-new-nav-bar.js +1 -1
- package/layout/scroll-video.js +1 -1
- package/layout/side-bar.js +1 -1
- package/layout/side-nav-bar.js +1 -1
- package/layout/simple-bar.js +1 -1
- package/layout/slider-2025.js +1 -1
- package/layout/spacer.js +1 -1
- package/layout/stack.js +1 -1
- package/layout/svg.js +1 -1
- package/layout/switcher.js +1 -1
- package/layout/table.js +1 -1
- package/layout/text-field.js +14 -28
- package/layout/text.js +2 -45
- package/layout/ulist.js +1 -12
- package/layout/video.js +1 -1
- package/layout/without-new.js +1 -1
- package/layout/wrap.js +1 -1
- package/layout/zoom-card.js +1 -1
- 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/dist/dropdown.cjs.js +0 -2
- package/dist/dropdown.cjs.js.LICENSE.txt +0 -5
- package/dist/dropdown.esm.js +0 -2
- package/dist/dropdown.esm.js.LICENSE.txt +0 -5
- package/layout/box.js +0 -35
- package/layout/clean-row.js +0 -686
- package/layout/custom.js +0 -297
- package/layout/div-image.js +0 -167
- package/layout/dropdown.js +0 -158
- package/layout/empty-element.js +0 -27
- package/layout/grid-new.js +0 -301
- package/layout/header.js +0 -181
- package/layout/image-old.js +0 -453
- package/layout/modernwrap.js +0 -97
- package/layout/multiswitcherBeta.js +0 -69
package/layout/link.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.216
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -720,7 +720,11 @@ if (ft.length > 0){
|
|
|
720
720
|
}
|
|
721
721
|
|
|
722
722
|
background(color){
|
|
723
|
-
|
|
723
|
+
// The shorthand, not backgroundColor: it also resets background-image,
|
|
724
|
+
// so setting a flat colour after a gradient clears the gradient. The
|
|
725
|
+
// longhand left it in place, so the same call behaved differently
|
|
726
|
+
// depending on which component you happened to hold.
|
|
727
|
+
this.res.style.background = color;
|
|
724
728
|
return this;
|
|
725
729
|
}
|
|
726
730
|
|
|
@@ -852,34 +856,32 @@ if (ft.length > 0){
|
|
|
852
856
|
this.res.style.backgroundColor = color;
|
|
853
857
|
return this;
|
|
854
858
|
}*/
|
|
855
|
-
|
|
856
|
-
round(){
|
|
857
|
-
//alert("K")
|
|
858
|
-
this.res.style.borderRadius = "0.5rem";
|
|
859
859
|
|
|
860
|
-
if (this.options.rounded){
|
|
861
|
-
// alert("K");
|
|
862
|
-
this.res.children[0].style.borderRadius = "0.5rem";
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
return this;
|
|
866
|
-
}
|
|
867
860
|
|
|
868
861
|
newWindow() {
|
|
869
862
|
this.res.target = "_new";
|
|
870
863
|
return this;
|
|
871
864
|
}
|
|
872
865
|
|
|
866
|
+
/**
|
|
867
|
+
* Corner radius. A number is pixels; a string is passed through, so
|
|
868
|
+
* `radius("50%")` and `radius(12)` both work.
|
|
869
|
+
*/
|
|
870
|
+
radius(v) {
|
|
871
|
+
this.res.style.borderRadius = typeof v === "number" ? `${v}px` : v;
|
|
872
|
+
return this;
|
|
873
|
+
}
|
|
873
874
|
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
this.
|
|
877
|
-
|
|
875
|
+
//@deprecated round: superseded by `radius()`, which is the same thing under the name the option already uses.
|
|
876
|
+
round(v) {
|
|
877
|
+
this.deprecatedOption("round()", "radius()");
|
|
878
|
+
return this.radius(v);
|
|
878
879
|
}
|
|
879
880
|
|
|
880
881
|
|
|
881
882
|
|
|
882
883
|
|
|
884
|
+
|
|
883
885
|
// 220812 la olympics 2028
|
|
884
886
|
|
|
885
887
|
|
|
@@ -922,19 +924,6 @@ if (ft.length > 0){
|
|
|
922
924
|
}
|
|
923
925
|
|
|
924
926
|
|
|
925
|
-
padding(L, T, R, B){
|
|
926
|
-
|
|
927
|
-
if (L && T && R && B){
|
|
928
|
-
this.res.style.paddingLeft = L;
|
|
929
|
-
this.res.style.paddingTop = T;
|
|
930
|
-
this.res.style.paddingRight = R;
|
|
931
|
-
this.res.style.paddingBottom = B;
|
|
932
|
-
} else {
|
|
933
|
-
this.res.style.padding = L;
|
|
934
|
-
}
|
|
935
|
-
|
|
936
|
-
return this;
|
|
937
|
-
}
|
|
938
927
|
|
|
939
928
|
medium() {
|
|
940
929
|
const adj = () => {
|
|
@@ -960,20 +949,6 @@ if (ft.length > 0){
|
|
|
960
949
|
return this;
|
|
961
950
|
}
|
|
962
951
|
|
|
963
|
-
margin(L, T, R, B){
|
|
964
|
-
|
|
965
|
-
if (L && T && R && B){
|
|
966
|
-
this.el.style.marginLeft = L;
|
|
967
|
-
this.el.style.marginTop = T;
|
|
968
|
-
this.el.style.marginRight = R;
|
|
969
|
-
this.el.style.marginBottom = B;
|
|
970
|
-
} else {
|
|
971
|
-
// alert("2")
|
|
972
|
-
this.el.style.margin = L;
|
|
973
|
-
}
|
|
974
|
-
|
|
975
|
-
return this;
|
|
976
|
-
}
|
|
977
952
|
|
|
978
953
|
/**/
|
|
979
954
|
|
|
@@ -1029,13 +1004,6 @@ if (ft.length > 0){
|
|
|
1029
1004
|
return this;
|
|
1030
1005
|
}
|
|
1031
1006
|
|
|
1032
|
-
margin(T, L, R, B){
|
|
1033
|
-
this.res.style.marginTop = T;
|
|
1034
|
-
this.res.style.marginLeft = L;
|
|
1035
|
-
this.res.style.marginRight = R;
|
|
1036
|
-
this.res.style.marginBottom = B;
|
|
1037
|
-
return this;
|
|
1038
|
-
}
|
|
1039
1007
|
|
|
1040
1008
|
font(family){
|
|
1041
1009
|
this.res.style.fontFamily = family;
|
package/layout/list-OLD.js
CHANGED
package/layout/list.js
CHANGED
package/layout/meta-adder.js
CHANGED
package/layout/modal-2025.js
CHANGED
package/layout/multiswitcher.js
CHANGED
package/layout/nav-bar.js
CHANGED
package/layout/navBar-OLD.js
CHANGED
package/layout/new-flat-adder.js
CHANGED
package/layout/new-nav-bar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.216
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -286,21 +286,7 @@ this.res.style.display = "grid";
|
|
|
286
286
|
return this;
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
padding(L, T, R, B){
|
|
290
|
-
this.res.style.paddingLeft = L;
|
|
291
|
-
this.res.style.paddingTop = T;
|
|
292
|
-
this.res.style.paddingRight = R;
|
|
293
|
-
this.res.style.paddingBottom = B;
|
|
294
|
-
return this;
|
|
295
|
-
}
|
|
296
289
|
|
|
297
|
-
margin(L, T, R, B){
|
|
298
|
-
this.res.style.marginLeft = L;
|
|
299
|
-
this.res.style.marginTop = T;
|
|
300
|
-
this.res.style.marginRight = R;
|
|
301
|
-
this.res.style.marginBottom = B;
|
|
302
|
-
return this;
|
|
303
|
-
}
|
|
304
290
|
|
|
305
291
|
itemWidth(w){
|
|
306
292
|
for (var i = 0; i < this.res.childNodes.length; i++){
|
package/layout/polygon.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.216
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -52,8 +52,8 @@ class Polygon extends Animator {
|
|
|
52
52
|
if (opts.size) this.size(opts.size.width || opts.size, opts.size.height);
|
|
53
53
|
if (opts.color) this.color(opts.color);
|
|
54
54
|
if (opts.border) this.border(opts.border);
|
|
55
|
-
if (opts.margin) this.
|
|
56
|
-
if (opts.padding) this.
|
|
55
|
+
if (opts.margin) this.mar([{a: opts.margin}]);
|
|
56
|
+
if (opts.padding) this.pad([{a: opts.padding}]);
|
|
57
57
|
if (opts.background) this.background(opts.background);
|
|
58
58
|
if (opts.center) this.center();
|
|
59
59
|
|
|
@@ -137,8 +137,11 @@ class Polygon extends Animator {
|
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
|
|
140
|
+
// Text colour, matching every other component. It set `background` here,
|
|
141
|
+
// duplicating background() two methods below and leaving no way to set the
|
|
142
|
+
// text colour.
|
|
140
143
|
color(color) {
|
|
141
|
-
this.res.style.
|
|
144
|
+
this.res.style.color = color;
|
|
142
145
|
return this;
|
|
143
146
|
}
|
|
144
147
|
|
|
@@ -150,15 +153,7 @@ class Polygon extends Animator {
|
|
|
150
153
|
return this;
|
|
151
154
|
}
|
|
152
155
|
|
|
153
|
-
margin(m) {
|
|
154
|
-
this.res.style.margin = typeof m === "number" ? m + "px" : m;
|
|
155
|
-
return this;
|
|
156
|
-
}
|
|
157
156
|
|
|
158
|
-
padding(p) {
|
|
159
|
-
this.res.style.padding = typeof p === "number" ? p + "px" : p;
|
|
160
|
-
return this;
|
|
161
|
-
}
|
|
162
157
|
|
|
163
158
|
background(p) {
|
|
164
159
|
this.res.style.background = p;
|
package/layout/prerender-site.js
CHANGED
package/layout/prerender.js
CHANGED
package/layout/progress.js
CHANGED
package/layout/row.js
CHANGED
package/layout/scroll-video.js
CHANGED
package/layout/side-bar.js
CHANGED
package/layout/side-nav-bar.js
CHANGED
package/layout/simple-bar.js
CHANGED
package/layout/slider-2025.js
CHANGED
package/layout/spacer.js
CHANGED
package/layout/stack.js
CHANGED
package/layout/svg.js
CHANGED
package/layout/switcher.js
CHANGED
package/layout/table.js
CHANGED
package/layout/text-field.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.216
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -181,31 +181,7 @@ class TextField extends Animator {
|
|
|
181
181
|
return this;
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
padding(L, T, R, B){
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
if (L){
|
|
188
|
-
this.res.style.padding = `${L}px`;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
else if (L && T && R && B){
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
this.res.style.paddingLeft = L;
|
|
195
|
-
this.res.style.paddingTop = T;
|
|
196
|
-
this.res.style.paddingRight = R;
|
|
197
|
-
this.res.style.paddingBottom = `${B}px`;
|
|
198
|
-
}
|
|
199
|
-
return this;
|
|
200
|
-
}
|
|
201
184
|
|
|
202
|
-
margin(L, T, R, B){
|
|
203
|
-
this.res.style.marginLeft = L;
|
|
204
|
-
this.res.style.marginTop = T;
|
|
205
|
-
this.res.style.marginLeft = R;
|
|
206
|
-
this.res.style.marginBottom = `${B}px`;
|
|
207
|
-
return this;
|
|
208
|
-
}
|
|
209
185
|
|
|
210
186
|
|
|
211
187
|
placeholder(text){
|
|
@@ -223,11 +199,21 @@ class TextField extends Animator {
|
|
|
223
199
|
this.res.style.width = w;
|
|
224
200
|
return this;
|
|
225
201
|
}
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
202
|
+
/**
|
|
203
|
+
* Corner radius. A number is pixels; a string is passed through, so
|
|
204
|
+
* `radius("50%")` and `radius(12)` both work.
|
|
205
|
+
*/
|
|
206
|
+
radius(v) {
|
|
207
|
+
this.res.style.borderRadius = typeof v === "number" ? `${v}px` : v;
|
|
229
208
|
return this;
|
|
230
209
|
}
|
|
210
|
+
|
|
211
|
+
//@deprecated round: superseded by `radius()`, which is the same thing under the name the option already uses.
|
|
212
|
+
round(v) {
|
|
213
|
+
this.deprecatedOption("round()", "radius()");
|
|
214
|
+
return this.radius(v);
|
|
215
|
+
}
|
|
216
|
+
|
|
231
217
|
|
|
232
218
|
onChange(action){
|
|
233
219
|
var value = this.res.value;
|
package/layout/text.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.216
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1424,56 +1424,13 @@ checkForAnimation(queries){
|
|
|
1424
1424
|
return this;
|
|
1425
1425
|
}
|
|
1426
1426
|
|
|
1427
|
-
padding(L, T, R, B) {
|
|
1428
|
-
if (L || T || R || B){ // CAUGHT MYSELF
|
|
1429
|
-
this.res.style.paddingLeft = L;
|
|
1430
|
-
this.res.style.paddingTop = T;
|
|
1431
|
-
this.res.style.paddingRight = R;
|
|
1432
|
-
this.res.style.paddingBottom = B;
|
|
1433
|
-
}
|
|
1434
|
-
|
|
1435
|
-
if (!T && !R && !B){
|
|
1436
|
-
//alert("j")
|
|
1437
|
-
this.res.style.padding = L;
|
|
1438
|
-
}
|
|
1439
|
-
|
|
1440
|
-
return this;
|
|
1441
|
-
}
|
|
1442
1427
|
|
|
1443
1428
|
|
|
1444
1429
|
|
|
1445
1430
|
|
|
1446
1431
|
|
|
1447
|
-
margin(L, T, R, B) {
|
|
1448
|
-
if (L || T || R || B){ // CAUGHT MYSELF
|
|
1449
|
-
this.res.style.marginLeft = L;
|
|
1450
|
-
this.res.style.marginTop = T;
|
|
1451
|
-
this.res.style.marginRight = R;
|
|
1452
|
-
this.res.style.marginBottom = B;
|
|
1453
|
-
}
|
|
1454
|
-
|
|
1455
|
-
if (!T && !R && !B){
|
|
1456
|
-
// alert("j")
|
|
1457
|
-
this.res.style.margin = L;
|
|
1458
|
-
}
|
|
1459
|
-
|
|
1460
|
-
return this;
|
|
1461
|
-
}
|
|
1462
1432
|
|
|
1463
1433
|
|
|
1464
|
-
margin(direction, value){
|
|
1465
|
-
if (direction == "top"){
|
|
1466
|
-
this.res.style.marginTop = value;
|
|
1467
|
-
} else if (direction == "bottom"){
|
|
1468
|
-
this.res.style.marginBottom = value;
|
|
1469
|
-
}else if (direction == "left"){
|
|
1470
|
-
this.res.style.marginLeft = value;
|
|
1471
|
-
}else if (direction == "right"){
|
|
1472
|
-
this.res.style.marginRight = value;
|
|
1473
|
-
}
|
|
1474
|
-
|
|
1475
|
-
return this;
|
|
1476
|
-
}
|
|
1477
1434
|
|
|
1478
1435
|
headline() {
|
|
1479
1436
|
this.em(4)
|
|
@@ -1486,7 +1443,7 @@ checkForAnimation(queries){
|
|
|
1486
1443
|
this.bold();
|
|
1487
1444
|
this.res.style.fontFamily = "Arial";
|
|
1488
1445
|
this.color("gray");
|
|
1489
|
-
this.
|
|
1446
|
+
this.pad([{t: 20}]);
|
|
1490
1447
|
|
|
1491
1448
|
this.res.style.fontSize = "1em";
|
|
1492
1449
|
|
package/layout/ulist.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.
|
|
2
|
+
* nodality v1.0.216
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -169,23 +169,12 @@ class UList extends Animator {
|
|
|
169
169
|
return this;
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
margin(val) {
|
|
173
|
-
this.res.style.margin = val;
|
|
174
|
-
return this;
|
|
175
|
-
}
|
|
176
172
|
|
|
177
173
|
border(w, color) {
|
|
178
174
|
this.res.style.border = `${w}px solid ${color}`;
|
|
179
175
|
return this;
|
|
180
176
|
}
|
|
181
177
|
|
|
182
|
-
padding(T, L, R, B) {
|
|
183
|
-
this.res.style.paddingTop = T;
|
|
184
|
-
this.res.style.paddingLeft = L;
|
|
185
|
-
this.res.style.paddingRight = R;
|
|
186
|
-
this.res.style.paddingBottom = B;
|
|
187
|
-
return this;
|
|
188
|
-
}
|
|
189
178
|
|
|
190
179
|
headline() {
|
|
191
180
|
this.em(4);
|
package/layout/video.js
CHANGED
package/layout/without-new.js
CHANGED
package/layout/wrap.js
CHANGED
package/layout/zoom-card.js
CHANGED
package/lib/card-getter.js
CHANGED
package/lib/data.js
CHANGED
package/lib/designer.js
CHANGED
package/lib/element-mapper.js
CHANGED
package/lib/link-getter.js
CHANGED
package/lib/raster-ops.js
CHANGED
package/lib/scroll-video.js
CHANGED
package/lib/seo.js
CHANGED