plantuml / plantuml-core

Core library of PlantUML that runs completely on javascript without needing java/servers
https://plantuml.github.io/plantuml-core/
MIT License
105 stars 31 forks source link

UnsupportedOperationException when using !pragma teoz true #10

Open jayaprabhakar opened 2 weeks ago

jayaprabhakar commented 2 weeks ago

I am using this example:

@startuml
!pragma teoz true

S1 ->(30) S2: msg 1\n
& S2 ->(30) S1: msg 2

note left S1: msg\nS2 to S1
& note right S2: msg\nS1 to S2
@enduml

When using the demo with the canvas https://plantuml.github.io/plantuml-core/raw.html: I get this error. {"duration":142,"status":"General failure","exception":"java.lang.UnsupportedOperationException"}

But when using the SVG demo https://plantuml.github.io/plantuml-core/svg.html, the same code works

Permalinks: SVG demo that works: https://plantuml.github.io/plantuml-core/svg.html?KomeIapFJLGeISslKYWfAatbuWesLD2rqp0sq5G8Dh9Io2rELp2CoUDI0_BWueOGSICkhhpyabI5dDIq4fXWJ1vGNKa-a0lK0fOjoapFA86P1PGs14iR0G00 Canvas demo that doesn't work: https://plantuml.github.io/plantuml-core/raw.html?KomeIapFJLGeISslKYWfAatbuWesLD2rqp0sq5G8Dh9Io2rELp2CoUDI0_BWueOGSICkhhpyabI5dDIq4fXWJ1vGNKa-a0lK0fOjoapFA86P1PGs14iR0G00