hikerpig / pintora

An extensible text-to-diagrams library that works in both browser and node.js
https://pintorajs.vercel.app
MIT License
1.08k stars 22 forks source link

activity diagram: else arrow description is wrong #278

Closed jomaway closed 3 months ago

jomaway commented 3 months ago

Tried this code inside the live editor:

activityDiagram
title: test

if (color?) then (red)
    :print red;
else (green)
    :print green;
endif

Expected behavior: print green on the else case. Problem: else case print's no on the error. See image. pintora-output-1712317296657

Also tested this syntax, but this didn't even compile:

activityDiagram
title: test

if (color?) is (red) then
    :print red;
else (green)
    :print green;
endif
hikerpig commented 3 months ago

I see, it's actually a bug, no matter what label you assign , the label of else branch is always isno

hikerpig commented 3 months ago

Fixed in v0.7.4