Commit graph

2025 commits

Author SHA1 Message Date
Gavin Nishizawa
d7ad0f39a9
shift whole edge down if horizontal between two non root nodes 2023-02-27 19:54:39 -08:00
Gavin Nishizawa
357dda9815
add test 2023-02-27 19:43:04 -08:00
Gavin Nishizawa
45de9ba9c8
update tests 2023-02-27 19:42:00 -08:00
Gavin Nishizawa
454196be9b
unless the dst is also on a container 2023-02-27 19:41:59 -08:00
Gavin Nishizawa
4d1462473c
update tests 2023-02-27 19:41:18 -08:00
Gavin Nishizawa
5844c54bcf
handle non-vertical directions when shifting nodes 2023-02-27 19:41:18 -08:00
Alexander Wang
ead2850fc4
Merge pull request #933 from alixander/sketch-fill
fix sketch overlays, double-border
2023-02-27 19:31:05 -08:00
gavin-ts
61e0577950
Merge pull request #931 from gavin-ts/fix-png-export
Fix png export
2023-02-27 19:27:39 -08:00
Alexander Wang
44248e9981
fix sketch 2023-02-27 19:26:19 -08:00
Gavin Nishizawa
23c7bbf1f8
changelog 2023-02-27 19:24:34 -08:00
Gavin Nishizawa
2782432d85
disable fit to screen and set exact dimensions on svg for png export 2023-02-27 19:22:02 -08:00
Alexander Wang
6d7188a3c8
save 2023-02-27 19:17:19 -08:00
Anmol Sethi
45c8a2e565
Makefile: Run fmt before anything else 2023-02-27 17:43:53 -08:00
Bernard Xie
48593357a5
Merge pull request #929 from berniexie/support-diagram-fill-pdf
pdf: Support diagram fill in pdf exports
2023-02-27 16:56:38 -08:00
Bernard Xie
2292ed4653
Update color.go 2023-02-27 16:46:44 -08:00
Bernard Xie
d72068d194
Update color.go 2023-02-27 16:45:25 -08:00
Bernard Xie
3427ea1717
w3 official source 2023-02-27 16:38:48 -08:00
Bernard Xie
2fb0df3563
add rebecca purple 2023-02-27 16:34:44 -08:00
Bernard Xie
8e0feef0da
color comment 2023-02-27 16:30:25 -08:00
Bernard Xie
7c295c1942
to lower on name2rgb 2023-02-27 16:27:28 -08:00
gavin-ts
229cac01cc
Merge pull request #930 from gavin-ts/bump-go-install-version
update d2 version for go install oss.terrastruct.com/d2@latest
2023-02-27 16:25:00 -08:00
Bernard Xie
b48c2b411f
Update color.go 2023-02-27 16:22:10 -08:00
Bernard Xie
6ac07a3eda
Update main.go 2023-02-27 16:21:24 -08:00
Gavin Nishizawa
4b97eefdeb
update d2 version for go install oss.terrastruct.com/d2@latest 2023-02-27 16:20:43 -08:00
Bernard Xie
7dee1e82f6
Update main.go 2023-02-27 16:19:52 -08:00
Bernard Xie
abc145ae72
Merge branch 'master' into support-diagram-fill-pdf 2023-02-27 16:19:49 -08:00
Bernard Xie
63ffcba215
error 2023-02-27 16:10:00 -08:00
Bernard Xie
66083e2d98
set root fill as transparent on pdf exports 2023-02-27 16:05:41 -08:00
Anmol Sethi
fa5c203ff9
Merge pull request #927 from nhooyr/cli-tests-740f
d2cli: Move main code into d2cli so it can be imported from tests
2023-02-27 15:07:00 -08:00
Anmol Sethi
5a5d48bdbc
d2cli: Move main code into d2cli so it can be imported from tests
Updates #903
2023-02-27 15:04:02 -08:00
Bernard Xie
a14871c81f
Merge branch 'master' into support-diagram-fill-pdf 2023-02-27 14:56:29 -08:00
Anmol Sethi
233a3fddd3
Merge pull request #923 from nhooyr/layers-containers-97eb
cli: Improve multiboard output
2023-02-27 14:42:10 -08:00
Anmol Sethi
f64b5c010d
IsContainerOnly -> IsFolderOnly 2023-02-27 14:39:09 -08:00
Anmol Sethi
78b09f5007
BoardContainer -> IsContainerOnly
As discussed on slack.
2023-02-27 14:39:08 -08:00
Anmol Sethi
89394421f8
changelog: Update 2023-02-27 14:39:08 -08:00
Bernard Xie
29e76b77b8
Merge branch 'master' into support-diagram-fill-pdf 2023-02-27 14:11:07 -08:00
Bernard Xie
fb4eb36214
Add support 2023-02-27 14:10:59 -08:00
Anmol Sethi
65437b954d
main: Don't render board containers in renderPDF
cc @berniexie
2023-02-27 13:50:03 -08:00
Anmol Sethi
e4fac7840f
cli: Improve multiboard output
- Boards with subboards are now selfcontained folders with index.svg/png as
  the root board render.
- Boards that are only containers of other boards are not rendered. For example a
  scenario with no modifications and only steps only has its steps
  rendered.
- Boards with sibling boards of another type are rendered under a
  subdirectory indicating their type to separate them. For example a
  board with layers and scenarios has its layers rendered into subfolder
  layers and scenarios into subfolder scenarios.

cc @berniexie see BoardContainer field on d2target.Board for the field
you were looking for to skip renders for PDFs too.
2023-02-27 13:50:03 -08:00
Alexander Wang
6b70ebe00c
Merge pull request #922 from alixander/fix-fill
fix theme regex
2023-02-27 13:01:48 -08:00
Alexander Wang
9cdfd20ff9
changelog 2023-02-27 12:58:21 -08:00
Alexander Wang
e5eacbd499
fix theme regex 2023-02-27 12:56:04 -08:00
Anmol Sethi
bc3942fa7e
d2graph: Actually remove board keyword check
d2ir change alone is enough.
2023-02-27 12:10:36 -08:00
Alexander Wang
be09118633
Merge pull request #876 from alixander/fix-d2oracle-underscore
compiler: Fix underscore reference
2023-02-27 12:10:07 -08:00
Alexander Wang
1143286c33
regen test 2023-02-27 12:04:08 -08:00
Anmol Sethi
903bf7e206
Ignore BoardKeywords in d2graph and change d2ir.IDA to return from nearest board 2023-02-27 11:52:55 -08:00
Anmol Sethi
f60856fc28
Merge pull request #917 from nhooyr/docker-arm64-playwright-e161
Add playwright deps to arm64 docker image
2023-02-27 11:36:18 -08:00
Anmol Sethi
25f8361eeb
changelogs/next.md: Update 2023-02-27 11:30:24 -08:00
Anmol Sethi
79eac42905
docker: Build cross platform release image natively
Playwright deps don't install when running under QEMU.
2023-02-27 11:25:43 -08:00
gavin-ts
de461199b2
Merge pull request #916 from gavin-ts/regression-test-from-file
add util to read e2e test from file
2023-02-27 10:39:52 -08:00