nodality 1.0.0-beta.98 → 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.
Files changed (256) hide show
  1. package/dist/KeyframeAnimation.cjs.js.LICENSE.txt +1 -1
  2. package/dist/KeyframeAnimation.esm.js.LICENSE.txt +1 -1
  3. package/dist/animator.cjs.js +1 -1
  4. package/dist/animator.cjs.js.LICENSE.txt +1 -1
  5. package/dist/animator.esm.js +1 -1
  6. package/dist/animator.esm.js.LICENSE.txt +1 -1
  7. package/dist/audionew.cjs.js +1 -1
  8. package/dist/audionew.cjs.js.LICENSE.txt +1 -1
  9. package/dist/audionew.esm.js +1 -1
  10. package/dist/audionew.esm.js.LICENSE.txt +1 -1
  11. package/dist/base.cjs.js.LICENSE.txt +1 -1
  12. package/dist/base.esm.js.LICENSE.txt +1 -1
  13. package/dist/betaDesktopBar.esm.js +1 -1
  14. package/dist/betaDesktopBar.esm.js.LICENSE.txt +1 -1
  15. package/dist/betaMobileBar.esm.js +1 -1
  16. package/dist/betaMobileBar.esm.js.LICENSE.txt +1 -1
  17. package/dist/bundle.umd.js +1 -1
  18. package/dist/bundle.umd.js.LICENSE.txt +1 -1
  19. package/dist/button.cjs.js +1 -1
  20. package/dist/button.cjs.js.LICENSE.txt +1 -1
  21. package/dist/button.esm.js +1 -1
  22. package/dist/button.esm.js.LICENSE.txt +1 -1
  23. package/dist/cardGetter.cjs.js.LICENSE.txt +1 -1
  24. package/dist/cardGetter.esm.js.LICENSE.txt +1 -1
  25. package/dist/center.cjs.js.LICENSE.txt +1 -1
  26. package/dist/center.esm.js.LICENSE.txt +1 -1
  27. package/dist/checkbox.cjs.js +1 -1
  28. package/dist/checkbox.cjs.js.LICENSE.txt +1 -1
  29. package/dist/checkbox.esm.js +1 -1
  30. package/dist/checkbox.esm.js.LICENSE.txt +1 -1
  31. package/dist/circle.cjs.js +1 -1
  32. package/dist/circle.cjs.js.LICENSE.txt +1 -1
  33. package/dist/circle.esm.js +1 -1
  34. package/dist/circle.esm.js.LICENSE.txt +1 -1
  35. package/dist/code.cjs.js +1 -1
  36. package/dist/code.cjs.js.LICENSE.txt +1 -1
  37. package/dist/code.esm.js +1 -1
  38. package/dist/code.esm.js.LICENSE.txt +1 -1
  39. package/dist/container.cjs.js +1 -1
  40. package/dist/container.cjs.js.LICENSE.txt +1 -1
  41. package/dist/container.esm.js +1 -1
  42. package/dist/container.esm.js.LICENSE.txt +1 -1
  43. package/dist/datalist.cjs.js.LICENSE.txt +1 -1
  44. package/dist/datalist.esm.js.LICENSE.txt +1 -1
  45. package/dist/designer.cjs.js +1 -1
  46. package/dist/designer.cjs.js.LICENSE.txt +1 -1
  47. package/dist/designer.esm.js +1 -1
  48. package/dist/designer.esm.js.LICENSE.txt +1 -1
  49. package/dist/dropdown.cjs.js +1 -1
  50. package/dist/dropdown.cjs.js.LICENSE.txt +1 -1
  51. package/dist/dropdown.esm.js +1 -1
  52. package/dist/dropdown.esm.js.LICENSE.txt +1 -1
  53. package/dist/elementMapper.cjs.js +1 -1
  54. package/dist/elementMapper.cjs.js.LICENSE.txt +1 -1
  55. package/dist/elementMapper.esm.js +1 -1
  56. package/dist/elementMapper.esm.js.LICENSE.txt +1 -1
  57. package/dist/finalresult.esm.js +1 -1
  58. package/dist/finalresult.esm.js.LICENSE.txt +1 -1
  59. package/dist/flexCard.cjs.js +1 -1
  60. package/dist/flexCard.cjs.js.LICENSE.txt +1 -1
  61. package/dist/flexCard.esm.js +1 -1
  62. package/dist/flexCard.esm.js.LICENSE.txt +1 -1
  63. package/dist/flexGrid.cjs.js +1 -1
  64. package/dist/flexGrid.cjs.js.LICENSE.txt +1 -1
  65. package/dist/flexGrid.esm.js +1 -1
  66. package/dist/flexGrid.esm.js.LICENSE.txt +1 -1
  67. package/dist/flexRow.cjs.js +1 -1
  68. package/dist/flexRow.cjs.js.LICENSE.txt +1 -1
  69. package/dist/flexRow.esm.js +1 -1
  70. package/dist/flexRow.esm.js.LICENSE.txt +1 -1
  71. package/dist/floatingInput.cjs.js +1 -1
  72. package/dist/floatingInput.cjs.js.LICENSE.txt +1 -1
  73. package/dist/floatingInput.esm.js +1 -1
  74. package/dist/floatingInput.esm.js.LICENSE.txt +1 -1
  75. package/dist/free.cjs.js +1 -1
  76. package/dist/free.cjs.js.LICENSE.txt +1 -1
  77. package/dist/free.esm.js +1 -1
  78. package/dist/free.esm.js.LICENSE.txt +1 -1
  79. package/dist/horizontalScroller.esm.js.LICENSE.txt +1 -1
  80. package/dist/image.cjs.js +1 -1
  81. package/dist/image.cjs.js.LICENSE.txt +1 -1
  82. package/dist/image.esm.js +1 -1
  83. package/dist/image.esm.js.LICENSE.txt +1 -1
  84. package/dist/imagePicker.cjs.js +1 -1
  85. package/dist/imagePicker.cjs.js.LICENSE.txt +1 -1
  86. package/dist/imagePicker.esm.js +1 -1
  87. package/dist/imagePicker.esm.js.LICENSE.txt +1 -1
  88. package/dist/index.cjs.js +1 -1
  89. package/dist/index.cjs.js.LICENSE.txt +1 -1
  90. package/dist/index.esm.js +1 -1
  91. package/dist/index.esm.js.LICENSE.txt +1 -1
  92. package/dist/link.cjs.js +1 -1
  93. package/dist/link.cjs.js.LICENSE.txt +1 -1
  94. package/dist/link.esm.js +1 -1
  95. package/dist/link.esm.js.LICENSE.txt +1 -1
  96. package/dist/linkGetter.cjs.js +1 -1
  97. package/dist/linkGetter.cjs.js.LICENSE.txt +1 -1
  98. package/dist/linkGetter.esm.js +1 -1
  99. package/dist/linkGetter.esm.js.LICENSE.txt +1 -1
  100. package/dist/metaAdder.cjs.js.LICENSE.txt +1 -1
  101. package/dist/metaAdder.esm.js.LICENSE.txt +1 -1
  102. package/dist/modal2025.cjs.js.LICENSE.txt +1 -1
  103. package/dist/modal2025.esm.js.LICENSE.txt +1 -1
  104. package/dist/multiswitchers.esm.js +1 -1
  105. package/dist/multiswitchers.esm.js.LICENSE.txt +1 -1
  106. package/dist/newNavBar.cjs.js +1 -1
  107. package/dist/newNavBar.cjs.js.LICENSE.txt +1 -1
  108. package/dist/newNavBar.esm.js +1 -1
  109. package/dist/newNavBar.esm.js.LICENSE.txt +1 -1
  110. package/dist/picker.cjs.js +1 -1
  111. package/dist/picker.cjs.js.LICENSE.txt +1 -1
  112. package/dist/picker.esm.js +1 -1
  113. package/dist/picker.esm.js.LICENSE.txt +1 -1
  114. package/dist/polygon.cjs.js +1 -1
  115. package/dist/polygon.cjs.js.LICENSE.txt +1 -1
  116. package/dist/polygon.esm.js +1 -1
  117. package/dist/polygon.esm.js.LICENSE.txt +1 -1
  118. package/dist/progress.cjs.js.LICENSE.txt +1 -1
  119. package/dist/progress.esm.js.LICENSE.txt +1 -1
  120. package/dist/radio.cjs.js.LICENSE.txt +1 -1
  121. package/dist/radio.esm.js.LICENSE.txt +1 -1
  122. package/dist/range.cjs.js.LICENSE.txt +1 -1
  123. package/dist/range.esm.js.LICENSE.txt +1 -1
  124. package/dist/scrollvideo.cjs.js.LICENSE.txt +1 -1
  125. package/dist/scrollvideo.esm.js.LICENSE.txt +1 -1
  126. package/dist/sideBar.cjs.js +1 -1
  127. package/dist/sideBar.cjs.js.LICENSE.txt +1 -1
  128. package/dist/sideBar.esm.js +1 -1
  129. package/dist/sideBar.esm.js.LICENSE.txt +1 -1
  130. package/dist/sideNavBar.cjs.js +1 -1
  131. package/dist/sideNavBar.cjs.js.LICENSE.txt +1 -1
  132. package/dist/sideNavBar.esm.js +1 -1
  133. package/dist/sideNavBar.esm.js.LICENSE.txt +1 -1
  134. package/dist/simpleBar.cjs.js +1 -1
  135. package/dist/simpleBar.cjs.js.LICENSE.txt +1 -1
  136. package/dist/simpleBar.esm.js +1 -1
  137. package/dist/simpleBar.esm.js.LICENSE.txt +1 -1
  138. package/dist/stack.cjs.js.LICENSE.txt +1 -1
  139. package/dist/stack.esm.js.LICENSE.txt +1 -1
  140. package/dist/stacker.cjs.js.LICENSE.txt +1 -1
  141. package/dist/stacker.esm.js.LICENSE.txt +1 -1
  142. package/dist/table.cjs.js +1 -1
  143. package/dist/table.cjs.js.LICENSE.txt +1 -1
  144. package/dist/table.esm.js +1 -1
  145. package/dist/table.esm.js.LICENSE.txt +1 -1
  146. package/dist/text.cjs.js +1 -1
  147. package/dist/text.cjs.js.LICENSE.txt +1 -1
  148. package/dist/text.esm.js +1 -1
  149. package/dist/text.esm.js.LICENSE.txt +1 -1
  150. package/dist/textField.cjs.js +1 -1
  151. package/dist/textField.cjs.js.LICENSE.txt +1 -1
  152. package/dist/textField.esm.js +1 -1
  153. package/dist/textField.esm.js.LICENSE.txt +1 -1
  154. package/dist/transformanim.cjs.js.LICENSE.txt +1 -1
  155. package/dist/transformanim.esm.js.LICENSE.txt +1 -1
  156. package/dist/wrap.cjs.js.LICENSE.txt +1 -1
  157. package/dist/wrap.esm.js.LICENSE.txt +1 -1
  158. package/dist/zoomCard.cjs.js +1 -1
  159. package/dist/zoomCard.cjs.js.LICENSE.txt +1 -1
  160. package/dist/zoomCard.esm.js +1 -1
  161. package/dist/zoomCard.esm.js.LICENSE.txt +1 -1
  162. package/layout/DEPRECATED-PARAGRAPH.js +1 -1
  163. package/layout/animator.js +46 -6
  164. package/layout/audio.js +1 -1
  165. package/layout/audionew.js +1 -1
  166. package/layout/base-2.js +1 -1
  167. package/layout/base.js +1 -1
  168. package/layout/betaDesktopBar.js +6 -4
  169. package/layout/betaMobileBar.js +2 -2
  170. package/layout/box.js +1 -1
  171. package/layout/button.js +1 -1
  172. package/layout/cards.js +1 -1
  173. package/layout/center.js +1 -1
  174. package/layout/checkbox.js +1 -1
  175. package/layout/circle.js +1 -1
  176. package/layout/cleanRow.js +1 -1
  177. package/layout/code.js +1 -1
  178. package/layout/container.js +4 -1
  179. package/layout/custom.js +1 -1
  180. package/layout/divImage.js +1 -1
  181. package/layout/dropdown.js +1 -1
  182. package/layout/dropdown2025.js +2 -2
  183. package/layout/emptyElement.js +1 -1
  184. package/layout/externalStylesheet.js +1 -1
  185. package/layout/flexCard.js +1 -1
  186. package/layout/flexGrid.js +1 -1
  187. package/layout/flexrow.js +5 -1
  188. package/layout/footer.js +1 -1
  189. package/layout/formComponents/custom.js +1 -1
  190. package/layout/formComponents/dataList.js +1 -1
  191. package/layout/formComponents/floatingInput.js +1 -1
  192. package/layout/formComponents/form-all.js +1 -1
  193. package/layout/formComponents/form.js +1 -1
  194. package/layout/formComponents/imagePicker.js +1 -1
  195. package/layout/formComponents/picker.js +1 -1
  196. package/layout/formComponents/radio.js +1 -1
  197. package/layout/formComponents/radiogroup.js +1 -1
  198. package/layout/formComponents/range.js +1 -1
  199. package/layout/free.js +1 -1
  200. package/layout/grid-new.js +1 -1
  201. package/layout/grid.js +1 -1
  202. package/layout/gridSwitcher.js +1 -1
  203. package/layout/group.js +1 -1
  204. package/layout/header.js +1 -1
  205. package/layout/horizontalScroller.js +1 -1
  206. package/layout/image-old.js +1 -1
  207. package/layout/image.js +1 -1
  208. package/layout/index.js +1 -1
  209. package/layout/label.js +1 -1
  210. package/layout/link.js +63 -5
  211. package/layout/list-OLD.js +1 -1
  212. package/layout/list.js +1 -1
  213. package/layout/metaAdder.js +1 -1
  214. package/layout/modal2025.js +1 -1
  215. package/layout/modernwrap.js +1 -1
  216. package/layout/multiswitcher.js +1 -1
  217. package/layout/multiswitcherBeta.js +1 -1
  218. package/layout/navBar-OLD.js +1 -1
  219. package/layout/navBar.js +1 -1
  220. package/layout/navFactor/customDiv.js +1 -1
  221. package/layout/newFlatAdder.js +1 -1
  222. package/layout/newNavBar copy 2.js +1 -1
  223. package/layout/newNavBar copy.js +1 -1
  224. package/layout/newNavBar.js +2 -2
  225. package/layout/offsetContainer.js +1 -1
  226. package/layout/polygon.js +1 -1
  227. package/layout/progress.js +1 -1
  228. package/layout/row.js +1 -1
  229. package/layout/savedNewNavBar.js +1 -1
  230. package/layout/scrollvideo.js +1 -1
  231. package/layout/sideBar.js +2 -1
  232. package/layout/sideNavBar.js +71 -4
  233. package/layout/simpleBar.js +1 -1
  234. package/layout/slider2025.js +1 -1
  235. package/layout/spacer.js +1 -1
  236. package/layout/stack.js +1 -1
  237. package/layout/styler.js +1 -1
  238. package/layout/switcher.js +1 -1
  239. package/layout/table.js +6 -1
  240. package/layout/text.js +1 -5
  241. package/layout/textField.js +1 -1
  242. package/layout/ulist.js +1 -1
  243. package/layout/video.js +1 -1
  244. package/layout/withoutNew.js +1 -1
  245. package/layout/wrap.js +1 -1
  246. package/layout/zoomCard.js +1 -1
  247. package/lib/AppleAnim.js +1 -1
  248. package/lib/KeyframeAnimation.js +1 -1
  249. package/lib/Stacker.js +1 -1
  250. package/lib/TransformAnim.js +1 -1
  251. package/lib/cardGetter.js +1 -1
  252. package/lib/designer.js +72 -12
  253. package/lib/elementMapper.js +120 -101
  254. package/lib/linkGetter.js +1 -1
  255. package/lib/scrollvideo.js +1 -1
  256. package/package.json +20 -6
