@real-music-packages/web-core 0.44.0 → 0.44.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/dist/scene/index.d.ts +1 -1
- package/dist/scene/index.js +1 -3
- package/dist/scene/index.js.map +1 -1
- package/package.json +1 -1
package/dist/scene/index.d.ts
CHANGED
|
@@ -1785,7 +1785,7 @@ interface HandIndicatorProps {
|
|
|
1785
1785
|
/** How fast a hand fades from lit back to its resting outline after its
|
|
1786
1786
|
* last active note ends, ms. Default 200 (the "quickly" in ~150-250ms). */
|
|
1787
1787
|
fadeMs?: number;
|
|
1788
|
-
/** Icon size, px (roughly the glyph's bounding box). Default height*0.
|
|
1788
|
+
/** Icon size, px (roughly the glyph's bounding box). Default height*0.78. */
|
|
1789
1789
|
size?: number;
|
|
1790
1790
|
/** LH icon x, fraction of safeBox width from its left edge. Default 0.26
|
|
1791
1791
|
* (under the lower/bass register). */
|
package/dist/scene/index.js
CHANGED
|
@@ -4652,7 +4652,7 @@ function handIndicatorLayer() {
|
|
|
4652
4652
|
height = props.height ?? 60;
|
|
4653
4653
|
hands = props.handColors ?? { R: ctx.theme.accent, L: ctx.theme.gold };
|
|
4654
4654
|
fadeMs = props.fadeMs ?? 200;
|
|
4655
|
-
size = props.size ?? height * 0.
|
|
4655
|
+
size = props.size ?? height * 0.78;
|
|
4656
4656
|
leftXFrac = props.leftXFrac ?? 0.26;
|
|
4657
4657
|
rightXFrac = props.rightXFrac ?? 0.74;
|
|
4658
4658
|
restAlpha = props.restAlpha ?? 0.32;
|
|
@@ -4676,8 +4676,6 @@ function handIndicatorLayer() {
|
|
|
4676
4676
|
if (op > 0.01) {
|
|
4677
4677
|
c.save();
|
|
4678
4678
|
c.globalAlpha = op;
|
|
4679
|
-
c.shadowColor = color;
|
|
4680
|
-
c.shadowBlur = 16 * op;
|
|
4681
4679
|
c.fillStyle = color;
|
|
4682
4680
|
drawHandGlyph(c, cx, cy, size, mirror, "fill");
|
|
4683
4681
|
c.restore();
|