@paragraf/shaping-wasm 0.7.0 → 0.7.1

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.
Files changed (2) hide show
  1. package/README.md +3 -2
  2. package/package.json +3 -3
package/README.md CHANGED
@@ -44,9 +44,10 @@ import { serializeNodesToBinary, tracebackWasmBinary } from '@paragraf/shaping-w
44
44
  const [f64s, u8s] = serializeNodesToBinary(nodes);
45
45
 
46
46
  const result = tracebackWasmBinary(wasm, nodes, lineWidth, tolerance,
47
- emergencyStretch, looseness, consecutiveHyphenLimit, lineWidths, runtPenalty, singleLinePenalty);
47
+ emergencyStretch, looseness, consecutiveHyphenLimit, lineWidths, runtPenalty, singleLinePenalty,
48
+ adjDemerits, onInfeasible); // onInfeasible: 'overfull' (default) | 'throw'
48
49
  if ('error' in result) throw new Error(result.error);
49
- const { breaks, usedEmergency } = result.ok;
50
+ const { breaks, usedEmergency, usedFallback } = result.ok;
50
51
  ```
51
52
 
52
53
  ## WASM build
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paragraf/shaping-wasm",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Rust/WASM shaping engine for the paragraf typesetter.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -50,8 +50,8 @@
50
50
  "postpack": "node ../scripts/publishconfig-swap.mjs restore"
51
51
  },
52
52
  "dependencies": {
53
- "@paragraf/types": "^0.7.0",
54
- "@paragraf/font-engine": "^0.7.0"
53
+ "@paragraf/types": "^0.7.1",
54
+ "@paragraf/font-engine": "^0.7.1"
55
55
  },
56
56
  "devDependencies": {
57
57
  "@types/node": "^22.19.15",