nodality 1.5.2 → 1.5.4
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/README.md +2 -22
- package/bin/mcp-server.mjs +3 -1
- package/dist/animator.cjs.js.LICENSE.txt +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.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 +28 -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.LICENSE.txt +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 +28 -1
- package/dist/designer.esm.js +1 -1
- package/dist/designer.esm.js.LICENSE.txt +28 -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 +28 -1
- package/dist/flex-card.cjs.js.LICENSE.txt +1 -1
- package/dist/flex-card.esm.js.LICENSE.txt +1 -1
- package/dist/flex-grid.cjs.js +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 +28 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.LICENSE.txt +28 -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 +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.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.LICENSE.txt +1 -1
- package/dist/text-field.esm.js.LICENSE.txt +1 -1
- package/dist/text.cjs.js +1 -1
- package/dist/text.cjs.js.LICENSE.txt +1 -1
- package/dist/text.esm.js +1 -1
- package/dist/text.esm.js.LICENSE.txt +1 -1
- package/dist/theme.cjs.js.LICENSE.txt +1 -1
- package/dist/theme.esm.js.LICENSE.txt +1 -1
- package/dist/transform-anim.cjs.js.LICENSE.txt +1 -1
- package/dist/transform-anim.esm.js.LICENSE.txt +1 -1
- package/dist/ulist.cjs.js +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.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 -1
- package/layout/audionew.js +3 -2
- 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 +9 -7
- package/layout/center.js +1 -1
- package/layout/checkbox.js +3 -2
- package/layout/circle.js +1 -1
- package/layout/code.js +5 -11
- package/layout/container.js +14 -14
- package/layout/dropdown-2025.js +3 -2
- package/layout/flex-card.js +1 -1
- package/layout/flex-grid.js +4 -3
- package/layout/flex-row.js +3 -9
- 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-overlay.js +1 -1
- package/layout/grid-switcher.js +1 -1
- package/layout/grid.js +1 -1
- package/layout/horizontal-scroller.js +1 -1
- package/layout/image.js +18 -17
- package/layout/index.js +1 -1
- package/layout/link.js +12 -12
- package/layout/list.js +1 -1
- package/layout/meta-adder.js +1 -1
- package/layout/modal-2025.js +1 -1
- package/layout/morph.js +1 -1
- package/layout/multiswitcher.js +3 -2
- package/layout/nav-bar.js +1 -1
- package/layout/nav-factor/custom-div.js +1 -1
- package/layout/new-nav-bar.js +1 -1
- package/layout/polygon.js +1 -1
- 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/scroll-video.js +1 -1
- package/layout/shop.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 +3 -2
- package/layout/table.js +1 -1
- package/layout/text-field.js +1 -1
- package/layout/text.js +21 -13
- package/layout/ulist.js +3 -2
- package/layout/video.js +3 -3
- package/layout/wrap.js +1 -1
- package/layout/zoom-card.js +1 -1
- package/lib/agent-surface.js +1 -1
- package/lib/card-getter.js +1 -1
- package/lib/check-page.js +1 -1
- package/lib/codegen.js +11 -2
- package/lib/data.js +1 -1
- package/lib/designer.js +5 -4
- package/lib/element-mapper.js +3 -2
- package/lib/element-params.generated.js +1 -1
- package/lib/grid-geometry.js +1 -1
- package/lib/keyframe-animation.js +1 -1
- package/lib/known-inert.js +1 -1
- package/lib/link-getter.js +1 -1
- package/lib/morph-node.js +1 -1
- package/lib/normalize-spec.js +1 -1
- package/lib/op-semantics.js +178 -0
- package/lib/parse-html.js +60 -6
- package/lib/raster-inspect.js +1 -1
- package/lib/raster-ops.js +1 -1
- package/lib/raster-presets.js +1 -1
- package/lib/react.js +1 -1
- package/lib/resolve-refs.js +1 -1
- package/lib/responsive.js +41 -1
- package/lib/scroll-video.js +1 -1
- package/lib/seo.js +1 -1
- package/lib/stacker.js +1 -1
- package/lib/suggest.js +1 -1
- package/lib/theme.js +1 -1
- package/lib/transform-anim.js +1 -1
- package/lib/transition.js +1 -1
- package/lib/validate-nodes.js +13 -2
- package/lib/view-transition.js +1 -1
- package/lib/webmcp-adapter.js +1 -1
- package/package.json +1 -1
- package/skills/nodality/SKILL.md +3 -5
- package/skills/nodality/references/editing.md +8 -6
- package/skills/nodality-edit-page/SKILL.md +3 -1
package/layout/flex-grid.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.5.
|
|
2
|
+
* nodality v1.5.4
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import {Animator} from "./animator.js";
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
import { jsString } from "../lib/codegen.js";
|
|
10
11
|
// Add code-gen after backup
|
|
11
12
|
class FlexGrid extends Animator {
|
|
12
13
|
constructor(){
|
|
@@ -67,7 +68,7 @@ class FlexGrid extends Animator {
|
|
|
67
68
|
|
|
68
69
|
|
|
69
70
|
options.colat && this.toColumnAt(options.colat);
|
|
70
|
-
options.colat && this.code.push(`\n colat:
|
|
71
|
+
options.colat && this.code.push(`\n colat: ${jsString(options.colat)},`);
|
|
71
72
|
|
|
72
73
|
|
|
73
74
|
|
|
@@ -180,7 +181,7 @@ class FlexGrid extends Animator {
|
|
|
180
181
|
flex(str){
|
|
181
182
|
this.arra = Array.from(str.replace(/\s/g, ''));
|
|
182
183
|
this.areas = Array.from(Array(str.replace(/\s/g, '')).join(""));
|
|
183
|
-
this.save =
|
|
184
|
+
this.save = `${jsString(str)}`;
|
|
184
185
|
return this;
|
|
185
186
|
}
|
|
186
187
|
|
package/layout/flex-row.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.5.
|
|
2
|
+
* nodality v1.5.4
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import {Animator} from "./animator.js";
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import { toObjectSource } from "../lib/codegen.js";
|
|
10
10
|
class FlexRow extends Animator {
|
|
11
11
|
constructor(frs, saveEl) {
|
|
12
12
|
super();
|
|
@@ -372,13 +372,7 @@ let stringified = JSON.stringify(options.borderObj);
|
|
|
372
372
|
}
|
|
373
373
|
|
|
374
374
|
// stringify cleaned object
|
|
375
|
-
const objString =
|
|
376
|
-
.replace(keyPattern(), "$1:") // unquote identifier keys
|
|
377
|
-
.replace(/"([^"]*)"/g, (m, p1) => {
|
|
378
|
-
// wrap multiline text/code in backticks
|
|
379
|
-
if (p1.includes("\n")) return "`" + p1.replace(/`/g, "\\`") + "`";
|
|
380
|
-
return `"${p1}"`;
|
|
381
|
-
});
|
|
375
|
+
const objString = toObjectSource(clean, 4);
|
|
382
376
|
|
|
383
377
|
// recurse into children that support toCode()
|
|
384
378
|
const itemsCode = (this.items || [])
|
package/layout/free.js
CHANGED
package/layout/grid-overlay.js
CHANGED
package/layout/grid-switcher.js
CHANGED
package/layout/grid.js
CHANGED
package/layout/image.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.5.
|
|
2
|
+
* nodality v1.5.4
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import {Animator} from "./animator.js";
|
|
8
8
|
|
|
9
9
|
|
|
10
|
+
import { jsString } from "../lib/codegen.js";
|
|
10
11
|
class Image extends Animator {
|
|
11
12
|
constructor(url, type, mode, gcs) {
|
|
12
13
|
super();
|
|
@@ -24,10 +25,10 @@ class Image extends Animator {
|
|
|
24
25
|
this.code = [];
|
|
25
26
|
|
|
26
27
|
if (type === "exact"){ // Has to be there
|
|
27
|
-
const str = `new Image(
|
|
28
|
+
const str = `new Image(${jsString(this.url)}, "exact")`;
|
|
28
29
|
this.code.push(str);
|
|
29
30
|
} else if (type === "uncover"){ // Has to be there
|
|
30
|
-
const str = `new Image(
|
|
31
|
+
const str = `new Image(${jsString(this.url)}, "uncover")`;
|
|
31
32
|
this.code.push(str);
|
|
32
33
|
} else {
|
|
33
34
|
this.code.push(`new Image('${this.url}')`);
|
|
@@ -129,16 +130,16 @@ let obj = options;
|
|
|
129
130
|
}
|
|
130
131
|
|
|
131
132
|
options.id && this.res.setAttribute("id", options.id);
|
|
132
|
-
options.id && (stra += ` id:
|
|
133
|
+
options.id && (stra += ` id: ${jsString(options.id)}, \n`);
|
|
133
134
|
this.id = options.id;
|
|
134
135
|
|
|
135
136
|
|
|
136
137
|
// alert("Thrice?");
|
|
137
138
|
|
|
138
139
|
if (type === "exact"){ // Has to be there
|
|
139
|
-
const str = `new Image(
|
|
140
|
+
const str = `new Image(${jsString(this.url)}, "exact")`;
|
|
140
141
|
} else if (type === "uncover"){ // Has to be there
|
|
141
|
-
const str = `new Image(
|
|
142
|
+
const str = `new Image(${jsString(this.url)}, "uncover")`;
|
|
142
143
|
} else {
|
|
143
144
|
}
|
|
144
145
|
|
|
@@ -152,7 +153,7 @@ let obj = options;
|
|
|
152
153
|
|
|
153
154
|
options.index && super.setIndex(options.index);
|
|
154
155
|
options.index && (this.index = options.index);
|
|
155
|
-
options.index && (stra += `\n index:
|
|
156
|
+
options.index && (stra += `\n index: ${jsString(options.index)},`);
|
|
156
157
|
|
|
157
158
|
options.resprop && this.resprop(options.resprop, options);
|
|
158
159
|
|
|
@@ -170,12 +171,12 @@ let obj = options;
|
|
|
170
171
|
}
|
|
171
172
|
|
|
172
173
|
options.objectFit && (this.res.style.objectFit = /*"cover")*/ options.objectFit);
|
|
173
|
-
options.objectFit && (stra += `\n objectFit:
|
|
174
|
+
options.objectFit && (stra += `\n objectFit: ${jsString(options.objectFit)},`);
|
|
174
175
|
|
|
175
176
|
// Companion to objectFit — chooses which part of a cropped image stays
|
|
176
177
|
// visible (e.g. "center 38%" to favour faces over foreground).
|
|
177
178
|
options.objectPosition && (this.res.style.objectPosition = options.objectPosition);
|
|
178
|
-
options.objectPosition && (stra += `\n objectPosition:
|
|
179
|
+
options.objectPosition && (stra += `\n objectPosition: ${jsString(options.objectPosition)},`);
|
|
179
180
|
|
|
180
181
|
|
|
181
182
|
options.as && this.as(options.as);
|
|
@@ -236,11 +237,11 @@ let obj = options;
|
|
|
236
237
|
|
|
237
238
|
options.isBackground && (this.isBackground = options.isBackground);
|
|
238
239
|
|
|
239
|
-
options.zIndex && (stra += `\n zIndex:
|
|
240
|
+
options.zIndex && (stra += `\n zIndex: ${jsString(options.zIndex)}, \n`);
|
|
240
241
|
|
|
241
242
|
|
|
242
243
|
options.area && this.setArea(options.area);
|
|
243
|
-
options.area && (stra += `area:
|
|
244
|
+
options.area && (stra += `area: ${jsString(options.area)}, \n`);
|
|
244
245
|
|
|
245
246
|
|
|
246
247
|
options.opacity && (this.res.style.opacity = options.opacity);
|
|
@@ -248,24 +249,24 @@ let obj = options;
|
|
|
248
249
|
|
|
249
250
|
// alert(options.height);
|
|
250
251
|
options.width && (this.res.style.width = options.width);
|
|
251
|
-
options.width && (stra += `width:
|
|
252
|
+
options.width && (stra += `width: ${jsString(options.width)}, `);
|
|
252
253
|
|
|
253
254
|
options.maxWidth && (this.res.style.maxWidth = options.maxWidth);
|
|
254
|
-
options.maxWidth && (stra += `maxWidth:
|
|
255
|
+
options.maxWidth && (stra += `maxWidth: ${jsString(options.maxWidth)}, `);
|
|
255
256
|
|
|
256
257
|
options.height && (this.res.style.height = options.height);
|
|
257
|
-
options.height && (stra += `height:
|
|
258
|
+
options.height && (stra += `height: ${jsString(options.height)}, `);
|
|
258
259
|
|
|
259
260
|
|
|
260
261
|
options.maxWidth && this.maxWidth(options.maxWidth);
|
|
261
262
|
|
|
262
|
-
options.maxWidth && (stra += `maxWidth:
|
|
263
|
+
options.maxWidth && (stra += `maxWidth: ${jsString(options.maxWidth)}, \n`);
|
|
263
264
|
|
|
264
265
|
|
|
265
266
|
options.radius && this.cornerRadius(options.radius);
|
|
266
267
|
|
|
267
268
|
|
|
268
|
-
options.radius && (stra += `radius:
|
|
269
|
+
options.radius && (stra += `radius: ${jsString(options.radius)}, \n`);
|
|
269
270
|
|
|
270
271
|
if (options.marginOp) {
|
|
271
272
|
let stringified = this.removeQuotesFromFirstWord(JSON.stringify(options.marginOp));
|
|
@@ -273,7 +274,7 @@ let obj = options;
|
|
|
273
274
|
}
|
|
274
275
|
|
|
275
276
|
options.clipPath && this.clipPath(options.clipPath);
|
|
276
|
-
options.clipPath && (stra += `clipPath:
|
|
277
|
+
options.clipPath && (stra += `clipPath: ${jsString(options.clipPath)}, \n`);
|
|
277
278
|
|
|
278
279
|
//@ img.reveal {object}: Reveal the image through a mask as it scrolls into view: {mask: "square", size: 0.3, duration: "1.2s", easing, zoom: 1.12, offset: 0.2, delay: "0s", once: true}. It starts as a centred square `size` × its shorter side and opens to the full frame once the square rises `offset` of the viewport height above the bottom edge. Owns clip-path and scale while it runs; reduced-motion visitors, and pages with no IntersectionObserver (the prerender), get the image unmasked.
|
|
279
280
|
options.reveal && this.reveal(options.reveal);
|
package/layout/index.js
CHANGED
package/layout/link.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.5.
|
|
2
|
+
* nodality v1.5.4
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import {Animator} from "./animator.js";
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
import { toObjectSource } from "../lib/codegen.js";
|
|
10
|
+
import { toObjectSource, jsString } from "../lib/codegen.js";
|
|
11
11
|
import { keyPattern } from "../lib/codegen.js";
|
|
12
12
|
class Link extends Animator {
|
|
13
13
|
constructor(text, link, stopEM){
|
|
@@ -200,7 +200,7 @@ obj.pad && (stra += `\n pad: ${rempad},`);
|
|
|
200
200
|
(obj.preffersId != undefined) && (stra += `\n preffersId: ${obj.preffersId},`);
|
|
201
201
|
|
|
202
202
|
obj.class && super.setClass(obj.class);
|
|
203
|
-
obj.class && (stra += `\n class:
|
|
203
|
+
obj.class && (stra += `\n class: ${jsString(obj.class)},`);
|
|
204
204
|
//alert(obj.class);
|
|
205
205
|
|
|
206
206
|
if (obj.borderObj){
|
|
@@ -228,11 +228,11 @@ obj.pad && (stra += `\n pad: ${rempad},`);
|
|
|
228
228
|
//@ nowrap: Keep the label on one line (white-space: nowrap).
|
|
229
229
|
obj.nowrap && (this.res.style.whiteSpace = "nowrap");
|
|
230
230
|
obj.font && this.font(obj.font);
|
|
231
|
-
obj.font && (stra += `\n font:
|
|
231
|
+
obj.font && (stra += `\n font: ${jsString(obj.font)},`);
|
|
232
232
|
obj.font && (this.elCSS.push(`font-family: "${obj.font}"; \n`));
|
|
233
233
|
|
|
234
234
|
obj.fluidc && this.fluidCopy(obj.fluidc);
|
|
235
|
-
obj.fluidc && (stra += `\n fluidc:
|
|
235
|
+
obj.fluidc && (stra += `\n fluidc: ${jsString(obj.fluidc)},`);
|
|
236
236
|
|
|
237
237
|
// obj.size && (stra += `\n size: "${obj.size}",`);
|
|
238
238
|
|
|
@@ -240,16 +240,16 @@ obj.pad && (stra += `\n pad: ${rempad},`);
|
|
|
240
240
|
obj.clampc && this.clampCopy(obj.clampc);
|
|
241
241
|
|
|
242
242
|
|
|
243
|
-
this.options.id && (stra += `\n id:
|
|
243
|
+
this.options.id && (stra += `\n id: ${jsString(this.options.id)},`);
|
|
244
244
|
|
|
245
245
|
|
|
246
246
|
obj.align && this.leftAlign(obj.align); // 1145 WOW
|
|
247
|
-
obj.align && (stra += `\n align:
|
|
247
|
+
obj.align && (stra += `\n align: ${jsString(obj.align)},`);
|
|
248
248
|
|
|
249
249
|
|
|
250
250
|
obj.type && (this.res.style.display = "block");
|
|
251
251
|
obj.color && this.color(obj.color);
|
|
252
|
-
obj.color && (stra += `\n color:
|
|
252
|
+
obj.color && (stra += `\n color: ${jsString(obj.color)},`);
|
|
253
253
|
obj.color && (this.elCSS.push(`color: "${obj.color}"; \n`));
|
|
254
254
|
|
|
255
255
|
obj.background && this.background(obj.background);
|
|
@@ -274,9 +274,9 @@ obj.pad && (stra += `\n pad: ${rempad},`);
|
|
|
274
274
|
obj.block && (stra += `\n block: ${obj.block},`);
|
|
275
275
|
|
|
276
276
|
|
|
277
|
-
obj.radius && (stra += `\n radius:
|
|
277
|
+
obj.radius && (stra += `\n radius: ${jsString(obj.radius)},`);
|
|
278
278
|
|
|
279
|
-
obj.width && (stra += `\n width:
|
|
279
|
+
obj.width && (stra += `\n width: ${jsString(obj.width)},`);
|
|
280
280
|
|
|
281
281
|
|
|
282
282
|
|
|
@@ -288,10 +288,10 @@ obj.pad && (stra += `\n pad: ${rempad},`);
|
|
|
288
288
|
|
|
289
289
|
|
|
290
290
|
obj.url && this.res.setAttribute("href", obj.url);
|
|
291
|
-
stra += `\n url:
|
|
291
|
+
stra += `\n url: ${jsString(obj.url)},`;
|
|
292
292
|
|
|
293
293
|
obj.text && (this.res.textContent = obj.text);
|
|
294
|
-
stra += `\n text:
|
|
294
|
+
stra += `\n text: ${jsString(obj.text)},`;
|
|
295
295
|
|
|
296
296
|
|
|
297
297
|
// stra += `\n text: "${obj.text}",`;
|
package/layout/list.js
CHANGED
package/layout/meta-adder.js
CHANGED
package/layout/modal-2025.js
CHANGED
package/layout/morph.js
CHANGED
package/layout/multiswitcher.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.5.
|
|
2
|
+
* nodality v1.5.4
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import {Animator} from "./animator.js";
|
|
8
8
|
|
|
9
|
+
import { jsString } from "../lib/codegen.js";
|
|
9
10
|
class /*Multi*/Switcher extends Animator {
|
|
10
11
|
constructor(/*it*/) {
|
|
11
12
|
super();
|
|
@@ -53,7 +54,7 @@ class /*Multi*/Switcher extends Animator {
|
|
|
53
54
|
|
|
54
55
|
let str = "";
|
|
55
56
|
for (var i = 0; i < this.options.breakpoints.length; i++){
|
|
56
|
-
str += `{ at:
|
|
57
|
+
str += `{ at: ${jsString(this.options.breakpoints[i].at)}, view: ${this.options.breakpoints[i].view.toCode()} }, \n` }
|
|
57
58
|
|
|
58
59
|
// console.log(str);
|
|
59
60
|
|
package/layout/nav-bar.js
CHANGED
package/layout/new-nav-bar.js
CHANGED
package/layout/polygon.js
CHANGED
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/shop.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
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* nodality v1.5.
|
|
2
|
+
* nodality v1.5.4
|
|
3
3
|
* (c) 2026 Filip Vabrousek
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import {Animator} from "./animator.js";
|
|
8
|
+
import { jsString } from "../lib/codegen.js";
|
|
8
9
|
class Switcher extends Animator {
|
|
9
10
|
constructor(obj){
|
|
10
11
|
super();
|
|
@@ -18,7 +19,7 @@ class Switcher extends Animator {
|
|
|
18
19
|
if (obj.first.toCode && obj.second.toCode){
|
|
19
20
|
|
|
20
21
|
|
|
21
|
-
this.code.push(`, new Switcher({breakpoint:
|
|
22
|
+
this.code.push(`, new Switcher({breakpoint: ${jsString(this.obj.breakpoint)}, first: ${this.obj.first.toCode()}, second: ${this.obj.second.toCode()}})`);
|
|
22
23
|
|
|
23
24
|
}
|
|
24
25
|
|
package/layout/table.js
CHANGED
package/layout/text-field.js
CHANGED