plantuml / backlog

Contains all issues for plantuml that are not currently working-in-progress
0 stars 0 forks source link

Make skinparam local to package #41

Open midenok opened 6 years ago

midenok commented 6 years ago

Reproduce 1

@startuml
package legend #GreenYellow/LightGoldenRodYellow {
skinparam classBackgroundColor Wheat|CornflowerBlue
A +- B
}
skinparam classBackgroundColor Yellow
C ^- D
@enduml

Result 1

image

Reproduce 2

@startuml
skinparam classBackgroundColor Yellow
package legend #GreenYellow/LightGoldenRodYellow {
skinparam classBackgroundColor Wheat|CornflowerBlue
A +- B
}
C ^- D
@enduml

Result 2

image

Expected

In both above cases A and B are Wheat|CornflowerBlue but C and D are Yellow.

arnaudroques commented 6 years ago

Unfortunately, this is very difficult to change using current implementation. Skinparams are really global to the whole diagram. Let us think about this...