8000 Map can not set color of line -> I want to set red on the black (like crt-green) but for specific elementes not all. · Issue #1047 · plantuml/plantuml · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
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

Map can not set color of line -> I want to set red on the black (like crt-green) but for specific elementes not all. #1047

Closed
ChameleonRed opened this issue Jun 20, 2022 · 4 comments

Comments

@ChameleonRed
Copy link

Here is example of code:

@startuml
map commit #red {
  sha256 => 1
}
class x #red ##pink {
}
map commit1 #red ##pink {
  sha256 => 1
}
map commit1 #line:red {
  sha256 => 1
}
@enduml

I can not set colors for individual maps I want to color line, font not background only.

I can use skinparam but I cannot apply without use <> to specific elements (I do not want to make visible stereotypes).
No idea how to apply colors with overcrowding skinparams - it need be done before every element.

Inline style is probably the best but also can be some selectors to apply style.

@ChameleonRed ChameleonRed changed the title Map can not set color of line -> I want to set red on the black (like crt-green) Map can not set color of line -> I want to set red on the black (like crt-green) but for specific elementes not all. Jun 20, 2022
@ChameleonRed
Copy link
Author

The best will if I can set this like in HTML or with inline style.

@arnaudroques
Copy link
Contributor

Online version now allows this.
Is this what you are expecting?

@ChameleonRed
Copy link
Author

It is exactly what is need.

@The-Lum
Copy link
Collaborator
The-Lum commented Sep 12, 2023

Hi all,

[This is an Issue Review]
This is now fixed (by inline style or style), as:

@startuml
hide stereotype
<style>
.test  {
  LineColor blue
  BackgroundColor lightCyan
  LineThickness 2
  ArrowThickness 0.5
  FontName Arial Narrow
  FontColor red
}
</style>
map commit1 #aliceblue {
  sha256 => 1
}
class x #aliceblue ##pink {
}
map commit2 #aliceblue ##pink {
  sha256 => 1
}
map commit3 #line:red {
  sha256 => 1
}
map commit4 <<test>> {
  sha256 => 1
}
@enduml

  • Thanks @ChameleonRed for the report.
  • Thanks PlantUML team for your work.

Regards.

@The-Lum The-Lum closed this as completed Sep 12, 2023
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

No branches or pull requests

3 participants
0