taffy-wasm 0.9.6 → 0.9.7

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 CHANGED
@@ -329,7 +329,7 @@ type AvailableSpace = number | "minContent" | "maxContent";
329
329
 
330
330
  // Measure function for custom content measurement
331
331
  type MeasureFunction = (
332
- knownDimensions: Size<number | null>,
332
+ knownDimensions: Size<number | undefined>,
333
333
  availableSpace: Size<AvailableSpace>,
334
334
  node: bigint,
335
335
  context: any,
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "ByteLandTechnology <github@byteland.app>"
6
6
  ],
7
7
  "description": "WebAssembly bindings for Taffy layout library",
8
- "version": "0.9.6",
8
+ "version": "0.9.7",
9
9
  "license": "MIT",
10
10
  "repository": {
11
11
  "type": "git",
package/taffy_wasm.d.ts CHANGED
@@ -80,7 +80,7 @@ export interface Size<T> {
80
80
  * custom sizing based on their content (e.g., text nodes that need text measurement).
81
81
  *
82
82
  * @param knownDimensions - Dimensions already determined by constraints. Each dimension
83
- * is `number` if known, or `null` if needs to be measured.
83
+ * is `number` if known, or `undefined` if needs to be measured.
84
84
  * @param availableSpace - The available space constraints for the node. Can be definite
85
85
  * pixels, "minContent", or "maxContent".
86
86
  * @param node - The node ID (`bigint`) of the node being measured
@@ -130,7 +130,7 @@ export interface Size<T> {
130
130
  * ```
131
131
  */
132
132
  export type MeasureFunction = (
133
- knownDimensions: Size<number | null>,
133
+ knownDimensions: Size<number | undefined>,
134
134
  availableSpace: Size<AvailableSpace>,
135
135
  node: bigint,
136
136
  context: any,
package/taffy_wasm.js CHANGED
@@ -2677,7 +2677,7 @@ function __wbg_get_imports() {
2677
2677
  const ret = arg0.length;
2678
2678
  return ret;
2679
2679
  };
2680
- imports.wbg.__wbg_log_9826028ea7e9105c = function(arg0, arg1) {
2680
+ imports.wbg.__wbg_log_d1f98d69ddd6fc3e = function(arg0, arg1) {
2681
2681
  console.log(getStringFromWasm0(arg0, arg1));
2682
2682
  };
2683
2683
  imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
Binary file