Commit graph

2035 commits

Author SHA1 Message Date
Alexander Wang
ab4e4542d6
v0.2.2 2023-02-27 21:33:35 -08:00
Alexander Wang
87db4418e6
Update next.md 2023-02-27 20:49:14 -08:00
Alexander Wang
53f1367bb2
Update next.md 2023-02-27 20:42:41 -08:00
gavin-ts
fdcbf6f47a
Merge pull request #935 from gavin-ts/fix-pdf-export
set dimensions for PDF rendering
2023-02-27 20:30:30 -08:00
Gavin Nishizawa
6ce46d8cee
also set dimensons for PDF rendering 2023-02-27 20:27:18 -08:00
gavin-ts
ab7329e966
Merge pull request #926 from gavin-ts/fix-dagre-unconnected
Fix dagre edge shifting with direction right
2023-02-27 20:10:53 -08:00
Bernard Xie
13ab36162b
Merge pull request #934 from berniexie/bernie/fix-pdf-fill-theme
pdf: Fix pdf fill when using theme colors
2023-02-27 19:58:38 -08:00
Gavin Nishizawa
186368cd1e
update test 2023-02-27 19:55:52 -08:00
Bernard Xie
479127b3c6
add else 2023-02-27 19:55:37 -08:00
Gavin Nishizawa
d7ad0f39a9
shift whole edge down if horizontal between two non root nodes 2023-02-27 19:54:39 -08:00
Bernard Xie
349fac7193
Fix when using theme colors 2023-02-27 19:50:30 -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