@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.
- package/README.md +4 -1
- 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
|
-
|
|
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[];
|