pa_font 0.3.1 → 0.3.2
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 +0 -24
- package/dist/paFont.cjs +4 -34
- package/dist/paFont.cjs.map +1 -1
- package/dist/paFont.js +4 -34
- package/dist/paFont.js.map +1 -1
- package/paFont.d.ts +0 -4
- package/package.json +1 -1
package/paFont.d.ts
CHANGED
|
@@ -65,7 +65,6 @@ 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";
|
|
69
68
|
textOverflow?: "clip" | "ellipsis";
|
|
70
69
|
maxLines?: number;
|
|
71
70
|
ellipsis?: string | false;
|
|
@@ -131,8 +130,6 @@ export interface ParagraphMetrics {
|
|
|
131
130
|
y: number;
|
|
132
131
|
width: number;
|
|
133
132
|
height: number;
|
|
134
|
-
viewportHeight: number;
|
|
135
|
-
maxScrollTop: number;
|
|
136
133
|
lineCount: number;
|
|
137
134
|
bbox: Rect;
|
|
138
135
|
contentBox?: Rect;
|
|
@@ -154,7 +151,6 @@ export interface DrawTextOptions {
|
|
|
154
151
|
strokeStyle?: string | CanvasGradient | CanvasPattern;
|
|
155
152
|
fill?: boolean;
|
|
156
153
|
stroke?: boolean;
|
|
157
|
-
scrollTop?: number;
|
|
158
154
|
}
|
|
159
155
|
|
|
160
156
|
export class PAShape implements Iterable<Region> {
|