Commit graph

305 commits

Author SHA1 Message Date
Alexander Wang
e93682d7f5
fix elk issue when container named root
changelog
2023-04-29 20:27:33 -07:00
Gavin Nishizawa
6d54377fe1
cleanup 2023-04-28 19:50:04 -07:00
Gavin Nishizawa
0f0dd7744a
fast attempt with debt balancing + skip bad rows 2023-04-28 19:50:04 -07:00
Gavin Nishizawa
917b262773
add maximum attempts 2023-04-28 19:50:04 -07:00
Gavin Nishizawa
203cc5e4af
optimizations 2023-04-28 19:50:03 -07:00
Gavin Nishizawa
3937e37589
improve grid expand evenly 2023-04-28 17:59:08 -07:00
Alexander Wang
cd34ddcc4c
model_order cycle breaking elk 2023-04-20 11:44:00 -07:00
Alexander Wang
88e71c3088
fix elk self loop spacing 2023-04-19 20:09:53 -07:00
gavin-ts
a78698610c
Merge pull request #1198 from gavin-ts/refactor-attributes
refactor d2graph.Attributes
2023-04-14 20:18:30 -07:00
Andreas Deininger
6ae417cde9
Fixing typos
Signed-off-by: Andreas Deininger <andreas@deininger.net>
2023-04-14 07:48:22 +02:00
Gavin Nishizawa
214c95eefc
refactor d2graph.Attributes 2023-04-13 20:04:55 -07:00
Gavin Nishizawa
882df2fac9
refactor LabelWidth and LabelHeight to LabelDimensions 2023-04-13 15:43:25 -07:00
gavin-ts
1a81930876
Merge pull request #1178 from gavin-ts/grid-gap-keywords
Grid gap keywords
2023-04-12 15:23:52 -07:00
Gavin Nishizawa
c0e164e44b
rename to horizontal-gap and vertical-gap 2023-04-12 13:51:04 -07:00
Gavin Nishizawa
851af40a8c
fix grid panic with insuffient objects 2023-04-12 11:49:15 -07:00
Gavin Nishizawa
7631efce2b
cleanup 2023-04-11 11:32:35 -07:00
Gavin Nishizawa
d835ef19a9
if storing int and casting float64 each use 2023-04-11 11:20:21 -07:00
Gavin Nishizawa
a7050f3ca7
use grid-gap values for layout 2023-04-10 20:04:25 -07:00
Alexander Wang
dbc3a69951
fix solo near 2023-04-08 10:07:56 -07:00
Alexander Wang
189e5a005c
Merge pull request #1140 from alexstoick/feat/lifeline-inherit-actor-style
Lifeline should inherit the stroke style from the actor
2023-04-07 14:00:12 -07:00
Stoica Alex
2a93d21420
Lifeline should inherit the stroke style from the actor
Fixes #1137
2023-04-07 21:31:08 +01:00
donglixiaoche
b2f905efb8
Merge branch 'master' into near-keys-for-container
Conflicts:
	d2layouts/d2near/layout.go
2023-04-07 10:40:40 +08:00
donglixiaoche
59ef4ad832
fix: cr, attach objects of tempGraph 2023-04-07 10:33:19 +08:00
gavin-ts
b3511d1248
Merge pull request #1122 from gavin-ts/grid-layouts
new grid layout with rows/columns
2023-04-06 19:22:24 -07:00
Gavin Nishizawa
a75d4dd0b9
update keywords rows -> grid-rows 2023-04-06 15:48:01 -07:00
Gavin Nishizawa
37fc3ea8e0
cleanup 2023-04-06 15:37:35 -07:00
Gavin Nishizawa
bab54b4030
cleanup 2023-04-06 14:30:45 -07:00
Gavin Nishizawa
8eb99a46c6
new method for placing nodes across rows 2023-04-05 20:02:57 -07:00
donglixiaoche
e61629e692
fix: cr 2023-04-06 05:00:12 +08:00
Gavin Nishizawa
06a942cf99
rename to grid diagram 2023-04-05 11:15:52 -07:00
Gavin Nishizawa
108faceb99
layout evenly with rows and columns 2023-04-04 20:12:20 -07:00
Gavin Nishizawa
ac0845da1c
center container if growing to fit label 2023-04-04 20:12:20 -07:00
Alexander Wang
cadaaeb21f
add padding between dagre labels 2023-04-04 13:50:12 -07:00
Gavin Nishizawa
7ac72140c7
fixing rows creation 2023-04-04 13:44:41 -07:00
Gavin Nishizawa
a16924752d
finish column logic 2023-04-04 11:38:33 -07:00
donglixiaoche
c77590e5bf
fix: cr 2023-04-04 18:33:23 +08:00
Gavin Nishizawa
c958269b03
more dynamic grid sizing according to node sizes 2023-04-03 21:38:08 -07:00
Gavin Nishizawa
acd0638325
evenly size grid nodes 2023-04-03 13:49:10 -07:00
Gavin Nishizawa
06fb313d3e
values must be positive 2023-04-03 13:49:10 -07:00
Gavin Nishizawa
abe27cdc26
cleanup 2023-04-03 13:49:10 -07:00
Gavin Nishizawa
f8617d1560
refactor 2023-04-03 13:49:10 -07:00
Gavin Nishizawa
d139eeadad
layout with grids 2023-04-03 13:48:38 -07:00
donglixiaoche
a3268f2fd1
fix: cr, a clean spilit for temp graph 2023-03-30 20:31:42 +08:00
donglixiaoche
3d45f6ab51
fix: cr, return value 2023-03-28 08:57:15 +08:00
donglixiaoche
66f620f57b
fix: typo 2023-03-27 22:48:02 +08:00
donglixiaoche
54250d00dd
fix: nil labelPosition 2023-03-27 21:40:36 +08:00
donglixiaoche
a21f5ec438
fix: cr, calc labelPosition 2023-03-27 21:38:11 +08:00
donglixiaoche
77822318aa
fix: cr, use method instead of attribute 2023-03-27 21:38:11 +08:00
donglixiaoche
ebab91b043
fix: cr, delete redundant variable 2023-03-27 21:38:11 +08:00
donglixiaoche
4e4959f39b
fix: cr, delete redundant return value 2023-03-27 21:38:11 +08:00