2

I am now using KonvaJS.

I know Text draws text. But it accepts only one style.

Here's my code to render text.

And I want to make Konva color to red and others green.

You can do live coding here

Alona
  • 549
  • 3
  • 13

1 Answers1

4

Currently, that is not possible with Konva. To resolve your issue you can:

  1. Use several instances of Konva.Text with different styles
  2. Use custom Konva.Shape and draw all text manually with native canvas access
lavrton
  • 18,973
  • 4
  • 30
  • 63