nodality 1.0.0-beta.99 → 1.0.0
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/KeyframeAnimation.cjs.js.LICENSE.txt +1 -1
- package/dist/KeyframeAnimation.esm.js.LICENSE.txt +1 -1
- 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/betaDesktopBar.esm.js +1 -1
- package/dist/betaDesktopBar.esm.js.LICENSE.txt +1 -1
- package/dist/betaMobileBar.esm.js +1 -1
- package/dist/betaMobileBar.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/cardGetter.cjs.js.LICENSE.txt +1 -1
- package/dist/cardGetter.esm.js.LICENSE.txt +1 -1
- package/dist/center.cjs.js.LICENSE.txt +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/circle.cjs.js.LICENSE.txt +1 -1
- package/dist/circle.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/datalist.cjs.js.LICENSE.txt +1 -1
- package/dist/datalist.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/dropdown.cjs.js.LICENSE.txt +1 -1
- package/dist/dropdown.esm.js.LICENSE.txt +1 -1
- package/dist/elementMapper.cjs.js +1 -1
- package/dist/elementMapper.cjs.js.LICENSE.txt +1 -1
- package/dist/elementMapper.esm.js +1 -1
- package/dist/elementMapper.esm.js.LICENSE.txt +1 -1
- package/dist/finalresult.esm.js +1 -1
- package/dist/finalresult.esm.js.LICENSE.txt +1 -1
- package/dist/flexCard.cjs.js.LICENSE.txt +1 -1
- package/dist/flexCard.esm.js.LICENSE.txt +1 -1
- package/dist/flexGrid.cjs.js.LICENSE.txt +1 -1
- package/dist/flexGrid.esm.js.LICENSE.txt +1 -1
- package/dist/flexRow.cjs.js +1 -1
- package/dist/flexRow.cjs.js.LICENSE.txt +1 -1
- package/dist/flexRow.esm.js +1 -1
- package/dist/flexRow.esm.js.LICENSE.txt +1 -1
- package/dist/floatingInput.cjs.js.LICENSE.txt +1 -1
- package/dist/floatingInput.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/horizontalScroller.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/imagePicker.cjs.js.LICENSE.txt +1 -1
- package/dist/imagePicker.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/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/linkGetter.cjs.js +1 -1
- package/dist/linkGetter.cjs.js.LICENSE.txt +1 -1
- package/dist/linkGetter.esm.js +1 -1
- package/dist/linkGetter.esm.js.LICENSE.txt +1 -1
- package/dist/metaAdder.cjs.js.LICENSE.txt +1 -1
- package/dist/metaAdder.esm.js.LICENSE.txt +1 -1
- package/dist/modal2025.cjs.js.LICENSE.txt +1 -1
- package/dist/modal2025.esm.js.LICENSE.txt +1 -1
- package/dist/multiswitchers.esm.js.LICENSE.txt +1 -1
- package/dist/newNavBar.cjs.js +1 -1
- package/dist/newNavBar.cjs.js.LICENSE.txt +1 -1
- package/dist/newNavBar.esm.js +1 -1
- package/dist/newNavBar.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/polygon.cjs.js.LICENSE.txt +1 -1
- package/dist/polygon.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/scrollvideo.cjs.js.LICENSE.txt +1 -1
- package/dist/scrollvideo.esm.js.LICENSE.txt +1 -1
- package/dist/sideBar.cjs.js.LICENSE.txt +1 -1
- package/dist/sideBar.esm.js.LICENSE.txt +1 -1
- package/dist/sideNavBar.cjs.js.LICENSE.txt +1 -1
- package/dist/sideNavBar.esm.js.LICENSE.txt +1 -1
- package/dist/simpleBar.cjs.js.LICENSE.txt +1 -1
- package/dist/simpleBar.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 +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.cjs.js.LICENSE.txt +1 -1
- package/dist/text.esm.js.LICENSE.txt +1 -1
- package/dist/textField.cjs.js.LICENSE.txt +1 -1
- package/dist/textField.esm.js.LICENSE.txt +1 -1
- package/dist/transformanim.cjs.js.LICENSE.txt +1 -1
- package/dist/transformanim.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/zoomCard.cjs.js.LICENSE.txt +1 -1
- package/dist/zoomCard.esm.js.LICENSE.txt +1 -1
- package/layout/DEPRECATED-PARAGRAPH.js +1 -1
- package/layout/animator.js +8 -2
- package/layout/audio.js +1 -1
- package/layout/audionew.js +1 -1
- package/layout/base-2.js +1 -1
- package/layout/base.js +1 -1
- package/layout/betaDesktopBar.js +6 -4
- package/layout/betaMobileBar.js +2 -2
- package/layout/box.js +1 -1
- package/layout/button.js +1 -1
- package/layout/cards.js +1 -1
- package/layout/center.js +1 -1
- package/layout/checkbox.js +1 -1
- package/layout/circle.js +1 -1
- package/layout/cleanRow.js +1 -1
- package/layout/code.js +1 -1
- package/layout/container.js +4 -1
- package/layout/custom.js +1 -1
- package/layout/divImage.js +1 -1
- package/layout/dropdown.js +1 -1
- package/layout/dropdown2025.js +2 -2
- package/layout/emptyElement.js +1 -1
- package/layout/externalStylesheet.js +1 -1
- package/layout/flexCard.js +1 -1
- package/layout/flexGrid.js +1 -1
- package/layout/flexrow.js +5 -1
- package/layout/footer.js +1 -1
- package/layout/formComponents/custom.js +1 -1
- package/layout/formComponents/dataList.js +1 -1
- package/layout/formComponents/floatingInput.js +1 -1
- package/layout/formComponents/form-all.js +1 -1
- package/layout/formComponents/form.js +1 -1
- package/layout/formComponents/imagePicker.js +1 -1
- package/layout/formComponents/picker.js +1 -1
- package/layout/formComponents/radio.js +1 -1
- package/layout/formComponents/radiogroup.js +1 -1
- package/layout/formComponents/range.js +1 -1
- package/layout/free.js +1 -1
- package/layout/grid-new.js +1 -1
- package/layout/grid.js +1 -1
- package/layout/gridSwitcher.js +1 -1
- package/layout/group.js +1 -1
- package/layout/header.js +1 -1
- package/layout/horizontalScroller.js +1 -1
- package/layout/image-old.js +1 -1
- package/layout/image.js +1 -1
- package/layout/index.js +1 -1
- package/layout/label.js +1 -1
- package/layout/link.js +45 -3
- package/layout/list-OLD.js +1 -1
- package/layout/list.js +1 -1
- package/layout/metaAdder.js +1 -1
- package/layout/modal2025.js +1 -1
- package/layout/modernwrap.js +1 -1
- package/layout/multiswitcher.js +1 -1
- package/layout/multiswitcherBeta.js +1 -1
- package/layout/navBar-OLD.js +1 -1
- package/layout/navBar.js +1 -1
- package/layout/navFactor/customDiv.js +1 -1
- package/layout/newFlatAdder.js +1 -1
- package/layout/newNavBar copy 2.js +1 -1
- package/layout/newNavBar copy.js +1 -1
- package/layout/newNavBar.js +2 -2
- package/layout/offsetContainer.js +1 -1
- package/layout/polygon.js +1 -1
- package/layout/progress.js +1 -1
- package/layout/row.js +1 -1
- package/layout/savedNewNavBar.js +1 -1
- package/layout/scrollvideo.js +1 -1
- package/layout/sideBar.js +1 -1
- package/layout/sideNavBar.js +1 -1
- package/layout/simpleBar.js +1 -1
- package/layout/slider2025.js +1 -1
- package/layout/spacer.js +1 -1
- package/layout/stack.js +1 -1
- package/layout/styler.js +1 -1
- package/layout/switcher.js +1 -1
- package/layout/table.js +6 -1
- package/layout/text.js +1 -1
- package/layout/textField.js +1 -1
- package/layout/ulist.js +1 -1
- package/layout/video.js +1 -1
- package/layout/withoutNew.js +1 -1
- package/layout/wrap.js +1 -1
- package/layout/zoomCard.js +1 -1
- package/lib/AppleAnim.js +1 -1
- package/lib/KeyframeAnimation.js +1 -1
- package/lib/Stacker.js +1 -1
- package/lib/TransformAnim.js +1 -1
- package/lib/cardGetter.js +1 -1
- package/lib/designer.js +72 -12
- package/lib/elementMapper.js +29 -27
- package/lib/linkGetter.js +1 -1
- package/lib/scrollvideo.js +1 -1
- package/package.json +20 -6
package/lib/Stacker.js
CHANGED
package/lib/TransformAnim.js
CHANGED
package/lib/cardGetter.js
CHANGED
package/lib/designer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.0
|
|
2
|
+
* nodality v1.0.0
|
|
3
3
|
* (c) 2025 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -421,7 +421,6 @@ customOptions.forEach(item => {
|
|
|
421
421
|
//customOptions = updated;
|
|
422
422
|
|
|
423
423
|
|
|
424
|
-
|
|
425
424
|
for (var i = 0; i < arr.length; i++) {
|
|
426
425
|
let el = arr[i];
|
|
427
426
|
let ela = null;
|
|
@@ -513,9 +512,9 @@ customOptions.forEach(item => {
|
|
|
513
512
|
values: [ // This can be empty or have any order of values
|
|
514
513
|
"ty:-20px",
|
|
515
514
|
"scale(3)",
|
|
516
|
-
"rotate(
|
|
517
|
-
"skew(
|
|
518
|
-
"perspective(
|
|
515
|
+
"rotate(3deg)",
|
|
516
|
+
"skew(3deg, 0deg)",
|
|
517
|
+
"perspective(100px)",
|
|
519
518
|
"matrix(1, 0, 0, 1, 50, 50)"
|
|
520
519
|
],
|
|
521
520
|
}
|
|
@@ -760,15 +759,16 @@ customOptions.forEach(item => {
|
|
|
760
759
|
|
|
761
760
|
else {
|
|
762
761
|
opts = [ // This can be empty or have any order of values
|
|
763
|
-
"ty
|
|
764
|
-
"
|
|
765
|
-
|
|
762
|
+
"ty:20px",
|
|
763
|
+
"tx:30px",
|
|
764
|
+
// "scale(3)",
|
|
765
|
+
"rotate(3deg)",
|
|
766
766
|
"skew(40deg, 0deg)",
|
|
767
|
-
|
|
768
|
-
|
|
767
|
+
// "perspective(500px)",
|
|
768
|
+
// "matrix(1, 0, 0, 1, 50, 50)"
|
|
769
769
|
];
|
|
770
770
|
}
|
|
771
|
-
|
|
771
|
+
/*
|
|
772
772
|
if (duration === "default"){
|
|
773
773
|
duration = "MEDIUM";
|
|
774
774
|
}
|
|
@@ -779,7 +779,7 @@ if (duration === "default"){
|
|
|
779
779
|
duration = "6s-ease-in-out";
|
|
780
780
|
} else if (duration === "SLOW"){
|
|
781
781
|
duration = "10s-ease-in-out";
|
|
782
|
-
}
|
|
782
|
+
} */
|
|
783
783
|
|
|
784
784
|
|
|
785
785
|
if (/*q == i*/ true){ // 23:07.20 Nice!!!! 23:04 bef
|
|
@@ -835,6 +835,66 @@ console.log(duration);
|
|
|
835
835
|
console.log(`----------------------------LLL ${i} ${customOptions.length}`);
|
|
836
836
|
|
|
837
837
|
|
|
838
|
+
|
|
839
|
+
function replaceMedium(obj) {
|
|
840
|
+
/*for (let key in obj) {
|
|
841
|
+
if (typeof obj[key] === "object") {
|
|
842
|
+
replaceMedium(obj[key]); // dive deeper
|
|
843
|
+
} else if (obj[key] === "medium") {
|
|
844
|
+
obj[key] = "6s-ease-in-out";
|
|
845
|
+
} else if (obj[key] === "fast") {
|
|
846
|
+
obj[key] = "3s-ease-in-out";
|
|
847
|
+
} else if (obj[key] === "slow") {
|
|
848
|
+
obj[key] = "9s-ease-in-out";
|
|
849
|
+
} else if (obj[key] === "default"){
|
|
850
|
+
alert("PP")
|
|
851
|
+
delete obj[key];
|
|
852
|
+
}
|
|
853
|
+
}*/
|
|
854
|
+
|
|
855
|
+
/* for (let key of Object.keys(obj)) {
|
|
856
|
+
if (typeof obj[key] === "object" && obj[key] !== null) {
|
|
857
|
+
replaceMedium(obj[key]); // dive deeper
|
|
858
|
+
} else if (obj[key] && obj[key].toLowerCase() === "medium") {
|
|
859
|
+
obj[key] = "6s-ease-in-out";
|
|
860
|
+
} else if (obj[key] && obj[key].toLowerCase() === "fast") {
|
|
861
|
+
obj[key] = "3s-ease-in-out";
|
|
862
|
+
} else if (obj[key] && obj[key].toLowerCase() === "slow") {
|
|
863
|
+
obj[key] = "9s-ease-in-out";
|
|
864
|
+
} else if (obj[key] && obj[key].toLowerCase() === "default") {
|
|
865
|
+
// alert("PP");
|
|
866
|
+
delete obj[key]; // works now
|
|
867
|
+
}
|
|
868
|
+
}*/
|
|
869
|
+
|
|
870
|
+
for (let key of Object.keys(obj)) {
|
|
871
|
+
if (typeof obj[key] === "object" && obj[key] !== null) {
|
|
872
|
+
replaceMedium(obj[key]); // dive deeper
|
|
873
|
+
} else if (typeof obj[key] === "string") {
|
|
874
|
+
switch (obj[key].toLowerCase()) {
|
|
875
|
+
case "medium":
|
|
876
|
+
obj[key] = "6s-ease-in-out";
|
|
877
|
+
break;
|
|
878
|
+
case "fast":
|
|
879
|
+
obj[key] = "3s-ease-in-out";
|
|
880
|
+
break;
|
|
881
|
+
case "slow":
|
|
882
|
+
obj[key] = "9s-ease-in-out";
|
|
883
|
+
break;
|
|
884
|
+
case "default":
|
|
885
|
+
delete obj[key];
|
|
886
|
+
break;
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
replaceMedium(customOptions);
|
|
893
|
+
|
|
894
|
+
console.log("SENDING CUSTOM OPTIONS");
|
|
895
|
+
|
|
896
|
+
console.log(customOptions);
|
|
897
|
+
|
|
838
898
|
const matchEls = ["h1", "h2", "h3", "h4", "h5", "h6", "p"].includes(el.type) || el.type === "img" || el.type === "a";
|
|
839
899
|
|
|
840
900
|
if (matchEls) {
|
package/lib/elementMapper.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.0.0
|
|
2
|
+
* nodality v1.0.0
|
|
3
3
|
* (c) 2025 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -772,13 +772,14 @@ if (obj.el.dropdown){
|
|
|
772
772
|
breakpoints: [ // 172800 almost
|
|
773
773
|
{
|
|
774
774
|
at: "0px", view: new MobileBar().set({
|
|
775
|
-
background: "
|
|
775
|
+
background: "#ecf0f1",
|
|
776
776
|
mar: [{ "a": 21 }],
|
|
777
|
-
brand: new Text("
|
|
777
|
+
brand: new Text("Company").set({size: "S6", font: "Helvetica"}),
|
|
778
778
|
hamburgerColour: "#3498db",
|
|
779
779
|
radius: "1rem",
|
|
780
780
|
}).add([
|
|
781
|
-
|
|
781
|
+
|
|
782
|
+
new Link().set({text: "About", url: "#a"}),//.render()
|
|
782
783
|
|
|
783
784
|
|
|
784
785
|
|
|
@@ -795,7 +796,7 @@ if (obj.el.dropdown){
|
|
|
795
796
|
height: "auto",
|
|
796
797
|
|
|
797
798
|
}).add([
|
|
798
|
-
new Text("
|
|
799
|
+
new Text("More")
|
|
799
800
|
.set({
|
|
800
801
|
cursor: "hand",
|
|
801
802
|
icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/60/60995.png" },
|
|
@@ -807,7 +808,7 @@ if (obj.el.dropdown){
|
|
|
807
808
|
|
|
808
809
|
}),
|
|
809
810
|
|
|
810
|
-
new Text("
|
|
811
|
+
new Text("Our story")
|
|
811
812
|
.set({
|
|
812
813
|
cursor: "hand",
|
|
813
814
|
// icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/60/60995.png" },
|
|
@@ -819,7 +820,7 @@ if (obj.el.dropdown){
|
|
|
819
820
|
|
|
820
821
|
}),
|
|
821
822
|
|
|
822
|
-
new Text("
|
|
823
|
+
new Text("Team")
|
|
823
824
|
.set({
|
|
824
825
|
cursor: "hand",
|
|
825
826
|
// icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/60/60995.png" },
|
|
@@ -835,14 +836,14 @@ if (obj.el.dropdown){
|
|
|
835
836
|
|
|
836
837
|
|
|
837
838
|
|
|
838
|
-
new Link("B").set({text: "
|
|
839
|
-
new Link("C").set({text: "
|
|
839
|
+
new Link("B").set({text: "About", url: "#b"}),//.render()
|
|
840
|
+
new Link("C").set({text: "Contact", url: "https://www.abcnews.com"})//.render()
|
|
840
841
|
])//.addNavItem(new Link("C").set({}).render())
|
|
841
842
|
},
|
|
842
843
|
|
|
843
844
|
{
|
|
844
845
|
at: "1200px", view: new DesktopBar().set({
|
|
845
|
-
background: "
|
|
846
|
+
background: "#ecf0f1",
|
|
846
847
|
mar: [{ "a": 21 }],
|
|
847
848
|
maxHeight: "100px",
|
|
848
849
|
radius: "1rem"
|
|
@@ -851,7 +852,7 @@ if (obj.el.dropdown){
|
|
|
851
852
|
})
|
|
852
853
|
// .setBrand(new Text("A").set({}).render())
|
|
853
854
|
.add([
|
|
854
|
-
new Text("
|
|
855
|
+
new Text("Company").set({size: "S6", font: "Helvetica"}),
|
|
855
856
|
new Spacer(true),
|
|
856
857
|
|
|
857
858
|
// new Link("O").set({text: "O", url: "#a"}),
|
|
@@ -868,7 +869,7 @@ if (obj.el.dropdown){
|
|
|
868
869
|
radius: "30px",
|
|
869
870
|
width: "130px"
|
|
870
871
|
}).add([
|
|
871
|
-
new Text("
|
|
872
|
+
new Text("More")
|
|
872
873
|
.set({
|
|
873
874
|
cursor: "hand",
|
|
874
875
|
icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/60/60995.png" },
|
|
@@ -883,7 +884,7 @@ if (obj.el.dropdown){
|
|
|
883
884
|
|
|
884
885
|
new Wrapper().set({
|
|
885
886
|
flexDir: "column",
|
|
886
|
-
|
|
887
|
+
// background: "orange",
|
|
887
888
|
mar: [{"t": "10px"}],
|
|
888
889
|
radius: ".3rem"}).add([
|
|
889
890
|
|
|
@@ -891,7 +892,7 @@ new Wrapper().set({
|
|
|
891
892
|
|
|
892
893
|
new Link("")
|
|
893
894
|
.set({
|
|
894
|
-
text: "
|
|
895
|
+
text: "Who we are", // BEWARE
|
|
895
896
|
url: "jk",
|
|
896
897
|
cursor: "hand",
|
|
897
898
|
// icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/60/60995.png" },
|
|
@@ -904,7 +905,7 @@ new Wrapper().set({
|
|
|
904
905
|
|
|
905
906
|
new Link("")
|
|
906
907
|
.set({
|
|
907
|
-
text: "
|
|
908
|
+
text: "Info",
|
|
908
909
|
url: "#u",
|
|
909
910
|
cursor: "hand",
|
|
910
911
|
// icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/60/60995.png" },
|
|
@@ -918,7 +919,7 @@ new Wrapper().set({
|
|
|
918
919
|
|
|
919
920
|
new Link("")
|
|
920
921
|
.set({
|
|
921
|
-
text: "
|
|
922
|
+
text: "About",
|
|
922
923
|
url: "#u",
|
|
923
924
|
cursor: "hand",
|
|
924
925
|
// icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/60/60995.png" },
|
|
@@ -947,9 +948,9 @@ new Wrapper().set({
|
|
|
947
948
|
|
|
948
949
|
|
|
949
950
|
|
|
950
|
-
new Link(
|
|
951
|
-
new Link(
|
|
952
|
-
new Link(
|
|
951
|
+
new Link().set({ text: "About", url: "#a"}),//.render()
|
|
952
|
+
new Link().set({ text: "Services", url: "#a"}),//.render()
|
|
953
|
+
new Link().set({ text: "Contact", url: "#a"})//.render()
|
|
953
954
|
// new Link("C").set({})//.render()
|
|
954
955
|
])
|
|
955
956
|
/*.addNavItem(
|
|
@@ -1026,7 +1027,7 @@ new Wrapper().set({
|
|
|
1026
1027
|
pad: [{ "a": 40 }],
|
|
1027
1028
|
//socenter: true,
|
|
1028
1029
|
padding: "10px",
|
|
1029
|
-
|
|
1030
|
+
// border: "1px solid black",
|
|
1030
1031
|
animation: { // also works without animation block
|
|
1031
1032
|
range: ["0px", "1900px"],
|
|
1032
1033
|
op: {
|
|
@@ -1054,7 +1055,7 @@ new Wrapper().set({
|
|
|
1054
1055
|
},
|
|
1055
1056
|
},
|
|
1056
1057
|
}).add([
|
|
1057
|
-
new Text("
|
|
1058
|
+
new Text("More")
|
|
1058
1059
|
.set({
|
|
1059
1060
|
cursor: "hand",
|
|
1060
1061
|
icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/60/60995.png" },
|
|
@@ -1240,7 +1241,7 @@ if (obj.el.dropdown){
|
|
|
1240
1241
|
templateCols = null;
|
|
1241
1242
|
}
|
|
1242
1243
|
5
|
|
1243
|
-
if (ft.op.value === "
|
|
1244
|
+
if (ft.op.value === "img-overlay-text"){ // 17:43:03
|
|
1244
1245
|
spanObjects = {
|
|
1245
1246
|
text: {row: "1 / span 2", col: "3 / span 2"},
|
|
1246
1247
|
image: {row: "2 / span 3", col: "3 / 3"}
|
|
@@ -1248,7 +1249,7 @@ if (obj.el.dropdown){
|
|
|
1248
1249
|
}
|
|
1249
1250
|
|
|
1250
1251
|
// react on by value to control amount
|
|
1251
|
-
if (ft.op.value === "
|
|
1252
|
+
if (ft.op.value === "img-leftof-text") { // no 3-6
|
|
1252
1253
|
spanObjects = {
|
|
1253
1254
|
text: {row: "1", col: "1 / 3"},
|
|
1254
1255
|
image: {row: "1", col: "3 / 4"}
|
|
@@ -1269,16 +1270,17 @@ if (obj.el.dropdown){
|
|
|
1269
1270
|
new Text("I am free")
|
|
1270
1271
|
.set({
|
|
1271
1272
|
border: "3px solid green",
|
|
1272
|
-
|
|
1273
|
-
|
|
1273
|
+
font: "Arial", // 23:11:24 08/11/24 "font" works also?
|
|
1274
|
+
size: "S1",
|
|
1274
1275
|
color: "#1abc9c",
|
|
1275
1276
|
gpos: spanObjects != null ? (spanObjects.text) : null, // "span 2" can also work here as string
|
|
1276
1277
|
zIndex: 1
|
|
1277
1278
|
}),
|
|
1278
1279
|
|
|
1279
|
-
new Image(
|
|
1280
|
+
new Image()
|
|
1280
1281
|
.set({
|
|
1281
|
-
|
|
1282
|
+
url: "https://upload.wikimedia.org/wikipedia/commons/a/ac/MSC_World_Europa_-_Saint-Nazaire_-_June_2022.jpg",
|
|
1283
|
+
// url: "https://www.cruisemapper.com/images/ships/2183-e9681865a61.jpg",
|
|
1282
1284
|
width: "400px",
|
|
1283
1285
|
height: "auto",
|
|
1284
1286
|
gpos: spanObjects != null ? (spanObjects.image) : null,
|
package/lib/linkGetter.js
CHANGED
package/lib/scrollvideo.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nodality",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "A lightweight library for declarative UI elements.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -32,19 +32,33 @@
|
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"repository": {
|
|
34
34
|
"type": "git",
|
|
35
|
-
"url": "https://github.com/
|
|
35
|
+
"url": "https://github.com/nodalityjs/nodality"
|
|
36
36
|
},
|
|
37
37
|
"author": {
|
|
38
38
|
"name": "Filip Vabrousek",
|
|
39
39
|
"email": "filipvabrousek1@gmail.com",
|
|
40
40
|
"url": "https://filipvabrousek.com"
|
|
41
41
|
},
|
|
42
|
-
"homepage": "https://
|
|
42
|
+
"homepage": "https://nodalityjs.github.io/",
|
|
43
43
|
"keywords": [
|
|
44
|
-
"
|
|
45
|
-
"library",
|
|
44
|
+
"ui",
|
|
45
|
+
"ui-library",
|
|
46
|
+
"user-interface",
|
|
46
47
|
"declarative",
|
|
47
|
-
"
|
|
48
|
+
"declarative-ui",
|
|
49
|
+
"web",
|
|
50
|
+
"frontend",
|
|
51
|
+
"javascript",
|
|
52
|
+
"html",
|
|
53
|
+
"dom",
|
|
54
|
+
"rendering",
|
|
55
|
+
"components",
|
|
56
|
+
"component-based",
|
|
57
|
+
"nodes",
|
|
58
|
+
"nodality",
|
|
59
|
+
"effects",
|
|
60
|
+
"style",
|
|
61
|
+
"open-source"
|
|
48
62
|
],
|
|
49
63
|
"devDependencies": {
|
|
50
64
|
"@babel/core": "^7.28.0",
|