@geometra/core 1.7.0 → 1.8.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/layout-bounds.d.ts
CHANGED
|
@@ -20,8 +20,11 @@ export declare function finiteNumberOrZero(value: unknown): number;
|
|
|
20
20
|
* @param layout — Bounds from Textura/Yoga {@link ComputedLayout} output.
|
|
21
21
|
* @returns `true` when `x`, `y`, `width`, and `height` are finite and both dimensions are `>= 0`.
|
|
22
22
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
23
|
+
* `x` / `y` / `width` / `height` are read with normal property access (destructuring), so inherited
|
|
24
|
+
* **enumerable** values on the prototype chain are observed the same as own fields — typical
|
|
25
|
+
* {@link ComputedLayout} snapshots from Textura use plain objects with own fields only.
|
|
26
|
+
* {@link ComputedLayout.children} is not validated recursively. Callers walking a tree should check
|
|
27
|
+
* each visited layout when needed.
|
|
25
28
|
*/
|
|
26
29
|
export declare function layoutBoundsAreFinite(layout: ComputedLayout): boolean;
|
|
27
30
|
//# sourceMappingURL=layout-bounds.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-bounds.d.ts","sourceRoot":"","sources":["../src/layout-bounds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAO7C;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEzD;AAED
|
|
1
|
+
{"version":3,"file":"layout-bounds.d.ts","sourceRoot":"","sources":["../src/layout-bounds.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAA;AAO7C;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEzD;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAUrE"}
|
package/dist/layout-bounds.js
CHANGED
|
@@ -25,8 +25,11 @@ export function finiteNumberOrZero(value) {
|
|
|
25
25
|
* @param layout — Bounds from Textura/Yoga {@link ComputedLayout} output.
|
|
26
26
|
* @returns `true` when `x`, `y`, `width`, and `height` are finite and both dimensions are `>= 0`.
|
|
27
27
|
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
28
|
+
* `x` / `y` / `width` / `height` are read with normal property access (destructuring), so inherited
|
|
29
|
+
* **enumerable** values on the prototype chain are observed the same as own fields — typical
|
|
30
|
+
* {@link ComputedLayout} snapshots from Textura use plain objects with own fields only.
|
|
31
|
+
* {@link ComputedLayout.children} is not validated recursively. Callers walking a tree should check
|
|
32
|
+
* each visited layout when needed.
|
|
30
33
|
*/
|
|
31
34
|
export function layoutBoundsAreFinite(layout) {
|
|
32
35
|
const { x, y, width, height } = layout;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layout-bounds.js","sourceRoot":"","sources":["../src/layout-bounds.ts"],"names":[],"mappings":"AAEA,8HAA8H;AAC9H,SAAS,oBAAoB,CAAC,KAAc;IAC1C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;AAC5D,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC/C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;AACxE,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"layout-bounds.js","sourceRoot":"","sources":["../src/layout-bounds.ts"],"names":[],"mappings":"AAEA,8HAA8H;AAC9H,SAAS,oBAAoB,CAAC,KAAc;IAC1C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;AAC5D,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,kBAAkB,CAAC,KAAc;IAC/C,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;AACxE,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,qBAAqB,CAAC,MAAsB;IAC1D,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;IACtC,OAAO,CACL,oBAAoB,CAAC,CAAC,CAAC;QACvB,oBAAoB,CAAC,CAAC,CAAC;QACvB,oBAAoB,CAAC,KAAK,CAAC;QAC3B,oBAAoB,CAAC,MAAM,CAAC;QAC5B,KAAK,IAAI,CAAC;QACV,MAAM,IAAI,CAAC,CACZ,CAAA;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geometra/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "DOM-free UI framework core: components, signals, reconciler",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"check": "tsc --noEmit"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"textura": "^1.
|
|
42
|
+
"textura": "^1.8.0"
|
|
43
43
|
},
|
|
44
44
|
"optionalDependencies": {
|
|
45
45
|
"@napi-rs/canvas": "^0.1.65"
|