@types/opentype.js 1.3.4 → 1.3.5
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.
- opentype.js/README.md +1 -1
- opentype.js/index.d.ts +30 -28
- opentype.js/package.json +3 -3
opentype.js/README.md
CHANGED
|
@@ -8,7 +8,7 @@ This package contains type definitions for opentype.js (https://github.com/opent
|
|
|
8
8
|
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/opentype.js.
|
|
9
9
|
|
|
10
10
|
### Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Sun, 03 Sep 2023 22:33:58 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `opentype`
|
|
14
14
|
|
opentype.js/index.d.ts
CHANGED
|
@@ -83,8 +83,10 @@ export class Font {
|
|
|
83
83
|
validate(): void;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
export type FontConstructorOptions =
|
|
87
|
-
|
|
86
|
+
export type FontConstructorOptions =
|
|
87
|
+
& FontConstructorOptionsBase
|
|
88
|
+
& Partial<FontOptions>
|
|
89
|
+
& {
|
|
88
90
|
glyphs: Glyph[];
|
|
89
91
|
};
|
|
90
92
|
|
|
@@ -253,8 +255,8 @@ export interface RenderOptions {
|
|
|
253
255
|
tracking?: number | undefined;
|
|
254
256
|
features?:
|
|
255
257
|
| {
|
|
256
|
-
|
|
257
|
-
|
|
258
|
+
[key: string]: boolean;
|
|
259
|
+
}
|
|
258
260
|
| undefined;
|
|
259
261
|
}
|
|
260
262
|
|
|
@@ -302,34 +304,34 @@ export class Path {
|
|
|
302
304
|
|
|
303
305
|
export type PathCommand =
|
|
304
306
|
| {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
307
|
+
type: "M";
|
|
308
|
+
x: number;
|
|
309
|
+
y: number;
|
|
310
|
+
}
|
|
309
311
|
| {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
312
|
+
type: "L";
|
|
313
|
+
x: number;
|
|
314
|
+
y: number;
|
|
315
|
+
}
|
|
314
316
|
| {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
317
|
+
type: "C";
|
|
318
|
+
x1: number;
|
|
319
|
+
y1: number;
|
|
320
|
+
x2: number;
|
|
321
|
+
y2: number;
|
|
322
|
+
x: number;
|
|
323
|
+
y: number;
|
|
324
|
+
}
|
|
323
325
|
| {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
326
|
+
type: "Q";
|
|
327
|
+
x1: number;
|
|
328
|
+
y1: number;
|
|
329
|
+
x: number;
|
|
330
|
+
y: number;
|
|
331
|
+
}
|
|
330
332
|
| {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
+
type: "Z";
|
|
334
|
+
};
|
|
333
335
|
|
|
334
336
|
/******************************************
|
|
335
337
|
* UTIL CLASSES
|
opentype.js/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@types/opentype.js",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.5",
|
|
4
4
|
"description": "TypeScript definitions for opentype.js",
|
|
5
5
|
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/opentype.js",
|
|
6
6
|
"license": "MIT",
|
|
@@ -30,6 +30,6 @@
|
|
|
30
30
|
},
|
|
31
31
|
"scripts": {},
|
|
32
32
|
"dependencies": {},
|
|
33
|
-
"typesPublisherContentHash": "
|
|
34
|
-
"typeScriptVersion": "4.
|
|
33
|
+
"typesPublisherContentHash": "687758604d5e2e562476c7ada55fd9962f83c5b70bb08400a09db88be0929a5b",
|
|
34
|
+
"typeScriptVersion": "4.3"
|
|
35
35
|
}
|