route-graphics 1.29.0 → 1.30.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/README.md +4 -1
- package/dist/RouteGraphics.js +120 -120
- package/package.json +1 -1
- package/src/cli/renderConfig.js +15 -9
package/package.json
CHANGED
package/src/cli/renderConfig.js
CHANGED
|
@@ -273,15 +273,21 @@ const collectAssetReferences = ({ states, assetAliases }) => {
|
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
|
|
276
|
-
if (
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
276
|
+
if (FONT_ASSET_KEYS.has(key)) {
|
|
277
|
+
const fontFamilies = Array.isArray(value) ? value : [value];
|
|
278
|
+
|
|
279
|
+
fontFamilies.forEach((fontFamily, index) => {
|
|
280
|
+
if (typeof fontFamily !== "string" || !assetAliases.has(fontFamily)) {
|
|
281
|
+
return;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
registerReference({
|
|
285
|
+
alias: fontFamily,
|
|
286
|
+
fallbackType: "font/ttf",
|
|
287
|
+
nodePath: Array.isArray(value)
|
|
288
|
+
? getNextNodePath(nextPath, index)
|
|
289
|
+
: nextPath,
|
|
290
|
+
});
|
|
285
291
|
});
|
|
286
292
|
}
|
|
287
293
|
|