textpour 0.1.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/LICENSE +21 -0
- package/README.md +96 -0
- package/dist/src/auto-fit.d.ts +59 -0
- package/dist/src/auto-fit.js +74 -0
- package/dist/src/balance.d.ts +48 -0
- package/dist/src/balance.js +98 -0
- package/dist/src/flow.d.ts +34 -0
- package/dist/src/flow.js +172 -0
- package/dist/src/glyph-region.d.ts +42 -0
- package/dist/src/glyph-region.js +36 -0
- package/dist/src/hyphen.d.ts +37 -0
- package/dist/src/hyphen.js +83 -0
- package/dist/src/index.d.ts +19 -0
- package/dist/src/index.js +17 -0
- package/dist/src/line-source.d.ts +46 -0
- package/dist/src/line-source.js +134 -0
- package/dist/src/outline-region.d.ts +30 -0
- package/dist/src/outline-region.js +255 -0
- package/dist/src/prefix-widths.d.ts +22 -0
- package/dist/src/prefix-widths.js +61 -0
- package/dist/src/pretext-source.d.ts +24 -0
- package/dist/src/pretext-source.js +66 -0
- package/dist/src/region.d.ts +62 -0
- package/dist/src/region.js +229 -0
- package/dist/src/renderer.d.ts +47 -0
- package/dist/src/renderer.js +37 -0
- package/dist/src/types.d.ts +85 -0
- package/dist/src/types.js +5 -0
- package/package.json +39 -0
package/package.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "textpour",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Pour text into arbitrary shapes — a render-agnostic text-geometry kernel on top of @chenglou/pretext (shape-flow + cursor<->point mapping, pluggable paint adapters).",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/src/index.js",
|
|
7
|
+
"types": "./dist/src/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/src/index.d.ts",
|
|
11
|
+
"import": "./dist/src/index.js"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
"files": ["dist/src"],
|
|
15
|
+
"sideEffects": false,
|
|
16
|
+
"engines": { "node": ">=18" },
|
|
17
|
+
"scripts": {
|
|
18
|
+
"build": "tsc",
|
|
19
|
+
"typecheck": "tsc --noEmit",
|
|
20
|
+
"test": "tsc && node --test dist/test/*.test.js",
|
|
21
|
+
"prepublishOnly": "npm run build"
|
|
22
|
+
},
|
|
23
|
+
"keywords": [
|
|
24
|
+
"text", "typography", "layout", "text-layout", "shape", "shape-flow",
|
|
25
|
+
"canvas", "pretext", "text-measurement", "line-breaking", "kerning"
|
|
26
|
+
],
|
|
27
|
+
"author": "beansint",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"repository": { "type": "git", "url": "git+https://github.com/beansint/textpour.git" },
|
|
30
|
+
"bugs": { "url": "https://github.com/beansint/textpour/issues" },
|
|
31
|
+
"homepage": "https://github.com/beansint/textpour#readme",
|
|
32
|
+
"devDependencies": {
|
|
33
|
+
"typescript": "^5.6.0",
|
|
34
|
+
"@types/node": "^22.0.0"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@chenglou/pretext": "^0.0.1"
|
|
38
|
+
}
|
|
39
|
+
}
|