sprite in subdiagram

0 votes
asked Nov 10, 2021 in Question / help by ncasaux

Hello,

It seems that sprite are not rendered in subdiagrams, 

Please check below link:

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuU8gBYZAB4bLK4dBppTKgEPIK7131I0H0qCZOnDJCtCBIqSdvu4MmNHXBHTNGM9oTc9wga80o0_9EVcbAGfAYJPWJzabAQ6eC5A8vgh6ggYMAvQBoo4rBmKOC000

is it a normal behaviour ? Thanks! :)

1 Answer

0 votes
answered Nov 10, 2021 by The-Lu (64,340 points)

Hello N.,

The sub-diagram is independent of the host diagram.

If you will use sprite on sub-diagram, you must to add on, as:

package P2 [
{{
sprite $foo1 {
  FFFFFFFFFFFFFFF
  F0123456789ABCF
  F0123456789ABCF
  F0123456789ABCF
  F0123456789ABCF
  F0123456789ABCF
  F0123456789ABCF
  F0123456789ABCF
  F0123456789ABCF
  FFFFFFFFFFFFFFF
}
cloud "a<$foo1>b"
}}
]

If that can help,
Regards.

commented Nov 11, 2021 by ncasaux

Hello The-Lu,

You are perfectly right, I didn't think about this...

Thanks! smiley

...