@principal-ai/logo-component 0.1.7 → 0.1.8
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.
|
@@ -475,8 +475,7 @@ const OpenTypeTextReveal = ({ text, fontUrl, fontSize = 72, width = 600, height
|
|
|
475
475
|
error)));
|
|
476
476
|
}
|
|
477
477
|
if (!font) {
|
|
478
|
-
return
|
|
479
|
-
react_1.default.createElement("text", { x: 10, y: 30, fill: color, fontSize: 14 }, "Loading font...")));
|
|
478
|
+
return null;
|
|
480
479
|
}
|
|
481
480
|
return (react_1.default.createElement("svg", { key: cycle, width: width, height: height, viewBox: `0 0 ${width} ${height}`, xmlns: "http://www.w3.org/2000/svg", style: { opacity } },
|
|
482
481
|
react_1.default.createElement("defs", null,
|
|
@@ -436,8 +436,7 @@ export const OpenTypeTextReveal = ({ text, fontUrl, fontSize = 72, width = 600,
|
|
|
436
436
|
error)));
|
|
437
437
|
}
|
|
438
438
|
if (!font) {
|
|
439
|
-
return
|
|
440
|
-
React.createElement("text", { x: 10, y: 30, fill: color, fontSize: 14 }, "Loading font...")));
|
|
439
|
+
return null;
|
|
441
440
|
}
|
|
442
441
|
return (React.createElement("svg", { key: cycle, width: width, height: height, viewBox: `0 0 ${width} ${height}`, xmlns: "http://www.w3.org/2000/svg", style: { opacity } },
|
|
443
442
|
React.createElement("defs", null,
|