Commit graph

10 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
Alexander Wang
4c91208ee6
fmt 2023-12-06 05:05:00 -08:00
Alexander Wang
57e7eb8008
changelog 2023-12-06 04:57:35 -08:00