taffy-js 0.2.0 → 0.2.2
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 +8 -0
- package/package.json +16 -50
- package/taffy_js.d.ts +846 -0
- package/taffy_js.js +1821 -0
- package/taffy_js_bg.wasm +0 -0
package/README.md
CHANGED
|
@@ -229,6 +229,7 @@ const style = new Style();
|
|
|
229
229
|
| `min_size` | `{ width, height }` | Minimum size constraints |
|
|
230
230
|
| `max_size` | `{ width, height }` | Maximum size constraints |
|
|
231
231
|
| `aspect_ratio` | `number?` | Width-to-height ratio |
|
|
232
|
+
| `box_sizing` | `BoxSizing` | Size calculation mode |
|
|
232
233
|
|
|
233
234
|
#### Spacing
|
|
234
235
|
|
|
@@ -416,6 +417,13 @@ Overflow.Scroll; // Always show scrollbars
|
|
|
416
417
|
Overflow.Auto; // Show scrollbars when needed
|
|
417
418
|
```
|
|
418
419
|
|
|
420
|
+
#### BoxSizing
|
|
421
|
+
|
|
422
|
+
```typescript
|
|
423
|
+
BoxSizing.BorderBox; // Include padding/border in size (default)
|
|
424
|
+
BoxSizing.ContentBox; // Size is content only
|
|
425
|
+
```
|
|
426
|
+
|
|
419
427
|
---
|
|
420
428
|
|
|
421
429
|
## 📏 Custom Measurement
|
package/package.json
CHANGED
|
@@ -1,58 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "taffy-js",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
|
|
6
|
-
"layout",
|
|
7
|
-
"flexbox",
|
|
8
|
-
"css-grid",
|
|
9
|
-
"grid",
|
|
10
|
-
"ui",
|
|
11
|
-
"wasm",
|
|
12
|
-
"webassembly"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"collaborators": [
|
|
5
|
+
"ByteLandTechnology <github@byteland.app>"
|
|
13
6
|
],
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
},
|
|
7
|
+
"description": "WebAssembly bindings for Taffy layout library",
|
|
8
|
+
"version": "0.2.2",
|
|
9
|
+
"license": "MIT",
|
|
18
10
|
"repository": {
|
|
19
11
|
"type": "git",
|
|
20
|
-
"url": "
|
|
12
|
+
"url": "https://github.com/ByteLandTechnology/taffy-js"
|
|
21
13
|
},
|
|
22
|
-
"license": "MIT",
|
|
23
|
-
"author": "ByteLandTechnology <github@byteland.app>",
|
|
24
|
-
"type": "module",
|
|
25
|
-
"main": "pkg/taffy_js.js",
|
|
26
|
-
"types": "pkg/taffy_js.d.ts",
|
|
27
14
|
"files": [
|
|
28
|
-
"
|
|
15
|
+
"taffy_js_bg.wasm",
|
|
16
|
+
"taffy_js.js",
|
|
17
|
+
"taffy_js.d.ts"
|
|
29
18
|
],
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
"devDependencies": {
|
|
37
|
-
"@commitlint/cli": "^20.3.0",
|
|
38
|
-
"@commitlint/config-conventional": "^20.3.0",
|
|
39
|
-
"husky": "^9.1.7",
|
|
40
|
-
"lint-staged": "^16.2.7",
|
|
41
|
-
"prettier": "^3.7.4",
|
|
42
|
-
"wasm-pack": "^0.13.1"
|
|
43
|
-
},
|
|
44
|
-
"engines": {
|
|
45
|
-
"node": ">=12"
|
|
46
|
-
},
|
|
47
|
-
"overrides": {
|
|
48
|
-
"axios": "^1.7.9"
|
|
49
|
-
},
|
|
50
|
-
"commitlint": {
|
|
51
|
-
"extends": [
|
|
52
|
-
"@commitlint/config-conventional"
|
|
53
|
-
]
|
|
54
|
-
},
|
|
55
|
-
"lint-staged": {
|
|
56
|
-
"*.{js,ts,jsx,tsx,json,md,yaml,yml}": "prettier --write"
|
|
57
|
-
}
|
|
58
|
-
}
|
|
19
|
+
"main": "taffy_js.js",
|
|
20
|
+
"types": "taffy_js.d.ts",
|
|
21
|
+
"sideEffects": [
|
|
22
|
+
"./snippets/*"
|
|
23
|
+
]
|
|
24
|
+
}
|