Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#350 All boundaries supports descriptions and sprites too #352

Merged

Conversation

kirchsth
Copy link
Member

@kirchsth kirchsth commented May 1, 2024

related to #350

All boundaries are extended that they support descriptions too:

  • Boundary(..., ?descr)
  • Enterprise_Boundary(..., ?descr)
  • System_Boundary(..., ?descr)
  • Container_Boundary(..., ?descr)

and sprites which are defined via tags
(If a sprite is defined then it displayed in the first line in front of the label with a smaller size.
The sprite is written in front of the label that the height of the boundary is reduced.)

  • AddBoundaryTag(..., ?sprite, ?legendSprite)

  • UpdateBoundaryStyle(..., ?sprite, ?legendSprite)

  • UpdateContainerBoundaryStyle(..., ?sprite, ?legendSprite)

  • UpdateSystemBoundaryStyle(..., ?sprite, ?legendSprite)

  • UpdateEnterpriseBoundaryStyle(..., ?sprite, ?legendSprite)

  • Default sprite size can be changed via $BOUNDARY_IMAGE_SIZE_FACTOR

The new features are supported in the normal C4 diagrams:

and the sequence diagram:

It can be tested via my extended branch.

@NathanDotTo, can you please check if it matches with your expectation?

BR Helmut

kirchsth added 4 commits May 1, 2024 15:45
…tags

If a sprite is defined then it displayed in the first line in front of the
(with a smaller size, typically 50%)

- AddBoundaryTag(..., ?sprite, ?legendSprite)
- UpdateBoundaryStyle(..., ?sprite, ?legendSprite)
- UpdateContainerBoundaryStyle(..., ?sprite, ?legendSprite)
- UpdateSystemBoundaryStyle(..., ?sprite, ?legendSprite)
- UpdateEnterpriseBoundaryStyle(..., ?sprite, ?legendSprite)

Default sprite size can be changed via $BOUNDARY_IMAGE_SIZE_FACTOR
- Boundary(..., ?descr)
- Enterprise_Boundary(..., ?descr)
- System_Boundary(..., ?descr)
- Container_Boundary(..., ?descr)
@kirchsth kirchsth requested a review from Potherca May 1, 2024 20:00
@kirchsth kirchsth added this to the v2.10.0 milestone May 4, 2024
@kirchsth kirchsth merged commit dcadafc into plantuml-stdlib:master May 4, 2024
1 check passed
@kirchsth kirchsth deleted the feature/350_boundaries_descr_sprite branch December 20, 2024 11:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant