Allow scale or DPI for JSON or YAML diagram

+1 vote
asked Jun 29, 2021 in Wanted features by The-Lu (64,340 points)

Hello PlantUML team,

  • Could you allow Scale or DPI for JSON or YAML diagram?

If it is possible? or by beta-style, or...

Examples with scale:

CodeOutput
@startjson
scale 2
{
   "fruit":"Apple",
   "size":"Large",
   "color": ["Red", "Green"]
}
@endjson

@startyaml
scale 2
fruit: Apple
size: Large
color: 
 - Red
 - Green
@endyaml

Examples with DPI:

CodeOutput
@startjson
skinparam dpi 300
{
   "fruit":"Apple",
   "size":"Large",
   "color": ["Red", "Green"]
}
@endjson

@startyaml
skinparam dpi 300
fruit: Apple
size: Large
color: 
 - Red
 - Green
@endyaml

Same thing also with...  skinparam handwritten true cheeky

Regards,
Th.

commented Nov 7, 2021 by The-Lu (64,340 points)

Same thing also with... the theme directive: cheeky

!theme theme_name

2 Answers

0 votes
answered Dec 13, 2022 by plantuml (295,000 points)
selected Dec 13, 2022 by The-Lu
0 votes
answered Dec 6, 2022 by tiroy

Shouldn't scale or theme be used with style?
Use styles with CSS (plantuml.com)

Anyway it does not work there either or I cannot make it work.

commented Mar 10, 2023 by finalpatch
Only works with integer scale.  "1.5" does not work.
...