@types/opentype.js 1.3.4 → 1.3.6
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/LICENSE +0 -0
- opentype.js/README.md +2 -2
- opentype.js/index.d.ts +33 -28
- opentype.js/package.json +8 -3
opentype.js/LICENSE
CHANGED
|
File without changes
|
opentype.js/README.md
CHANGED
|
@@ -8,9 +8,9 @@ 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: Mon, 18 Sep 2023 15:35:11 GMT
|
|
12
12
|
* Dependencies: none
|
|
13
13
|
* Global values: `opentype`
|
|
14
14
|
|
|
15
15
|
# Credits
|
|
16
|
-
These definitions were written by [Dan Marshall](https://github.com/danmarshall), [Edgar Simson](https://github.com/edzis),
|
|
16
|
+
These definitions were written by [Dan Marshall](https://github.com/danmarshall), [Edgar Simson](https://github.com/edzis), [Piotr Błażejewicz](https://github.com/peterblazejewicz), and [Alec Mev](https://github.com/alecmev).
|
opentype.js/index.d.ts
CHANGED
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
// Definitions by: Dan Marshall <https://github.com/danmarshall>
|
|
4
4
|
// Edgar Simson <https://github.com/edzis>
|
|
5
5
|
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
|
|
6
|
+
// Alec Mev <https://github.com/alecmev>
|
|
6
7
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
7
8
|
|
|
9
|
+
/// <reference lib="dom" />
|
|
10
|
+
|
|
8
11
|
export as namespace opentype;
|
|
9
12
|
|
|
10
13
|
/******************************************
|
|
@@ -83,8 +86,10 @@ export class Font {
|
|
|
83
86
|
validate(): void;
|
|
84
87
|
}
|
|
85
88
|
|
|
86
|
-
export type FontConstructorOptions =
|
|
87
|
-
|
|
89
|
+
export type FontConstructorOptions =
|
|
90
|
+
& FontConstructorOptionsBase
|
|
91
|
+
& Partial<FontOptions>
|
|
92
|
+
& {
|
|
88
93
|
glyphs: Glyph[];
|
|
89
94
|
};
|
|
90
95
|
|
|
@@ -253,8 +258,8 @@ export interface RenderOptions {
|
|
|
253
258
|
tracking?: number | undefined;
|
|
254
259
|
features?:
|
|
255
260
|
| {
|
|
256
|
-
|
|
257
|
-
|
|
261
|
+
[key: string]: boolean;
|
|
262
|
+
}
|
|
258
263
|
| undefined;
|
|
259
264
|
}
|
|
260
265
|
|
|
@@ -302,34 +307,34 @@ export class Path {
|
|
|
302
307
|
|
|
303
308
|
export type PathCommand =
|
|
304
309
|
| {
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
310
|
+
type: "M";
|
|
311
|
+
x: number;
|
|
312
|
+
y: number;
|
|
313
|
+
}
|
|
309
314
|
| {
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
315
|
+
type: "L";
|
|
316
|
+
x: number;
|
|
317
|
+
y: number;
|
|
318
|
+
}
|
|
314
319
|
| {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
320
|
+
type: "C";
|
|
321
|
+
x1: number;
|
|
322
|
+
y1: number;
|
|
323
|
+
x2: number;
|
|
324
|
+
y2: number;
|
|
325
|
+
x: number;
|
|
326
|
+
y: number;
|
|
327
|
+
}
|
|
323
328
|
| {
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
329
|
+
type: "Q";
|
|
330
|
+
x1: number;
|
|
331
|
+
y1: number;
|
|
332
|
+
x: number;
|
|
333
|
+
y: number;
|
|
334
|
+
}
|
|
330
335
|
| {
|
|
331
|
-
|
|
332
|
-
|
|
336
|
+
type: "Z";
|
|
337
|
+
};
|
|
333
338
|
|
|
334
339
|
/******************************************
|
|
335
340
|
* 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.6",
|
|
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",
|
|
@@ -19,6 +19,11 @@
|
|
|
19
19
|
"name": "Piotr Błażejewicz",
|
|
20
20
|
"url": "https://github.com/peterblazejewicz",
|
|
21
21
|
"githubUsername": "peterblazejewicz"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "Alec Mev",
|
|
25
|
+
"url": "https://github.com/alecmev",
|
|
26
|
+
"githubUsername": "alecmev"
|
|
22
27
|
}
|
|
23
28
|
],
|
|
24
29
|
"main": "",
|
|
@@ -30,6 +35,6 @@
|
|
|
30
35
|
},
|
|
31
36
|
"scripts": {},
|
|
32
37
|
"dependencies": {},
|
|
33
|
-
"typesPublisherContentHash": "
|
|
34
|
-
"typeScriptVersion": "4.
|
|
38
|
+
"typesPublisherContentHash": "1bb9f37316c7059ae82f96342286905339d50cea331f10619227620163756fc1",
|
|
39
|
+
"typeScriptVersion": "4.5"
|
|
35
40
|
}
|