(ctx, text, position, color, selection)
| 200 | */ |
| 201 | @initial<DrawHooks>({ |
| 202 | token(ctx, text, position, color, selection) { |
| 203 | ctx.fillStyle = color; |
| 204 | ctx.globalAlpha *= map(0.2, 1, selection); |
| 205 | ctx.fillText(text, position.x, position.y); |
| 206 | }, |
| 207 | }) |
| 208 | @signal() |
| 209 | public declare readonly drawHooks: SimpleSignal<DrawHooks, this>; |