Commit graph

336 commits

Author SHA1 Message Date
Alexander Wang
a37c456dfc
fixed alignment 2023-03-14 11:08:29 -07:00
Alexander Wang
d6fee41e3b
make dagre inter-container connections better 2023-03-09 19:49:40 -08:00
Alexander Wang
412f53e229
ELK nodes grow to ensure port padding 2023-03-06 22:32:15 -08:00
Gavin Nishizawa
bacb22797c
fix 2023-03-03 22:31:09 -08:00
Gavin Nishizawa
13a3edc4ba
basic fix 2023-03-03 22:18:56 -08:00
Gavin Nishizawa
609b3e5eb3
move person labels to outside bottom 2023-03-02 14:57:13 -08:00
Gavin Nishizawa
d7ad0f39a9
shift whole edge down if horizontal between two non root nodes 2023-02-27 19:54:39 -08:00
Gavin Nishizawa
454196be9b
unless the dst is also on a container 2023-02-27 19:41:59 -08:00
Gavin Nishizawa
5844c54bcf
handle non-vertical directions when shifting nodes 2023-02-27 19:41:18 -08:00
Alexander Wang
25f6c84a3a
check for no actors in sequence diagram 2023-02-23 23:17:45 -08:00
Gavin Nishizawa
daadca15cd
pad label box, avoid short segments 2023-02-23 13:02:40 -08:00
Gavin Nishizawa
e3ac2a4170
move container edge back if it runs into the container's label 2023-02-23 11:35:56 -08:00
Alexander Wang
cd818defc3
add elk version 2023-02-22 18:22:15 -08:00
Alexander Wang
5ff1909935
container dimensions 2023-02-18 23:35:18 -08:00
Júlio César Batista
4b9fc8f7a1
fix near constant removal 2023-02-18 12:20:47 -03:00
Alexander Wang
ffea3c9ab2
fix 2023-02-14 11:34:18 -08:00
gavin-ts
305ed09632
Merge pull request #807 from gavin-ts/limit-oval-aspect-ratio
shapes: limit oval aspect ratio
2023-02-13 11:32:29 -08:00
Alexander Wang
aa1f123f71
more accurate 2023-02-13 11:23:54 -08:00
Gavin Nishizawa
4de1f76751
limit oval shape aspect ratio 2023-02-13 11:23:30 -08:00
Alexander Wang
f14326c334
ok 2023-02-13 10:48:55 -08:00
Alexander Wang
e37fc89bb1
icons in top left of containers 2023-02-13 10:42:47 -08:00
Alexander Wang
112558d901
changelog 2023-02-12 10:28:55 -08:00
Alexander Wang
281f163acf
tests 2023-02-12 10:25:28 -08:00
Alexander Wang
900e4bab83
fix note placement bug 2023-02-12 09:59:44 -08:00
Alexander Wang
019429edcf
try different value 2023-02-10 21:45:31 -08:00
Alexander Wang
0f9d98fa8a
Merge branch 'master' into tune-spacing 2023-02-10 21:27:10 -08:00
Alexander Wang
b30a72b2b3
merge 2023-02-10 21:25:28 -08:00
Alexander Wang
c33676a416
ok 2023-02-10 20:47:58 -08:00
Alexander Wang
8ff4cf97ad
continue connecting directly 2023-02-10 20:41:17 -08:00
Alexander Wang
0877c349ad
comments 2023-02-10 14:30:05 -08:00
Alexander Wang
2e5612697f
ooops 2023-02-10 14:28:52 -08:00
Alexander Wang
279b82b5c6
comments 2023-02-10 14:28:43 -08:00
Alexander Wang
af11b4ddb5
tests 2023-02-10 14:02:57 -08:00
Alexander Wang
9fad105822
fix padding 2023-02-10 13:47:22 -08:00
Alexander Wang
4229f52f1f
oops 2023-02-10 13:38:31 -08:00
Alexander Wang
563c6999d0
cleanup 2023-02-10 12:50:25 -08:00
Alexander Wang
ac960ae488
clean 2023-02-10 12:20:00 -08:00
Alexander Wang
939a5ca088
ok 2023-02-10 12:18:50 -08:00
Alexander Wang
8ec04a1f61
save 2023-02-10 10:25:44 -08:00
Alexander Wang
b12c878cf2
crows feet tuning 2023-02-10 00:57:15 -08:00
Alexander Wang
4aaaf8dfa2
elk 2023-02-09 19:49:53 -08:00
Alexander Wang
dbac4b8cdf
dagre 2023-02-09 19:29:30 -08:00
Alexander Wang
2fb01f34a5
fix 2023-02-09 19:19:40 -08:00
Alexander Wang
b02979f7e4
revert sequence diagram changes 2023-02-09 19:18:24 -08:00
Alexander Wang
50281293e7
save 2023-02-09 12:19:33 -08:00
Alexander Wang
cadaf0c830
save 2023-02-08 22:11:52 -08:00
Alexander Wang
273496bc9e
add experr 2023-02-07 20:47:12 -08:00
Gavin Nishizawa
4bfb6af7e6
Merge branch 'master' into shape-specific-inner-boxes 2023-02-02 20:25:52 -08:00
Gavin Nishizawa
1b1cdaff15
Merge branch 'master' into shape-specific-inner-boxes 2023-02-01 10:31:46 -08:00
Anmol Sethi
30b5b64cad
d2ir: Review fixes #714 2023-01-27 23:19:50 -08:00
Anmol Sethi
2d36513e2c
Merge remote-tracking branch 'upstream/master' into scenarios-a407 2023-01-27 10:51:33 -08:00
Gavin Nishizawa
fd72e10dbc
rename lastGroup to prevGroup 2023-01-27 10:09:38 -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
b2036e8bdf
fix sequence diagram actor shape scaling 2023-01-26 16:44:19 -08:00
Anmol Sethi
5af31670d1
d2compiler: Integrate d2ir (wip) 2023-01-24 03:24:32 -08:00
Anmol Sethi
3e7bdc5468
d2compiler: Integrate d2ir (wip) 2023-01-24 03:24:29 -08:00
Anmol Sethi
c9ef6ab9c9
d2graph: Implement deep copying a graph 2023-01-24 02:56:30 -08:00
Alexander Wang
f595aafcc4
fix self-span in sequence diagrams 2023-01-19 18:09:32 -08:00
Alexander Wang
098fc96bd9
edge case 2023-01-19 15:13:18 -08:00
Alexander Wang
320d631113
fix constant-near panic 2023-01-19 15:03:52 -08:00
Alexander Wang
f688efcb48
propagate elk config for self loop spacing 2023-01-18 14:34:14 -08:00
Gavin Nishizawa
54f34d72ad
extend previous segment to target if last segment is very short 2023-01-12 11:23:23 -08:00
Gavin Nishizawa
25e37fd0c4
handle straight line 2023-01-12 11:23:23 -08:00
Alexander Wang
bb92a1c0fa
ok 2023-01-07 19:46:10 -08:00
Alexander Wang
4b12be7974
Revert "remove inferior stub"
This reverts commit 0db3a193b8.
2023-01-06 12:24:45 -08:00
Alexander Wang
0db3a193b8
remove inferior stub 2023-01-06 12:23:47 -08:00
Alexander Wang
4657542def
labelpos 2023-01-06 12:21:47 -08:00
Alexander Wang
2b3faf8f64
fix dagre edge label overlaps 2023-01-06 12:18:26 -08:00
Alexander Wang
87e05bcdd0
fix near overlapping labels 2023-01-06 11:13:52 -08:00
Alexander Wang
8708bceef0
Merge pull request #563 from alixander/layout-configs
Pass layout configs
2022-12-30 14:31:05 -08:00
Alexander Wang
26be278934
fix elk 2022-12-30 14:28:52 -08:00
Alexander Wang
115d6e4147
default layouts 2022-12-30 13:36:49 -08:00
Alexander Wang
1831af5308
add tags to dagre 2022-12-30 13:26:01 -08:00
Alexander Wang
4b99bc30a7
elk/dagre name consistency 2022-12-30 12:25:33 -08:00
Alexander Wang
eccec7afdd
elk 2022-12-29 22:43:01 -08:00
Alexander Wang
590caa243c
works 2022-12-29 21:11:45 -08:00
Gavin Nishizawa
f8482ee96a
fix elk panic with empty label 2022-12-29 00:00:56 -08:00
Andreas Deininger
7860114515
Fixing typos
Signed-off-by: Andreas Deininger <adeininger@gmail.com>
2022-12-28 20:51:19 +01:00
Alexander Wang
31564f1487
exercise serde 2022-12-26 20:51:37 -08:00
Alexander Wang
849012b9fd
cleanup 2022-12-25 17:43:43 -08:00
Alexander Wang
9eaa4e98c4
cleanup 2022-12-25 16:49:19 -08:00
Alexander Wang
c32bfdda34
constant nears 2022-12-25 16:33:32 -08:00
Alexander Wang
462d22a75f
don't round 2022-12-24 13:39:45 -08:00
Alexander Wang
03e27abb54
elk force order 2022-12-24 13:34:23 -08:00
Alexander Wang
745900b137
fix group label position 2022-12-23 13:16:33 -08:00
Gavin Nishizawa
707f5b9dd7
set dagre ranksep according to max edge label size 2022-12-20 16:05:35 -08:00
Gavin Nishizawa
eed6eadd58
have elk place edge labels on the edge 2022-12-20 15:31:13 -08:00
Gavin Nishizawa
6bb39115d4
place elk edge labels on right with more padding 2022-12-20 15:10:45 -08:00
Gavin Nishizawa
243df4b8e1
use elk layout's edge label position 2022-12-20 14:03:40 -08:00
Gavin Nishizawa
e2b510a1c8
improve label placement for shapes with icons 2022-12-19 20:48:01 -08:00
Gavin Nishizawa
45162a5f6e
update images for elk 2022-12-19 20:15:35 -08:00
Gavin Nishizawa
90846c6599
update label positions for images 2022-12-19 20:02:00 -08:00
Alexander Wang
b5fb81bbb0
Merge branch 'master' into elk-trace-to-shape-border 2022-12-18 20:15:05 -08:00
Alexander Wang
5f1bf2c897
fix sequence edge identify 2022-12-18 20:06:36 -08:00
Gavin Nishizawa
801d307807
trace elk edges to shape border 2022-12-17 20:40:56 -08:00
Alexander Wang
c4483523bf
fix sequence diagram with no messages 2022-12-11 16:35:27 -08:00
Anmol Sethi
b704c6684b
ci: Update [ci-force] 2022-12-07 23:41:33 -08:00
Anmol Sethi
b72959a91f
fmt 2022-12-07 23:22:20 -08:00
Anmol Sethi
d4d6c760e5
d2dagrelayout: Fix regexp
See https://github.com/terrastruct/d2/pull/394#discussion_r1042504655
2022-12-07 19:21:56 -08:00
ejulio-ts
cb414e5382
Merge pull request #397 from ejulio-ts/gh-391-spans
sequence_diagram: Fix span size
2022-12-07 09:48:04 -08:00
Toyam Cox
a1b192723f
fix builds on 32bit systems
@alixander says: This is the highest number we go to:

