Commit graph

126 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
7ac918fc37
fmt example 2025-02-13 11:22:47 -07:00
Alexander Wang
5c14429c0c
Merge pull request #2300 from dyllan-to-you/patch-1
doc: add scoop & choco to windows install
2025-02-03 17:37:46 -08:00
Alexander Wang
69f4c8f032
fix toc 2025-02-03 18:33:06 -07:00
Alexander Wang
f711a76ade
add diagram hash salt 2025-01-30 14:48:41 -07:00
Alexander Wang
ce40826d51
ensure unique diagram hash based on appearance 2025-01-29 16:29:32 -07:00
Dyllan To
f62d745d35
Add badges to windows native package manager install instructions 2025-01-26 02:59:51 -08:00
Dyllan To
239552cac8
Add scoop & choco to windows install documentation 2025-01-21 16:44:57 -08:00
Alexander Wang
aedc7f87a5
docs: update lib examples with proper context logging 2024-12-27 16:47:41 -07:00
oftenoccur
c688ee28d9
chore: fix some typos
Signed-off-by: oftenoccur <ezc5@sina.com>
2024-04-26 20:11:46 +08:00
Alexander Wang
cf9cfa15c7
update 2024-03-25 09:46:14 -07:00
Alexander Wang
318f8df3ef
update outdated readme example 2024-03-25 09:37:54 -07:00
Alexander Wang
993e3691e2
1.22 2024-03-06 23:03:07 -08: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
Alexander Wang
339c0b3d81
[ci-force] fix fmt in example 2023-08-01 10:30:02 -07:00
Alexander Wang
9122ce1c2b
robust hash 2023-07-29 11:31:03 -07:00
Alexander Wang
45b396c894
config vars 2023-07-20 16:08:08 -07:00
Alexander Wang
a1df49c21e
cleanup 2023-06-20 18:56:04 -07:00
Alexander Wang
22bd19b55d
fix 2023-05-07 16:18:02 -07:00
bokura
a80ca6c43a
Update japan.d2
https://github.com/terrastruct/d2/issues/576#issuecomment-1512616540
2023-04-19 11:42:26 +09:00
Alexander Wang
671fd4f16a
[ci-force] add japan example 2023-04-17 18:32:23 -07:00
Alexander Wang
13b385346a
[ci-base] add d2 pptx example 2023-04-17 17:12:33 -07:00
Alexander Wang
6f27dc1733
add example 2023-04-14 13:23:31 -07:00
Alexander Wang
f2bfb1bd18
[ci-force] update contributing 2023-04-09 18:58:17 -07:00
Alexander Wang
4c8c2b1ab5
define new theme 2023-03-15 17:54:34 -07:00
Alexander Wang
af3337901b
update readme 2023-03-13 19:50:06 -07:00
Alexander Wang
298a0c10bd
bump to go 1.20 2023-03-13 13:35:26 -07:00
Anmol Sethi
b794f3186d
markdown: Format TOCs correctly 2023-02-27 21:13:20 -08:00
Vojtěch Fošnár
6fcc58a4f8
Merge branch 'terrastruct:master' into master 2023-02-20 10:27:44 +01:00
Alexander Wang
16679e8d69
[ci-base] update contributing 2023-02-19 22:24:10 -08:00
Alexander Wang
eac0c53610
Update CONTRIBUTING.md 2023-02-19 19:48:16 -08:00
Alexander Wang
95cf986928
update 2023-02-19 19:45:21 -08:00
Alexander Wang
aa49c9c1b8
update contributing 2023-02-19 19:38:49 -08:00
Vojtěch Fošnár
6e64949b9e
use pointer for DarkThemeID 2023-02-19 15:33:40 +01:00
Vojtěch Fošnár
6a89beaeb1
merge updates 2023-02-19 12:32:44 +01:00
Gavin Nishizawa
f5d0f36988
update example d2 file 2023-02-12 07:44:17 -08:00
Vojtěch Fošnár
01928a5032
review fixes 2023-01-30 12:06:54 +01:00
Vojtěch Fošnár
d24a5c1ec3
updated export and render options 2023-01-27 22:41:59 +01:00
Vojtěch Fošnár
af2be1232f
resolved conflicts, updated tests 2023-01-27 22:30:44 +01:00
Anmol Sethi
afd2768880
docs/flow.d2: Update [ci-base] 2023-01-24 15:14:53 -08:00
Anmol Sethi
fe16543a6d
Dockerfile: Add playwright support for rendering PNGs
Closes #594
2023-01-24 01:14:30 -08:00
Alexander Wang
1f5bdcd8da
update 2023-01-09 20:34:54 -08:00