Commit graph

1731 commits

Author SHA1 Message Date
Gavin Nishizawa
606f84e569
changelog 2023-01-27 12:00:56 -08:00
Gavin Nishizawa
c4db001781
fix unlabelled circle/square with desired width/height 2023-01-27 11:51:03 -08:00
Gavin Nishizawa
9d1aeebfea
update tests 2023-01-27 11:44:34 -08:00
Gavin Nishizawa
d6493887d9
cleanup desiredWidth/Height 2023-01-27 11:41:10 -08:00
Gavin Nishizawa
03788f5c10
update tests 2023-01-27 11:15:00 -08:00
Anmol Sethi
dffcb274cd
next.md: Document layers/scenarios/steps 2023-01-27 11:06:35 -08:00
Anmol Sethi
d80b2d3842
cli: Output layers under subdirectory 2023-01-27 11:01:16 -08:00
Alexander Wang
2d129437cf
Merge branch 'terrastruct:master' into master 2023-01-27 10:59:57 -08:00
Gavin Nishizawa
f6caac0127
use label height for padding shapes with icons 2023-01-27 10:57:55 -08:00
Gavin Nishizawa
781194e8ba
add class row ascii diagram 2023-01-27 10:52:46 -08:00
Anmol Sethi
2d36513e2c
Merge remote-tracking branch 'upstream/master' into scenarios-a407 2023-01-27 10:51:33 -08:00
Anmol Sethi
caef5a5a8f
cli: Add support for rendering layers/scenarios/steps 2023-01-27 10:41:25 -08:00
gavin-ts
9cdce24122
Merge pull request #728 from gavin-ts/seq-diagram-group-with-self-edge
sequence diagram: group overlap with self edge
2023-01-27 10:21:11 -08:00
Gavin Nishizawa
fd72e10dbc
rename lastGroup to prevGroup 2023-01-27 10:09:38 -08:00
Alexander Wang
256ce2d51e
Merge branch 'terrastruct:master' into master 2023-01-27 08:01:06 -08:00
Anmol Sethi
38fcaa1aa3
Merge pull request #733 from nhooyr/fmt-many-44a0
fmt: Accept multiple files to be formatted
2023-01-27 07:38:33 -08:00
Anmol Sethi
0507946672
fmt: Accept multiple files to be formatted
Closes #718
2023-01-27 07:31:12 -08:00
Gavin Nishizawa
c4efe2812f
check message ref is group 2023-01-26 18:39:33 -08:00
Gavin Nishizawa
22231aa8e4
changelog 2023-01-26 18:08:37 -08:00
Gavin Nishizawa
a54a0324c3
update test 2023-01-26 18:02:33 -08:00
Gavin Nishizawa
74b0ed2064
only add message offset after loops in another group 2023-01-26 18:02:32 -08:00
Gavin Nishizawa
576c8df2c8
update message offset for self messages 2023-01-26 18:02:32 -08:00
Gavin Nishizawa
46f3b31742
add sequence_diagram_self_edge_group_overlap regression test 2023-01-26 18:02:32 -08:00
Gavin Nishizawa
ce0d81650d
update tests 2023-01-26 16:45:14 -08:00
Gavin Nishizawa
bd23d0758b
update hexagon inner box 2023-01-26 16:44:20 -08:00
Gavin Nishizawa
597bc319bf
update other chopPrecision 2023-01-26 16:44:20 -08:00
Gavin Nishizawa
fed4bd2b9f
ceil dimensions to fit 2023-01-26 16:44:20 -08:00
Gavin Nishizawa
e367a007e5
chopPrecision once at end 2023-01-26 16:44:20 -08:00
Gavin Nishizawa
f30fe2c2c4
round from float32 precision 2023-01-26 16:44:20 -08:00
Gavin Nishizawa
c12e71af15
update circle fitting 2023-01-26 16:44:19 -08:00
Gavin Nishizawa
cc8c7756ab
cleanup 2023-01-26 16:44:19 -08:00
Gavin Nishizawa
b2036e8bdf
fix sequence diagram actor shape scaling 2023-01-26 16:44:19 -08:00
Gavin Nishizawa
162227e196
only add extra x padding for non-special shapes 2023-01-26 16:44:19 -08:00
Gavin Nishizawa
d5f2ed00d5
handle person shape aspect ratio 2023-01-26 16:44:19 -08:00
Gavin Nishizawa
b1beddc9e2
Adjust padding per shape 2023-01-26 16:44:19 -08:00
Gavin Nishizawa
6f26167beb
fix class dimensions 2023-01-26 16:44:19 -08:00
Gavin Nishizawa
0311a3f7d7
use paddingX and paddingY in GetDimensionsToFit 2023-01-26 16:44:19 -08:00
Gavin Nishizawa
b76d43536d
remove debugging code 2023-01-26 16:44:18 -08:00
Gavin Nishizawa
23097370e2
set up shape specific inner bounding boxes for labels 2023-01-26 16:43:36 -08:00
Alexander Wang
12ee7ae278
[ci-base] double-circle -> double-border 2023-01-26 16:42:41 -08:00
Alexander Wang
9b0f942c05
[ci-base] update 2023-01-26 16:35:22 -08:00
Alexander Wang
6f1b674537
Merge branch 'terrastruct:master' into master 2023-01-26 16:30:32 -08:00
Alexander Wang
bea8a47ece
Merge pull request #565 from OneRain233/master
Implement the `double_circle` shape including basic shape and the sketch.
2023-01-26 16:30:17 -08:00
OneRain2333
6aef38a55c Delete .idea 2023-01-26 09:33:53 +08:00
Kevin David
9ba1d85d21
d2graph: check that font family is entirely loaded before using it
I tested this by removing the changes I added in `d2fonts`, which led to:
```
[21:23:54] info: compiling GetUniqueColumnName-fix.d2...
[21:23:54] err: failed to compile: ruler does not have entire font family SourceCodePro loaded, is a style missing?
```

The error was also rendered in the UI.
2023-01-24 21:25:01 -05:00
Kevin David
500e3e179e
SourceCodePro bold/italic: use .woff for encoded fonts instead of .ttf
Sourced from: https://github.com/adobe-fonts/source-code-pro/releases/tag/2.038R-ro%2F1.058R-it%2F1.018R-VAR

Translated with the following commands:
```
base64 -i ~/Downloads/WOFF-source-code-pro-2.038R-ro-1.058R-it/TTF/SourceCodePro-It.ttf.woff -o ./d2renderers/d2fonts/encoded/SourceCodePro-Italic.txt
base64 -i ~/Downloads/WOFF-source-code-pro-2.038R-ro-1.058R-it/TTF/SourceCodePro-Bold.ttf.woff -o ./d2renderers/d2fonts/encoded/SourceCodePro-Bold.txt
```

I used the `.ttf.woff` files because that seemed "closer" to the original `.ttf` files included, but I'm not sure if that's correct.
2023-01-24 21:20:16 -05:00
Anmol Sethi
310afcdf86
Merge remote-tracking branch 'upstream/master' into scenarios-a407 2023-01-24 15:29:38 -08:00
Anmol Sethi
335d925b7c
deps: update [ci-force] 2023-01-24 15:27:12 -08:00
Anmol Sethi
c77b4acc4e
deps: update [ci-force] 2023-01-24 15:25:18 -08:00
Anmol Sethi
afd2768880
docs/flow.d2: Update [ci-base] 2023-01-24 15:14:53 -08:00