@blorkfield/overlay-core 0.5.7 → 0.5.9
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/dist/index.cjs +3 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/dist/vite-plugin.cjs +55 -1
- package/dist/vite-plugin.cjs.map +1 -1
- package/dist/vite-plugin.d.cts +2 -0
- package/dist/vite-plugin.d.ts +2 -0
- package/dist/vite-plugin.js +56 -2
- package/dist/vite-plugin.js.map +1 -1
- package/package.json +1 -2
package/dist/index.cjs
CHANGED
|
@@ -2499,6 +2499,7 @@ var OverlayScene = class {
|
|
|
2499
2499
|
const baseTags = config.tags ?? [];
|
|
2500
2500
|
const isStatic = !baseTags.includes("falling");
|
|
2501
2501
|
const fillColor = config.fillColor ?? "#ffffff";
|
|
2502
|
+
const fillColors = config.fillColors;
|
|
2502
2503
|
const lineHeight = config.lineHeight ?? fontSize * 1.2;
|
|
2503
2504
|
const letterIds = [];
|
|
2504
2505
|
const letterMap = /* @__PURE__ */ new Map();
|
|
@@ -2612,6 +2613,7 @@ var OverlayScene = class {
|
|
|
2612
2613
|
}
|
|
2613
2614
|
const shadow = config.shadow ? { opacity: config.shadow.opacity ?? 0.3 } : void 0;
|
|
2614
2615
|
const clicksRemaining = config.clickToFall?.clicks;
|
|
2616
|
+
const charFillColor = fillColors?.[globalCharIndex] ?? fillColor;
|
|
2615
2617
|
const entry = {
|
|
2616
2618
|
id,
|
|
2617
2619
|
body,
|
|
@@ -2622,7 +2624,7 @@ var OverlayScene = class {
|
|
|
2622
2624
|
char,
|
|
2623
2625
|
fontSize,
|
|
2624
2626
|
fontFamily,
|
|
2625
|
-
fillColor,
|
|
2627
|
+
fillColor: charFillColor,
|
|
2626
2628
|
offsetX,
|
|
2627
2629
|
offsetY
|
|
2628
2630
|
},
|