package/layout/table.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.98
2
+ * nodality v1.0.0
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -64,6 +64,11 @@ class Table extends Animator {
64
64
  ) {
65
65
  if (obj.gradient) {
66
66
  this.globalGradient = obj.gradient.op.gradient;
67
+
68
+ if (obj.gradient.op.direction === "radial") {
69
+ this.globalGradient = "radial-gradient(circle at center, orange, green)";
70
+ }
71
+
67
72
  }
68
73
 
69
74
  if (obj.stroke) {
package/layout/text.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.98
2
+ * nodality v1.0.0
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -63,9 +63,7 @@ class Text extends Animator {
63
63
  }
64
64
 
65
65
  toCode(){
66
-
67
66
  if (this.excludeFromCodeTrue){
68
- // this.code = ["new Text('').set({})"];
69
67
  return [""];
70
68
  }
71
69
 
@@ -77,8 +75,6 @@ class Text extends Animator {
77
75
  .stringify(cleanedObj, null, 4)
78
76
  .replace(/"([^"]+)":/g, '$1:');
79
77
 
80
- console.log("OCO")
81
- console.log(objString);
82
78
  return [`new Text("${this.text}").set(${objString})`];
83
79
  }
84
80
 
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.98
2
+ * nodality v1.0.0
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/ulist.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.98
2
+ * nodality v1.0.0
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/video.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.98
2
+ * nodality v1.0.0
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.98
2
+ * nodality v1.0.0
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/layout/wrap.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.98
2
+ * nodality v1.0.0
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.98
2
+ * nodality v1.0.0
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/lib/AppleAnim.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.98
2
+ * nodality v1.0.0
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.98
2
+ * nodality v1.0.0
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/lib/Stacker.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.98
2
+ * nodality v1.0.0
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.98
2
+ * nodality v1.0.0
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/lib/cardGetter.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.98
2
+ * nodality v1.0.0
3
3
  * (c) 2025 Filip Vabrousek
4
4
  * License: MIT
5
5
  */
package/lib/designer.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.98
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(30deg)",
517
- "skew(40deg, 0deg)",
518
- "perspective(500px)",
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:-20px",
764
- "scale(3)",
765
- "rotate(30deg)",
762
+ "ty:20px",
763
+ "tx:30px",
764
+ // "scale(3)",
765
+ "rotate(3deg)",
766
766
  "skew(40deg, 0deg)",
767
- "perspective(500px)",
768
- "matrix(1, 0, 0, 1, 50, 50)"
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) {
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * nodality v1.0.0-beta.98
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: "green",
775
+ background: "#ecf0f1",
776
776
  mar: [{ "a": 21 }],
777
- brand: new Text("A").set({size: "S1"}),
777
+ brand: new Text("Company").set({size: "S6", font: "Helvetica"}),
778
778
  hamburgerColour: "#3498db",
779
779
  radius: "1rem",
780
780
  }).add([
781
- new Link("A").set({text: "A", url: "#a"}),//.render()
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("First")
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("Firsti")
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("Firstiuu")
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: "B", url: "#b"}),//.render()
839
- new Link("C").set({text: "C", url: "https://www.abcnews.com"})//.render()
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: "green",
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("A").set({size: "S1"}),
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("First")
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
- background: "orange",
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: "A", // BEWARE
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: "Kivi new TV",
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: "Thanks GPT",
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("Desktop bar").set({text: "Desktop bar", url: "#a"}),//.render()
951
- new Link("B").set({text: "B", url: "#a"}),//.render()
952
- new Link("C").set({text: "C", url: "#a"})//.render()
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(
@@ -1012,82 +1013,91 @@ new Wrapper().set({
1012
1013
  font: "Arial",
1013
1014
  pad: [{a:20}],
1014
1015
  bold: true,
1015
- align: "left" // 21:04:58
1016
+ tags: {open: "sidebar:open", close: "sidebar:closed"},
1017
+ align: "left", // 21:04:58
1018
+ hover: {
1019
+ color: "wheat",
1020
+ animation: 0.3
1021
+ }
1016
1022
  }));
