@ot-builder/io-bin-name 1.1.0 → 1.3.0
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/CHANGELOG.json +277 -1
- package/CHANGELOG.md +70 -2
- package/lib/index.js +1 -1
- package/lib/stat/read.js +8 -8
- package/lib/stat/write.js +10 -10
- package/package.json +24 -14
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,283 @@
|
|
|
2
2
|
"name": "@ot-builder/io-bin-name",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Sat, 16 Oct 2021 01:17:27 GMT",
|
|
6
|
+
"tag": "@ot-builder/io-bin-name_v1.3.0",
|
|
7
|
+
"version": "1.3.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"minor": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@ot-builder/io-bin-name",
|
|
13
|
+
"comment": "Bump @ot-builder/bin-util to v1.3.0",
|
|
14
|
+
"commit": "1a40fcdec7a908d6498acd9a239f81236cd390c4"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@ot-builder/io-bin-name",
|
|
19
|
+
"comment": "Bump @ot-builder/common-impl to v1.3.0",
|
|
20
|
+
"commit": "1a40fcdec7a908d6498acd9a239f81236cd390c4"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"author": "beachball",
|
|
24
|
+
"package": "@ot-builder/io-bin-name",
|
|
25
|
+
"comment": "Bump @ot-builder/errors to v1.3.0",
|
|
26
|
+
"commit": "1a40fcdec7a908d6498acd9a239f81236cd390c4"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"author": "beachball",
|
|
30
|
+
"package": "@ot-builder/io-bin-name",
|
|
31
|
+
"comment": "Bump @ot-builder/ot-glyphs to v1.3.0",
|
|
32
|
+
"commit": "1a40fcdec7a908d6498acd9a239f81236cd390c4"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"author": "beachball",
|
|
36
|
+
"package": "@ot-builder/io-bin-name",
|
|
37
|
+
"comment": "Bump @ot-builder/ot-metadata to v1.3.0",
|
|
38
|
+
"commit": "1a40fcdec7a908d6498acd9a239f81236cd390c4"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"author": "beachball",
|
|
42
|
+
"package": "@ot-builder/io-bin-name",
|
|
43
|
+
"comment": "Bump @ot-builder/ot-name to v1.3.0",
|
|
44
|
+
"commit": "1a40fcdec7a908d6498acd9a239f81236cd390c4"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"author": "beachball",
|
|
48
|
+
"package": "@ot-builder/io-bin-name",
|
|
49
|
+
"comment": "Bump @ot-builder/prelude to v1.3.0",
|
|
50
|
+
"commit": "1a40fcdec7a908d6498acd9a239f81236cd390c4"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"author": "beachball",
|
|
54
|
+
"package": "@ot-builder/io-bin-name",
|
|
55
|
+
"comment": "Bump @ot-builder/primitive to v1.3.0",
|
|
56
|
+
"commit": "1a40fcdec7a908d6498acd9a239f81236cd390c4"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"author": "beachball",
|
|
60
|
+
"package": "@ot-builder/io-bin-name",
|
|
61
|
+
"comment": "Bump @ot-builder/ot-sfnt to v1.3.0",
|
|
62
|
+
"commit": "1a40fcdec7a908d6498acd9a239f81236cd390c4"
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"author": "beachball",
|
|
66
|
+
"package": "@ot-builder/io-bin-name",
|
|
67
|
+
"comment": "Bump @ot-builder/io-bin-sfnt to v1.3.0",
|
|
68
|
+
"commit": "1a40fcdec7a908d6498acd9a239f81236cd390c4"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"author": "beachball",
|
|
72
|
+
"package": "@ot-builder/io-bin-name",
|
|
73
|
+
"comment": "Bump @ot-builder/io-bin-glyph-store to v1.3.0",
|
|
74
|
+
"commit": "1a40fcdec7a908d6498acd9a239f81236cd390c4"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"author": "beachball",
|
|
78
|
+
"package": "@ot-builder/io-bin-name",
|
|
79
|
+
"comment": "Bump @ot-builder/io-bin-metadata to v1.3.0",
|
|
80
|
+
"commit": "1a40fcdec7a908d6498acd9a239f81236cd390c4"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"author": "beachball",
|
|
84
|
+
"package": "@ot-builder/io-bin-name",
|
|
85
|
+
"comment": "Bump @ot-builder/test-util to v1.3.0",
|
|
86
|
+
"commit": "1a40fcdec7a908d6498acd9a239f81236cd390c4"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"date": "Sat, 09 Oct 2021 01:06:40 GMT",
|
|
93
|
+
"tag": "@ot-builder/io-bin-name_v1.2.0",
|
|
94
|
+
"version": "1.2.0",
|
|
95
|
+
"comments": {
|
|
96
|
+
"minor": [
|
|
97
|
+
{
|
|
98
|
+
"author": "beachball",
|
|
99
|
+
"package": "@ot-builder/io-bin-name",
|
|
100
|
+
"comment": "Bump @ot-builder/bin-util to v1.2.0",
|
|
101
|
+
"commit": "cd0361ffd9d2fc5081804b14f9bfddc7fe296008"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"author": "beachball",
|
|
105
|
+
"package": "@ot-builder/io-bin-name",
|
|
106
|
+
"comment": "Bump @ot-builder/common-impl to v1.2.0",
|
|
107
|
+
"commit": "cd0361ffd9d2fc5081804b14f9bfddc7fe296008"
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"author": "beachball",
|
|
111
|
+
"package": "@ot-builder/io-bin-name",
|
|
112
|
+
"comment": "Bump @ot-builder/errors to v1.2.0",
|
|
113
|
+
"commit": "cd0361ffd9d2fc5081804b14f9bfddc7fe296008"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
"author": "beachball",
|
|
117
|
+
"package": "@ot-builder/io-bin-name",
|
|
118
|
+
"comment": "Bump @ot-builder/ot-glyphs to v1.2.0",
|
|
119
|
+
"commit": "cd0361ffd9d2fc5081804b14f9bfddc7fe296008"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
"author": "beachball",
|
|
123
|
+
"package": "@ot-builder/io-bin-name",
|
|
124
|
+
"comment": "Bump @ot-builder/ot-metadata to v1.2.0",
|
|
125
|
+
"commit": "cd0361ffd9d2fc5081804b14f9bfddc7fe296008"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"author": "beachball",
|
|
129
|
+
"package": "@ot-builder/io-bin-name",
|
|
130
|
+
"comment": "Bump @ot-builder/ot-name to v1.2.0",
|
|
131
|
+
"commit": "cd0361ffd9d2fc5081804b14f9bfddc7fe296008"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"author": "beachball",
|
|
135
|
+
"package": "@ot-builder/io-bin-name",
|
|
136
|
+
"comment": "Bump @ot-builder/prelude to v1.2.0",
|
|
137
|
+
"commit": "cd0361ffd9d2fc5081804b14f9bfddc7fe296008"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"author": "beachball",
|
|
141
|
+
"package": "@ot-builder/io-bin-name",
|
|
142
|
+
"comment": "Bump @ot-builder/primitive to v1.2.0",
|
|
143
|
+
"commit": "cd0361ffd9d2fc5081804b14f9bfddc7fe296008"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"author": "beachball",
|
|
147
|
+
"package": "@ot-builder/io-bin-name",
|
|
148
|
+
"comment": "Bump @ot-builder/ot-sfnt to v1.2.0",
|
|
149
|
+
"commit": "cd0361ffd9d2fc5081804b14f9bfddc7fe296008"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"author": "beachball",
|
|
153
|
+
"package": "@ot-builder/io-bin-name",
|
|
154
|
+
"comment": "Bump @ot-builder/io-bin-sfnt to v1.2.0",
|
|
155
|
+
"commit": "cd0361ffd9d2fc5081804b14f9bfddc7fe296008"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
"author": "beachball",
|
|
159
|
+
"package": "@ot-builder/io-bin-name",
|
|
160
|
+
"comment": "Bump @ot-builder/io-bin-glyph-store to v1.2.0",
|
|
161
|
+
"commit": "cd0361ffd9d2fc5081804b14f9bfddc7fe296008"
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
"author": "beachball",
|
|
165
|
+
"package": "@ot-builder/io-bin-name",
|
|
166
|
+
"comment": "Bump @ot-builder/io-bin-metadata to v1.2.0",
|
|
167
|
+
"commit": "cd0361ffd9d2fc5081804b14f9bfddc7fe296008"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
"author": "beachball",
|
|
171
|
+
"package": "@ot-builder/io-bin-name",
|
|
172
|
+
"comment": "Bump @ot-builder/test-util to v1.2.0",
|
|
173
|
+
"commit": "cd0361ffd9d2fc5081804b14f9bfddc7fe296008"
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"date": "Sat, 25 Sep 2021 01:08:03 GMT",
|
|
180
|
+
"tag": "@ot-builder/io-bin-name_v1.1.2",
|
|
181
|
+
"version": "1.1.2",
|
|
182
|
+
"comments": {
|
|
183
|
+
"patch": [
|
|
184
|
+
{
|
|
185
|
+
"author": "beachball",
|
|
186
|
+
"package": "@ot-builder/io-bin-name",
|
|
187
|
+
"comment": "Bump @ot-builder/bin-util to v1.1.2",
|
|
188
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"author": "beachball",
|
|
192
|
+
"package": "@ot-builder/io-bin-name",
|
|
193
|
+
"comment": "Bump @ot-builder/common-impl to v1.1.2",
|
|
194
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"author": "beachball",
|
|
198
|
+
"package": "@ot-builder/io-bin-name",
|
|
199
|
+
"comment": "Bump @ot-builder/errors to v1.1.2",
|
|
200
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
"author": "beachball",
|
|
204
|
+
"package": "@ot-builder/io-bin-name",
|
|
205
|
+
"comment": "Bump @ot-builder/ot-glyphs to v1.1.2",
|
|
206
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"author": "beachball",
|
|
210
|
+
"package": "@ot-builder/io-bin-name",
|
|
211
|
+
"comment": "Bump @ot-builder/ot-metadata to v1.1.2",
|
|
212
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"author": "beachball",
|
|
216
|
+
"package": "@ot-builder/io-bin-name",
|
|
217
|
+
"comment": "Bump @ot-builder/ot-name to v1.1.2",
|
|
218
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"author": "beachball",
|
|
222
|
+
"package": "@ot-builder/io-bin-name",
|
|
223
|
+
"comment": "Bump @ot-builder/prelude to v1.1.2",
|
|
224
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"author": "beachball",
|
|
228
|
+
"package": "@ot-builder/io-bin-name",
|
|
229
|
+
"comment": "Bump @ot-builder/primitive to v1.1.2",
|
|
230
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"author": "beachball",
|
|
234
|
+
"package": "@ot-builder/io-bin-name",
|
|
235
|
+
"comment": "Bump @ot-builder/ot-sfnt to v1.1.2",
|
|
236
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
"author": "beachball",
|
|
240
|
+
"package": "@ot-builder/io-bin-name",
|
|
241
|
+
"comment": "Bump @ot-builder/io-bin-sfnt to v1.1.2",
|
|
242
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
"author": "beachball",
|
|
246
|
+
"package": "@ot-builder/io-bin-name",
|
|
247
|
+
"comment": "Bump @ot-builder/io-bin-glyph-store to v1.1.2",
|
|
248
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
249
|
+
},
|
|
250
|
+
{
|
|
251
|
+
"author": "beachball",
|
|
252
|
+
"package": "@ot-builder/io-bin-name",
|
|
253
|
+
"comment": "Bump @ot-builder/io-bin-metadata to v1.1.2",
|
|
254
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
"author": "beachball",
|
|
258
|
+
"package": "@ot-builder/io-bin-name",
|
|
259
|
+
"comment": "Bump @ot-builder/test-util to v1.1.2",
|
|
260
|
+
"commit": "ef0cdbe0d09a64a7f2ed4f86c9158fa9d8fe699f"
|
|
261
|
+
}
|
|
262
|
+
]
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"date": "Sat, 11 Sep 2021 01:09:21 GMT",
|
|
267
|
+
"tag": "@ot-builder/io-bin-name_v1.1.1",
|
|
268
|
+
"version": "1.1.1",
|
|
269
|
+
"comments": {
|
|
270
|
+
"patch": [
|
|
271
|
+
{
|
|
272
|
+
"author": "otbbuilder-dev@users.noreply.github.com",
|
|
273
|
+
"package": "@ot-builder/io-bin-name",
|
|
274
|
+
"commit": "28bc4c48910f10dcabb090ab68e610ce499caa95",
|
|
275
|
+
"comment": "Bump @ot-builder/io-bin-name to v1.1.1"
|
|
276
|
+
}
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
"date": "Sun, 18 Jul 2021 02:14:19 GMT",
|
|
6
282
|
"tag": "@ot-builder/io-bin-name_v1.1.0",
|
|
7
283
|
"version": "1.1.0",
|
|
8
284
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,80 @@
|
|
|
1
1
|
# Change Log - @ot-builder/io-bin-name
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Sat, 16 Oct 2021 01:17:27 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 1.3.0
|
|
8
|
+
|
|
9
|
+
Sat, 16 Oct 2021 01:17:27 GMT
|
|
10
|
+
|
|
11
|
+
### Minor changes
|
|
12
|
+
|
|
13
|
+
- Bump @ot-builder/bin-util to v1.3.0
|
|
14
|
+
- Bump @ot-builder/common-impl to v1.3.0
|
|
15
|
+
- Bump @ot-builder/errors to v1.3.0
|
|
16
|
+
- Bump @ot-builder/ot-glyphs to v1.3.0
|
|
17
|
+
- Bump @ot-builder/ot-metadata to v1.3.0
|
|
18
|
+
- Bump @ot-builder/ot-name to v1.3.0
|
|
19
|
+
- Bump @ot-builder/prelude to v1.3.0
|
|
20
|
+
- Bump @ot-builder/primitive to v1.3.0
|
|
21
|
+
- Bump @ot-builder/ot-sfnt to v1.3.0
|
|
22
|
+
- Bump @ot-builder/io-bin-sfnt to v1.3.0
|
|
23
|
+
- Bump @ot-builder/io-bin-glyph-store to v1.3.0
|
|
24
|
+
- Bump @ot-builder/io-bin-metadata to v1.3.0
|
|
25
|
+
- Bump @ot-builder/test-util to v1.3.0
|
|
26
|
+
|
|
27
|
+
## 1.2.0
|
|
28
|
+
|
|
29
|
+
Sat, 09 Oct 2021 01:06:40 GMT
|
|
30
|
+
|
|
31
|
+
### Minor changes
|
|
32
|
+
|
|
33
|
+
- Bump @ot-builder/bin-util to v1.2.0
|
|
34
|
+
- Bump @ot-builder/common-impl to v1.2.0
|
|
35
|
+
- Bump @ot-builder/errors to v1.2.0
|
|
36
|
+
- Bump @ot-builder/ot-glyphs to v1.2.0
|
|
37
|
+
- Bump @ot-builder/ot-metadata to v1.2.0
|
|
38
|
+
- Bump @ot-builder/ot-name to v1.2.0
|
|
39
|
+
- Bump @ot-builder/prelude to v1.2.0
|
|
40
|
+
- Bump @ot-builder/primitive to v1.2.0
|
|
41
|
+
- Bump @ot-builder/ot-sfnt to v1.2.0
|
|
42
|
+
- Bump @ot-builder/io-bin-sfnt to v1.2.0
|
|
43
|
+
- Bump @ot-builder/io-bin-glyph-store to v1.2.0
|
|
44
|
+
- Bump @ot-builder/io-bin-metadata to v1.2.0
|
|
45
|
+
- Bump @ot-builder/test-util to v1.2.0
|
|
46
|
+
|
|
47
|
+
## 1.1.2
|
|
48
|
+
|
|
49
|
+
Sat, 25 Sep 2021 01:08:03 GMT
|
|
50
|
+
|
|
51
|
+
### Patches
|
|
52
|
+
|
|
53
|
+
- Bump @ot-builder/bin-util to v1.1.2
|
|
54
|
+
- Bump @ot-builder/common-impl to v1.1.2
|
|
55
|
+
- Bump @ot-builder/errors to v1.1.2
|
|
56
|
+
- Bump @ot-builder/ot-glyphs to v1.1.2
|
|
57
|
+
- Bump @ot-builder/ot-metadata to v1.1.2
|
|
58
|
+
- Bump @ot-builder/ot-name to v1.1.2
|
|
59
|
+
- Bump @ot-builder/prelude to v1.1.2
|
|
60
|
+
- Bump @ot-builder/primitive to v1.1.2
|
|
61
|
+
- Bump @ot-builder/ot-sfnt to v1.1.2
|
|
62
|
+
- Bump @ot-builder/io-bin-sfnt to v1.1.2
|
|
63
|
+
- Bump @ot-builder/io-bin-glyph-store to v1.1.2
|
|
64
|
+
- Bump @ot-builder/io-bin-metadata to v1.1.2
|
|
65
|
+
- Bump @ot-builder/test-util to v1.1.2
|
|
66
|
+
|
|
67
|
+
## 1.1.1
|
|
68
|
+
|
|
69
|
+
Sat, 11 Sep 2021 01:09:21 GMT
|
|
70
|
+
|
|
71
|
+
### Patches
|
|
72
|
+
|
|
73
|
+
- Bump @ot-builder/io-bin-name to v1.1.1 (otbbuilder-dev@users.noreply.github.com)
|
|
74
|
+
|
|
7
75
|
## 1.1.0
|
|
8
76
|
|
|
9
|
-
Sun, 18 Jul 2021 02:
|
|
77
|
+
Sun, 18 Jul 2021 02:14:19 GMT
|
|
10
78
|
|
|
11
79
|
### Minor changes
|
|
12
80
|
|
package/lib/index.js
CHANGED
package/lib/stat/read.js
CHANGED
|
@@ -6,7 +6,7 @@ const ImpLib = require("@ot-builder/common-impl");
|
|
|
6
6
|
const errors_1 = require("@ot-builder/errors");
|
|
7
7
|
const ot_name_1 = require("@ot-builder/ot-name");
|
|
8
8
|
const primitive_1 = require("@ot-builder/primitive");
|
|
9
|
-
exports.StatRead = bin_util_1.Read(view => {
|
|
9
|
+
exports.StatRead = (0, bin_util_1.Read)(view => {
|
|
10
10
|
const majorVersion = view.uint16();
|
|
11
11
|
const minorVersion = view.uint16();
|
|
12
12
|
errors_1.Assert.SubVersionSupported("STATTable", majorVersion, minorVersion, [1, 1], [1, 2]);
|
|
@@ -24,7 +24,7 @@ exports.StatRead = bin_util_1.Read(view => {
|
|
|
24
24
|
const table = new ot_name_1.Stat.Table(axes, values, elidedFallbackNameID);
|
|
25
25
|
return table;
|
|
26
26
|
});
|
|
27
|
-
const DesignAxisArray = bin_util_1.Read((view, count) => {
|
|
27
|
+
const DesignAxisArray = (0, bin_util_1.Read)((view, count) => {
|
|
28
28
|
const arr = [];
|
|
29
29
|
for (let aid = 0; aid < count; aid++) {
|
|
30
30
|
const tag = view.next(primitive_1.Tag);
|
|
@@ -34,14 +34,14 @@ const DesignAxisArray = bin_util_1.Read((view, count) => {
|
|
|
34
34
|
}
|
|
35
35
|
return arr;
|
|
36
36
|
});
|
|
37
|
-
const AxisValueArray = bin_util_1.Read((view, count, axes) => {
|
|
37
|
+
const AxisValueArray = (0, bin_util_1.Read)((view, count, axes) => {
|
|
38
38
|
const arr = [];
|
|
39
39
|
for (let aid = 0; aid < count; aid++) {
|
|
40
40
|
arr.push(view.ptr16().next(AxisValue, axes));
|
|
41
41
|
}
|
|
42
42
|
return arr;
|
|
43
43
|
});
|
|
44
|
-
const AxisValue = bin_util_1.Read((view, axes) => {
|
|
44
|
+
const AxisValue = (0, bin_util_1.Read)((view, axes) => {
|
|
45
45
|
const format = view.lift(0).uint16();
|
|
46
46
|
switch (format) {
|
|
47
47
|
case 1:
|
|
@@ -56,7 +56,7 @@ const AxisValue = bin_util_1.Read((view, axes) => {
|
|
|
56
56
|
throw errors_1.Errors.FormatNotSupported(`STATTable::AxisValue`, format);
|
|
57
57
|
}
|
|
58
58
|
});
|
|
59
|
-
const AxisValueFormat1 = bin_util_1.Read((view, axes) => {
|
|
59
|
+
const AxisValueFormat1 = (0, bin_util_1.Read)((view, axes) => {
|
|
60
60
|
const format = view.uint16();
|
|
61
61
|
errors_1.Assert.FormatSupported(`STATTable::AxisValueFormat1`, format, 1);
|
|
62
62
|
const axisIndex = view.uint16();
|
|
@@ -66,7 +66,7 @@ const AxisValueFormat1 = bin_util_1.Read((view, axes) => {
|
|
|
66
66
|
const value = view.next(primitive_1.F16D16);
|
|
67
67
|
return ImpLib.Tuple.Tie(new ot_name_1.Stat.AxisValue.Static(axis, value), new ot_name_1.Stat.NameAssignment(flags, valueNameID));
|
|
68
68
|
});
|
|
69
|
-
const AxisValueFormat2 = bin_util_1.Read((view, axes) => {
|
|
69
|
+
const AxisValueFormat2 = (0, bin_util_1.Read)((view, axes) => {
|
|
70
70
|
const format = view.uint16();
|
|
71
71
|
errors_1.Assert.FormatSupported(`STATTable::AxisValueFormat2`, format, 2);
|
|
72
72
|
const axisIndex = view.uint16();
|
|
@@ -78,7 +78,7 @@ const AxisValueFormat2 = bin_util_1.Read((view, axes) => {
|
|
|
78
78
|
const rangeMaxValue = view.next(primitive_1.F16D16);
|
|
79
79
|
return ImpLib.Tuple.Tie(new ot_name_1.Stat.AxisValue.Variable(axis, rangeMinValue, nominalValue, rangeMaxValue), new ot_name_1.Stat.NameAssignment(flags, valueNameID));
|
|
80
80
|
});
|
|
81
|
-
const AxisValueFormat3 = bin_util_1.Read((view, axes) => {
|
|
81
|
+
const AxisValueFormat3 = (0, bin_util_1.Read)((view, axes) => {
|
|
82
82
|
const format = view.uint16();
|
|
83
83
|
errors_1.Assert.FormatSupported(`STATTable::AxisValueFormat3`, format, 3);
|
|
84
84
|
const axisIndex = view.uint16();
|
|
@@ -89,7 +89,7 @@ const AxisValueFormat3 = bin_util_1.Read((view, axes) => {
|
|
|
89
89
|
const linkedValue = view.next(primitive_1.F16D16);
|
|
90
90
|
return ImpLib.Tuple.Tie(new ot_name_1.Stat.AxisValue.Linked(axis, value, linkedValue), new ot_name_1.Stat.NameAssignment(flags, valueNameID));
|
|
91
91
|
});
|
|
92
|
-
const AxisValueFormat4 = bin_util_1.Read((view, axes) => {
|
|
92
|
+
const AxisValueFormat4 = (0, bin_util_1.Read)((view, axes) => {
|
|
93
93
|
const format = view.uint16();
|
|
94
94
|
errors_1.Assert.FormatSupported(`STATTable::AxisValueFormat4`, format, 4);
|
|
95
95
|
const axisCount = view.uint16();
|
package/lib/stat/write.js
CHANGED
|
@@ -6,7 +6,7 @@ const ImpLib = require("@ot-builder/common-impl");
|
|
|
6
6
|
const errors_1 = require("@ot-builder/errors");
|
|
7
7
|
const ot_name_1 = require("@ot-builder/ot-name");
|
|
8
8
|
const primitive_1 = require("@ot-builder/primitive");
|
|
9
|
-
exports.StatWrite = bin_util_1.Write((frag, stat) => {
|
|
9
|
+
exports.StatWrite = (0, bin_util_1.Write)((frag, stat) => {
|
|
10
10
|
const stValueRecordOffset = new ImpLib.State(0);
|
|
11
11
|
const stNeedFormat12 = new ImpLib.State(false);
|
|
12
12
|
const body = bin_util_1.Frag.from(StatTableBody, stat, stValueRecordOffset, stNeedFormat12);
|
|
@@ -19,25 +19,25 @@ exports.StatWrite = bin_util_1.Write((frag, stat) => {
|
|
|
19
19
|
.ptr32(body, bin_util_1.FragPointerEmbedding.Relative, stValueRecordOffset.get())
|
|
20
20
|
.uint16(stat.elidedFallbackNameID);
|
|
21
21
|
});
|
|
22
|
-
const StatTableBody = bin_util_1.Write((frag, stat, acValueRecordOffset, acNeedFormat12) => {
|
|
22
|
+
const StatTableBody = (0, bin_util_1.Write)((frag, stat, acValueRecordOffset, acNeedFormat12) => {
|
|
23
23
|
const start = frag.size;
|
|
24
24
|
frag.push(DesignAxisArray, stat.designAxes);
|
|
25
25
|
acValueRecordOffset.set(frag.size - start);
|
|
26
26
|
frag.embed(bin_util_1.Frag.from(AxisValueArray, stat.assignments, ImpLib.Order.fromList(`DesignAxes`, stat.designAxes), acNeedFormat12));
|
|
27
27
|
});
|
|
28
|
-
const DesignAxisArray = bin_util_1.Write((frag, axes) => {
|
|
28
|
+
const DesignAxisArray = (0, bin_util_1.Write)((frag, axes) => {
|
|
29
29
|
for (const axis of axes)
|
|
30
30
|
frag.push(DesignAxisRecord, axis);
|
|
31
31
|
});
|
|
32
|
-
const DesignAxisRecord = bin_util_1.Write((frag, axis) => {
|
|
32
|
+
const DesignAxisRecord = (0, bin_util_1.Write)((frag, axis) => {
|
|
33
33
|
frag.push(primitive_1.Tag, axis.tag).uint16(axis.axisNameID).uint16(axis.axisOrdering);
|
|
34
34
|
});
|
|
35
|
-
const AxisValueArray = bin_util_1.Write((frag, ava, axes, acNeedFormat12) => {
|
|
35
|
+
const AxisValueArray = (0, bin_util_1.Write)((frag, ava, axes, acNeedFormat12) => {
|
|
36
36
|
for (const item of ava) {
|
|
37
37
|
frag.ptr16New(bin_util_1.FragPointerEmbedding.EmbedRelative).push(AxisValue, item, axes, acNeedFormat12);
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
const AxisValue = bin_util_1.Write((frag, [av, asg], axes, acNeedFormat12) => {
|
|
40
|
+
const AxisValue = (0, bin_util_1.Write)((frag, [av, asg], axes, acNeedFormat12) => {
|
|
41
41
|
if (av instanceof ot_name_1.Stat.AxisValue.Static) {
|
|
42
42
|
frag.push(AxisValueFormat1, [av, asg], axes);
|
|
43
43
|
}
|
|
@@ -55,14 +55,14 @@ const AxisValue = bin_util_1.Write((frag, [av, asg], axes, acNeedFormat12) => {
|
|
|
55
55
|
throw errors_1.Errors.STAT.UnknownAxisValueFormat();
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
|
-
const AxisValueFormat1 = bin_util_1.Write((frag, [av, asg], axes) => {
|
|
58
|
+
const AxisValueFormat1 = (0, bin_util_1.Write)((frag, [av, asg], axes) => {
|
|
59
59
|
frag.uint16(1)
|
|
60
60
|
.uint16(axes.reverse(av.axis))
|
|
61
61
|
.uint16(asg.flags)
|
|
62
62
|
.uint16(asg.valueNameID)
|
|
63
63
|
.push(primitive_1.F16D16, av.value);
|
|
64
64
|
});
|
|
65
|
-
const AxisValueFormat2 = bin_util_1.Write((frag, [av, asg], axes) => {
|
|
65
|
+
const AxisValueFormat2 = (0, bin_util_1.Write)((frag, [av, asg], axes) => {
|
|
66
66
|
frag.uint16(2)
|
|
67
67
|
.uint16(axes.reverse(av.axis))
|
|
68
68
|
.uint16(asg.flags)
|
|
@@ -71,7 +71,7 @@ const AxisValueFormat2 = bin_util_1.Write((frag, [av, asg], axes) => {
|
|
|
71
71
|
.push(primitive_1.F16D16, av.min)
|
|
72
72
|
.push(primitive_1.F16D16, av.max);
|
|
73
73
|
});
|
|
74
|
-
const AxisValueFormat3 = bin_util_1.Write((frag, [av, asg], axes) => {
|
|
74
|
+
const AxisValueFormat3 = (0, bin_util_1.Write)((frag, [av, asg], axes) => {
|
|
75
75
|
frag.uint16(3)
|
|
76
76
|
.uint16(axes.reverse(av.axis))
|
|
77
77
|
.uint16(asg.flags)
|
|
@@ -79,7 +79,7 @@ const AxisValueFormat3 = bin_util_1.Write((frag, [av, asg], axes) => {
|
|
|
79
79
|
.push(primitive_1.F16D16, av.value)
|
|
80
80
|
.push(primitive_1.F16D16, av.linkedValue);
|
|
81
81
|
});
|
|
82
|
-
const AxisValueFormat4 = bin_util_1.Write((frag, [av, asg], axes) => {
|
|
82
|
+
const AxisValueFormat4 = (0, bin_util_1.Write)((frag, [av, asg], axes) => {
|
|
83
83
|
frag.uint16(4).uint16(av.assignments.length).uint16(asg.flags).uint16(asg.valueNameID);
|
|
84
84
|
for (const [axis, value] of av.assignments) {
|
|
85
85
|
frag.uint16(axes.reverse(axis)).push(primitive_1.F16D16, value);
|
package/package.json
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ot-builder/io-bin-name",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"license": "MIT",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/ot-builder/monorepo.git",
|
|
8
|
+
"directory": "packages/io-bin-name"
|
|
9
|
+
},
|
|
5
10
|
"main": "./lib/index.js",
|
|
6
11
|
"types": "./lib/index.d.ts",
|
|
12
|
+
"files": [
|
|
13
|
+
"lib/**/*.js",
|
|
14
|
+
"lib/**/*.json",
|
|
15
|
+
"lib/**/*.d.ts"
|
|
16
|
+
],
|
|
7
17
|
"scripts": {
|
|
8
18
|
"build": "tsc -b ./tsconfig.package.json",
|
|
9
19
|
"clean": "rimraf lib .cache",
|
|
@@ -13,23 +23,23 @@
|
|
|
13
23
|
"access": "public"
|
|
14
24
|
},
|
|
15
25
|
"dependencies": {
|
|
16
|
-
"@ot-builder/bin-util": "1.
|
|
17
|
-
"@ot-builder/common-impl": "1.
|
|
18
|
-
"@ot-builder/errors": "1.
|
|
19
|
-
"@ot-builder/ot-glyphs": "1.
|
|
20
|
-
"@ot-builder/ot-metadata": "1.
|
|
21
|
-
"@ot-builder/ot-name": "1.
|
|
22
|
-
"@ot-builder/prelude": "1.
|
|
23
|
-
"@ot-builder/primitive": "1.
|
|
24
|
-
"@ot-builder/ot-sfnt": "1.
|
|
25
|
-
"@ot-builder/io-bin-sfnt": "1.
|
|
26
|
+
"@ot-builder/bin-util": "1.3.0",
|
|
27
|
+
"@ot-builder/common-impl": "1.3.0",
|
|
28
|
+
"@ot-builder/errors": "1.3.0",
|
|
29
|
+
"@ot-builder/ot-glyphs": "1.3.0",
|
|
30
|
+
"@ot-builder/ot-metadata": "1.3.0",
|
|
31
|
+
"@ot-builder/ot-name": "1.3.0",
|
|
32
|
+
"@ot-builder/prelude": "1.3.0",
|
|
33
|
+
"@ot-builder/primitive": "1.3.0",
|
|
34
|
+
"@ot-builder/ot-sfnt": "1.3.0",
|
|
35
|
+
"@ot-builder/io-bin-sfnt": "1.3.0",
|
|
26
36
|
"iconv-lite": "^0.6.3",
|
|
27
37
|
"tslib": "^2.0.0"
|
|
28
38
|
},
|
|
29
39
|
"devDependencies": {
|
|
30
|
-
"@ot-builder/io-bin-glyph-store": "1.
|
|
31
|
-
"@ot-builder/io-bin-metadata": "1.
|
|
32
|
-
"@ot-builder/test-util": "1.
|
|
40
|
+
"@ot-builder/io-bin-glyph-store": "1.3.0",
|
|
41
|
+
"@ot-builder/io-bin-metadata": "1.3.0",
|
|
42
|
+
"@ot-builder/test-util": "1.3.0",
|
|
33
43
|
"@types/jest": "^26.0.23",
|
|
34
44
|
"jest": "^27.0.6"
|
|
35
45
|
}
|