Commit graph

13 commits

Author SHA1 Message Date
Fahmi Akbar Wildana
3954431234
only auto adjust the height, remove AutoSize()
seems like the layout engine always came up with the optimal width
2025-02-23 12:21:55 +07:00
Fahmi Akbar Wildana
4eb3c2d258
revise AutoSize() 2025-02-23 10:37:49 +07:00
Fahmi Akbar Wildana
d94491dc22
add AutoSize() too determine optimal width and height 2025-02-23 07:00:40 +07:00
Fahmi Akbar Wildana
24a413a737
retain text/label 2025-02-18 12:22:19 +07:00
Fahmi Akbar Wildana
3c92ce1679
don't maintain aspect ration 2025-02-17 07:19:44 +07:00
Fahmi Akbar Wildana
2b109ab105
downscale the result if it get to big 2025-02-16 18:13:12 +07:00
Fahmi Akbar Wildana
40f8a88f15
remove margin 2025-02-16 18:10:31 +07:00
Fahmi Akbar Wildana
f63591194c
add examples output
```fish
for f in docs/**.d2
  set -l dir (dirname $f)
  set -l name (basename $f .d2)
  if [ $name = "in" ]
      set name out
  end
  if [ $name = "input" ]
      set name output
  end
  go run main.go $f $dir/$name.txt
end
```
2025-02-14 13:15:31 +07:00
Gavin Nishizawa
f5d0f36988
update example d2 file 2023-02-12 07:44:17 -08:00
Alexander Wang
e292ab4c97
2022-11-23 01:10:26PM 2022-11-23 13:10:26 -08:00
Alexander Wang
2a0b126331
2022-11-23 01:08:17PM 2022-11-23 13:08:17 -08:00
Alexander Wang
995143e3be
2022-11-23 01:04:26PM 2022-11-23 13:04:26 -08:00
Alexander Wang
875f9fd76e
2022-11-22 01:44:59PM 2022-11-22 13:44:59 -08:00