1017
1023
 
1018
1024
 
1019
1025
  const dropdown = new Dropdown().set({
1020
1026
  behaviour: "mouseover",
1021
- pad: [{"a":40}],
1022
- //socenter: true,
1023
- padding: "10px",
1024
- border: "1px solid black",
1025
- animation: { // also works without animation block
1026
- range: ["0px", "1900px"],
1027
- op: {
1028
- name: "animation",
1029
- color: "green", // 102410 19/11/24 staggered
1030
- width: "1px",
1031
- keyframesOpen: [ // staggered effect
1032
- { transform: `translate(100%, ${1*10}%)`, opacity: 0 },
1033
- { transform: `translate(0%)`, opacity: 1 }
1034
- ],
1035
- keyframesClose: [ // put where approprriate
1036
- { transform: 'translate(0%)', opacity: 1 },
1037
- { transform: `translate(100%, ${1*10}%)`, opacity: 0 }
1038
- ],
1039
- openOptions: {
1040
- duration: 300,
1041
- fill: 'forwards',
1042
- delay: 1000 // 1000
1043
- },
1044
- closeOptions:{
1045
- duration: 1, // 1 should be acceptable here when I close
1046
- fill: 'forwards',
1047
- delay: 1000 // 1000 why does 3000 work during open but not during close??
1027
+ pad: [{ "a": 40 }],
1028
+ //socenter: true,
1029
+ padding: "10px",
1030
+ // border: "1px solid black",
1031
+ animation: { // also works without animation block
1032
+ range: ["0px", "1900px"],
1033
+ op: {
1034
+ name: "animation",
1035
+ color: "green", // 102410 19/11/24 staggered
1036
+ width: "1px",
1037
+ keyframesOpen: [ // staggered effect
1038
+ { transform: `translate(100%, ${1 * 10}%)`, opacity: 0 },
1039
+ { transform: `translate(0%)`, opacity: 1 }
1040
+ ],
1041
+ keyframesClose: [ // put where approprriate
1042
+ { transform: 'translate(0%)', opacity: 1 },
1043
+ { transform: `translate(100%, ${1 * 10}%)`, opacity: 0 }
1044
+ ],
1045
+ openOptions: {
1046
+ duration: 300,
1047
+ fill: 'forwards',
1048
+ delay: 1000 // 1000
1049
+ },
1050
+ closeOptions: {
1051
+ duration: 1, // 1 should be acceptable here when I close
1052
+ fill: 'forwards',
1053
+ delay: 1000 // 1000 why does 3000 work during open but not during close??
1054
+ },
1055
+ },
1048
1056
  },
1049
- },
1050
- },
1051
- }).add([
1052
- new Text("First")
1053
- .set({
1054
- cursor: "hand",
1055
- icon: {padding:30,url:"https://cdn-icons-png.flaticon.com/512/60/60995.png"},
1056
- fluidc: "S6",
1057
- pad: [{l:10,r:10}],
1058
- font: "Arial",
1059
- align: "center",
1060
- weight: "bold",
1061
-
1062
- })
1063
-
1064
- ,
1065
- new Wrapper()
1066
- .set({centerColumn: true,
1067
- radius: "0.7rem",background: "#1abc9c",
1068
- makeResponsiveBehaviour: "undefined",})
1069
- .add([
1070
-
1071
- new Link()
1072
- .set({
1073
- pad: [{a:10}],
1074
- font: "Arial",
1075
- hover: {color:"wheat",animation:0.3},
1076
- bold: true,
1077
- link: "https://www.apple.com",
1078
- text: "Second",
1079
- icon: {padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"},})
1080
- ,
1081
- new Link()
1082
- .set({
1083
- pad: [{a:10}],
1084
- font: "Arial",
1085
- hover: {color:"wheat",animation:0.3},
1086
- bold: true,
1087
- link: "https://www.apple.com",
1088
- text: "Third",
1089
- icon: {padding:30,url:"https://cdn-icons-png.flaticon.com/512/32/32339.png"},})
1090
- ])]);
1057
+ }).add([
1058
+ new Text("More")
1059
+ .set({
1060
+ cursor: "hand",
1061
+ icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/60/60995.png" },
1062
+ fluidc: "S6",
1063
+ pad: [{ l: 10, r: 10 }],
1064
+ font: "Arial",
1065
+ align: "center",
1066
+ weight: "bold",
1067
+
1068
+ })
1069
+
1070
+ ,
1071
+ new Wrapper()
1072
+ .set({
1073
+ centerColumn: true,
1074
+ radius: "0.7rem", background: "#1abc9c",
1075
+ makeResponsiveBehaviour: "undefined",
1076
+ })
1077
+ .add([
1078
+
1079
+ new Link()
1080
+ .set({
1081
+ pad: [{ a: 10 }],
1082
+ font: "Arial",
1083
+ hover: { color: "wheat", animation: 0.3 },
1084
+ bold: true,
1085
+ link: "https://www.apple.com",
1086
+ text: "Second",
1087
+ icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/32/32339.png" },
1088
+ })
1089
+ ,
1090
+ new Link()
1091
+ .set({
1092
+ pad: [{ a: 10 }],
1093
+ font: "Arial",
1094
+ hover: { color: "wheat", animation: 0.3 },
1095
+ bold: true,
1096
+ link: "https://www.apple.com",
1097
+ text: "Third",
1098
+ icon: { padding: 30, url: "https://cdn-icons-png.flaticon.com/512/32/32339.png" },
1099
+ })
1100
+ ])]);
1091
1101
 
1092
1102
 
1093
1103
 
@@ -1099,12 +1109,17 @@ new Wrapper().set({
1099
1109
  text: i.title,
1100
1110
  link: i.link,
1101
1111
  isNavA: true,
1102
- url: "#e",
1112
+ url: "#myURL",
1103
1113
  id: "#" + i.title.toLowerCase(),
1104
1114
  font: "Arial",
1105
1115
  pad: [{a:20}],
1106
1116
  bold: true,
1117
+ tags: {open: "sidebar:open", close: "sidebar:closed"},
1107
1118
  align: "left", // 21:04:58
1119
+ hover: {
1120
+ color: "wheat",
1121
+ animation: 0.3
1122
+ },
1108
1123
  animation: { // also works without animation block
1109
1124
  range: ["0px", "1900px"],
1110
1125
  op: {
@@ -1143,14 +1158,14 @@ if (obj.el.dropdown){
1143
1158
 
1144
1159
  // Always require link wrapper
1145
1160
  const linkWrapper = new Wrapper().set({column: true}).add([
1146
- new Text("Ultra Reckoning")
1161
+ new Text("Sidebar")
1147
1162
  .set({
1148
- fluidc: "S6",
1163
+ size: "S6",
1149
1164
  font: "Arial",
1150
1165
  id: "#olod",
1151
1166
  italic: true,
1152
1167
  animation: {range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}},
1153
- pad: [{l:40}, {t:20}], // Insert in the right plce
1168
+ pad: [{l:20}, {t:20}], // Insert in the right plce
1154
1169
  // pad: {sides: ["all"], value: "1rem"}
1155
1170
  }),
1156
1171
 
@@ -1159,7 +1174,7 @@ if (obj.el.dropdown){
1159
1174
  obj.el.animation ? animatedLinks[2] : links[2],
1160
1175
  (obj.el.animation && obj.el.dropdown) ? animatedLinks[3] : new Text("").set({}).excludeFromCode(),
1161
1176
 
1162
- new Text("Paramount, 2024")
1177
+ new Text("Company, 2025")
1163
1178
  .set({ // no ID, no animation
1164
1179
  pad: [{a: 20}],
1165
1180
  animation: {range:["0px","1900px"],op:{name:"animation",color:"green",width:"1px"}},
@@ -1196,6 +1211,8 @@ if (obj.el.dropdown){
1196
1211
  background: "#ecf0f1",
1197
1212
  hamColour: {opened: "#1abc9c", closed: "#e67e22"},
1198
1213
  mobileSize: "1.2em",
1214
+ fixed: true,
1215
+ tags: {open: "sidebar:open", close: "sidebar:closed"}
1199
1216
  }).items(obj.el.offcanvas ? offCanvas : linkWrapper );
1200
1217
 
1201
1218
 
@@ -1224,7 +1241,7 @@ if (obj.el.dropdown){
1224
1241
  templateCols = null;
1225
1242
  }
1226
1243
  5
1227
- if (ft.op.value === "image-overlay-text"){ // 17:43:03
1244
+ if (ft.op.value === "img-overlay-text"){ // 17:43:03
1228
1245
  spanObjects = {
1229
1246
  text: {row: "1 / span 2", col: "3 / span 2"},
1230
1247
  image: {row: "2 / span 3", col: "3 / 3"}
@@ -1232,7 +1249,7 @@ if (obj.el.dropdown){
1232
1249
  }
1233
1250
 
1234
1251
  // react on by value to control amount
1235
- if (ft.op.value === "image-leftof-text") { // no 3-6
1252
+ if (ft.op.value === "img-leftof-text") { // no 3-6
1236
1253
  spanObjects = {
1237
1254
  text: {row: "1", col: "1 / 3"},
1238
1255
  image: {row: "1", col: "3 / 4"}
@@ -1253,16 +1270,17 @@ if (obj.el.dropdown){
1253
1270
  new Text("I am free")
1254
1271
  .set({
1255
1272
  border: "3px solid green",
1256
- "font": "Arial", // 23:11:24 08/11/24 "font" works also?
1257
- fluidc: "S1",
1273
+ font: "Arial", // 23:11:24 08/11/24 "font" works also?
1274
+ size: "S1",
1258
1275
  color: "#1abc9c",
1259
1276
  gpos: spanObjects != null ? (spanObjects.text) : null, // "span 2" can also work here as string
1260
1277
  zIndex: 1
1261
1278
  }),
1262
1279
 
1263
- new Image("https://www.cruisemapper.com/images/ships/2183-e9681865a61.jpg")
1280
+ new Image()
1264
1281
  .set({
1265
- url: "https://www.cruisemapper.com/images/ships/2183-e9681865a61.jpg",
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",
1266
1284
  width: "400px",
1267
1285
  height: "auto",
1268
1286
  gpos: spanObjects != null ? (spanObjects.image) : null,
@@ -1500,7 +1518,8 @@ const blast = this.filtero("blast", el.id, obj.customOptions);
1500
1518
  background: "#3498db",
1501
1519
  pad: [{ lr: "0.5rem", tb: "1rem" }],
1502
1520
  radius: "0.4rem",
1503
- color: "white"
1521
+ color: "white",
1522
+ mar: [{"a": 21}]
1504
1523
  })
1505
1524
  ])`;
1506
1525