@paragraf/types 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 +4 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -27,7 +27,7 @@ interface Font {
27
27
 
28
28
  interface FontDescriptor {
29
29
  id: FontId;
30
- face: string; // PostScript or family name used by the font engine
30
+ family: string; // family name, e.g. 'Source Serif 4'
31
31
  filePath: string;
32
32
  }
33
33
 
@@ -103,6 +103,9 @@ interface ComposedLine {
103
103
  baseline: number;
104
104
  direction?: 'ltr' | 'rtl';
105
105
  xOffset?: number; // optical margin alignment shift
106
+ overfull?: boolean; // true when the line is wider than its measure (since v0.7)
107
+ overflow?: number; // how far an overfull line sticks out, in points
108
+ // ... further optional fields in the type definition
106
109
  }
107
110
 
108
111
  type ComposedParagraph = ComposedLine[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paragraf/types",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "Shared TypeScript interfaces and constants for the paragraf typography library",
5
5
  "license": "MIT",
6
6
  "repository": {