Embed sub diagrams (of all type, especially Mindmap or WBS) in (all type of) diagram

0 votes
asked Jul 27, 2020 in Wanted features by The-Lu (57,460 points)
edited Jul 27, 2020 by The-Lu

Hello PlantUML team,

From:

Then:

  • How to insert Mindmap or WBS diagrams in other diagrams?
  • Could you improve the sub-diagram or embedded diagram features for all type of diagram?

We don't know what would be the best syntax, like with salt or not:

{{
salt
{
...
}
}}

Here is a little sum-up of existing behavior:

sub-diagram →
↓ host-diagram
ActivityClassDeploymentGanttMindMapSequenceStateWBSWireframe (salt)
ActivityOKOKOKKO with @startgantt:


OK without @startgantt:
KO
[Click to see on PlantUML server...]
OKOKKO

[Click..]
Class (note on class)
or Deployment
or MindMap
OKOKOKidemKOOKOKKOOK
Sequence
or State
or WBS
OK
(on oneline)
OK
(on oneline)
OK
(on oneline)
idemKOOKOKKOOK
Gantt or Wireframe N/AN/AN/AN/AN/AN/AN/AN/AN/A

Thanks for yours works,
Regards,
Th.

related to an answer for: embed sub diagrams in diagram like a note

1 Answer

0 votes
answered Sep 22, 2020 by plantuml (291,180 points)

With last beta http://beta.plantuml.net/plantuml.jar you can now have :

or:

We did not test all combinaisons... :-)

commented Sep 22, 2020 by The-Lu (57,460 points)

Hello plantuml,

Marvellous...

FYI, on SVG output, the second example gives a java.lang.NullPointerException:

SVG:

(See SVG link.. on PlantUML server)

 PNG:

Thanks for your support,
Regards,
Th.

commented Sep 23, 2020 by The-Lu (57,460 points)

Hello PlantUML team,

Another open question:

If you allow (no return line before wbs or mindmap and return line mandatory before salt):

@startuml
legend

{{wbs
* root
** level1
** level1
}}

{{mindmap
* root
** level1
** level1
}}

'and

{{
salt
{
[Example button]
[X] Checked box
}
}}

end legend
@enduml

→  Link to PlantUML online server

Could you allow (return line or not) :

{{
wbs
...
}}

or

{{salt
...
}}

?

In order to have a consistent behaviour between salt, wbs or mindmap.

That is an open question, to debate...

Regards,
Th.

...