```
d2/lib/imgbundler/imgbundler.go
Line 25 in 3f62eed
 const maxImageSize int64 = 1 << 25 // 33_554_432
```

This is several shy of 64 bits, and even shy of 32 bits, so let's just
choose 32 bits.
2022-12-07 10:55:46 -05:00
Júlio César Batista
37ff40a3d0
Fix span size 2022-12-06 14:19:50 -08:00
Júlio César Batista
8764dfb78b
Fixes issues with special chars in dagre ids 2022-12-06 13:44:59 -08:00
Alexander Wang
845219d60d
fix sequence distancing 2022-12-05 22:45:11 -08:00
Júlio César Batista
e1685ac09e
Merge branch 'master' into page-render 2022-12-05 19:47:42 -08:00
Júlio César Batista
c6e389ee9a
Set sequence diagrams note to shape: page 2022-12-05 19:39:59 -08:00
Alexander Wang
80d59be429
fix empty sequence panic 2022-12-05 14:51:01 -08:00
Alexander Wang
d0659439af
Merge pull request #364 from alixander/fix-sequence_layout
fix sequence layout placements
2022-12-05 14:46:10 -08:00
Alexander Wang
d90eb355d3
prs 2022-12-05 14:30:40 -08:00
Alexander Wang
f179d8f3cd
Merge branch 'master' into fix-sequence_layout 2022-12-05 13:58:20 -08:00
gavin-ts
213912f476
Merge pull request #360 from gavin-ts/fix-dagre-id-with-newline
fix dagre id with newline
2022-12-05 13:57:39 -08:00
Alexander Wang
72b6101fbf
fix shifting 2022-12-05 13:55:00 -08:00
Alexander Wang
1b99604359
fix nested sequence diagram shape 2022-12-05 13:53:09 -08:00
Júlio César Batista
69385e016f
Fix actor padding for long notes 2022-12-05 13:43:05 -08:00
Gavin Nishizawa
861338e731
use backticks when applicable 2022-12-05 13:24:40 -08:00
Gavin Nishizawa
f5d46b0584
refactor 2022-12-05 13:15:43 -08:00
Júlio César Batista
297ea52b9e
Merge branch 'master' into actors-distance 2022-12-05 13:13:30 -08:00
Gavin Nishizawa
5b5f9e0923
comment 2022-12-05 12:00:10 -08:00
Gavin Nishizawa
53bceb8578
fix dagre layout with \r in IDs 2022-12-05 11:56:26 -08:00
Gavin Nishizawa
8659af5d57
fix unmarshalling id with newlines from dagre 2022-12-05 11:43:27 -08:00
Júlio César Batista
f99cf98864
Tests 2022-12-05 11:36:20 -08:00
Alexander Wang
5deb9b2d7d
blend groups 2022-12-05 11:22:16 -08:00
Júlio César Batista
fdf6699eb8
Merge branch 'master' into actors-distance 2022-12-05 11:11:26 -08:00
Júlio César Batista
a5b713673b
Handle case without edges between actors 2022-12-05 10:59:44 -08:00
Júlio César Batista
c2f516b490
Merge branch 'master' into actors-distance 2022-12-05 10:36:00 -08:00
Júlio César Batista
3eca7bd139
Update tests 2022-12-05 10:33:46 -08:00
Júlio César Batista
04ba174fe5
Handle different actor distances 2022-12-05 10:27:55 -08:00
Júlio César Batista
edb6b857b3
Space actor centers 2022-12-05 10:19:26 -08:00
Alexander Wang
361ae15140
fmt 2022-12-05 10:14:28 -08:00
Alexander Wang
6aaa990390
fix test 2022-12-05 10:11:12 -08:00
Alexander Wang
d7a2e1ac45
fix group padding 2022-12-05 09:54:45 -08:00
Alexander Wang
de3c0518f5
group nesting padding 2022-12-04 23:38:47 -08:00
Alexander Wang
b8f00f32f1
fix groups in dagre 2022-12-04 22:41:24 -08:00
Alexander Wang
83118fb076
no aspect ratio 2022-12-04 22:40:45 -08:00
Alexander Wang
d93833a4f1
nvm 2022-12-04 22:38:43 -08:00
Alexander Wang
0b614b79b3
no aspect ratio actor height 2022-12-04 22:37:42 -08:00
Alexander Wang
dab9865ae3
increase self connection width 2022-12-04 22:34:38 -08:00
Alexander Wang
df81a5aeaa
fix span width 2022-12-04 22:31:37 -08:00
Alexander Wang
c765298e39
nested group styling 2022-12-04 21:57:59 -08:00
Alexander Wang
823c788307
lifeline z index 2022-12-04 21:19:40 -08:00
Alexander Wang
9bf1fb7b72
refactor group check 2022-12-04 21:12:59 -08:00
Alexander Wang
47201373a7
wip: z-indexing group <-> span 2022-12-04 20:53:31 -08:00
Alexander Wang
d5b66d87f0
refactor 2022-12-04 20:26:37 -08:00
Alexander Wang
0f5b14c76a
reduce distance between actors 2022-12-04 20:05:25 -08:00
Alexander Wang
77a87668a7
fix message offset 2022-12-04 19:38:01 -08:00
Alexander Wang
c896b826a9
fix span adjustments 2022-12-04 19:21:13 -08:00
Alexander Wang
11d37cc448
fix messages going over notes 2022-12-04 19:12:49 -08:00
Alexander Wang
b5ff448189
Merge branch 'master' into sequence-diagram-self-edges 2022-12-04 19:04:25 -08:00
Alexander Wang
5b1b5edc86
sequence diagram fixes 2022-12-04 16:02:25 -08:00