The facing mark becomes a ribbon on the token's brow
Per the table's taste: not a needle but a short wide golden triangle hugging the token's leading edge — base as wide as the token itself, rising a fifth of that width outward, turning with the pane's quarter-turns. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_015RCWSTnb1KYTPyL4GmhGnF
This commit is contained in:
co-authored by
Claude Fable 5
parent
19752e55e1
commit
a254e46c5e
@@ -593,11 +593,17 @@
|
|||||||
{/if}
|
{/if}
|
||||||
</g>
|
</g>
|
||||||
{#if povFacing && p.id === view.you}
|
{#if povFacing && p.id === view.you}
|
||||||
|
<!-- A short wide ribbon hugging the token's leading edge: base as
|
||||||
|
wide as the token, rising a fifth of that outward. -->
|
||||||
{@const fa = povFacing === "E" ? 0 : povFacing === "S" ? Math.PI / 2 : povFacing === "W" ? Math.PI : -Math.PI / 2}
|
{@const fa = povFacing === "E" ? 0 : povFacing === "S" ? Math.PI / 2 : povFacing === "W" ? Math.PI : -Math.PI / 2}
|
||||||
{@const tipX = Math.cos(fa) * CELL * 0.52}
|
{@const fh = CELL * 0.3 * wizardScale(p.id)}
|
||||||
{@const tipY = Math.sin(fa) * CELL * 0.52}
|
{@const fxv = Math.cos(fa)}
|
||||||
|
{@const fyv = Math.sin(fa)}
|
||||||
|
{@const px = -fyv}
|
||||||
|
{@const py = fxv}
|
||||||
|
{@const rise = fh * 0.4}
|
||||||
<polygon
|
<polygon
|
||||||
points={`${tipX},${tipY} ${Math.cos(fa + 2.35) * CELL * 0.3},${Math.sin(fa + 2.35) * CELL * 0.3} ${Math.cos(fa - 2.35) * CELL * 0.3},${Math.sin(fa - 2.35) * CELL * 0.3}`}
|
points={`${fxv * fh + px * fh},${fyv * fh + py * fh} ${fxv * fh - px * fh},${fyv * fh - py * fh} ${fxv * (fh + rise)},${fyv * (fh + rise)}`}
|
||||||
class="pov-wedge"
|
class="pov-wedge"
|
||||||
/>
|
/>
|
||||||
{/if}
|
{/if}
|
||||||
|
|||||||
Reference in New Issue
Block a user