pa_font 0.3.0 → 0.3.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/USAGE.md +24 -0
- package/dist/paFont.cjs +34 -4
- package/dist/paFont.cjs.map +1 -1
- package/dist/paFont.js +34 -4
- package/dist/paFont.js.map +1 -1
- package/paFont.d.ts +4 -0
- package/package.json +1 -1
package/paFont.d.ts
CHANGED
|
@@ -65,6 +65,7 @@ export interface ParagraphOptions extends TextOptions {
|
|
|
65
65
|
overflowWrap?: "normal" | "break-word" | "anywhere";
|
|
66
66
|
wordBreak?: "normal" | "break-all" | "keep-all";
|
|
67
67
|
overflow?: "visible" | "hidden";
|
|
68
|
+
overflowY?: "visible" | "hidden" | "scroll";
|
|
68
69
|
textOverflow?: "clip" | "ellipsis";
|
|
69
70
|
maxLines?: number;
|
|
70
71
|
ellipsis?: string | false;
|
|
@@ -130,6 +131,8 @@ export interface ParagraphMetrics {
|
|
|
130
131
|
y: number;
|
|
131
132
|
width: number;
|
|
132
133
|
height: number;
|
|
134
|
+
viewportHeight: number;
|
|
135
|
+
maxScrollTop: number;
|
|
133
136
|
lineCount: number;
|
|
134
137
|
bbox: Rect;
|
|
135
138
|
contentBox?: Rect;
|
|
@@ -151,6 +154,7 @@ export interface DrawTextOptions {
|
|
|
151
154
|
strokeStyle?: string | CanvasGradient | CanvasPattern;
|
|
152
155
|
fill?: boolean;
|
|
153
156
|
stroke?: boolean;
|
|
157
|
+
scrollTop?: number;
|
|
154
158
|
}
|
|
155
159
|
|
|
156
160
|
export class PAShape implements Iterable<Region> {
|