Commit graph

531 commits

Author SHA1 Message Date
Mayank77maruti
05a8e93379 iteration 2 2025-02-21 17:12:10 +00:00
Mayank77maruti
527edda636 iteration 1 2025-02-21 17:05:31 +00:00
Mayank77maruti
8893981749 initial push 2025-02-21 16:34:23 +00:00
Alexander Wang
9cff0eeaa6
ta 2025-02-03 16:58:19 -07:00
Alexander Wang
b27235a476
d2near: constant nears avoid edge routes 2025-02-03 16:48:59 -07:00
Alexander Wang
b1262daad2
remove redundant elk 2025-01-15 18:24:30 -07:00
Alexander Wang
e723881dfe
migrate layout engines 2025-01-15 16:30:33 -07:00
Alexander Wang
fe36dbe515
d2sequence: fix notes with self messages 2024-12-28 20:35:26 -07:00
Alexander Wang
c680071a56
fix d2sequence tests 2024-11-24 09:57:06 -08:00
Alexander Wang
6035ec7d37
replace cdr.dev/slog dependency with stdlib slog 2024-10-04 15:58:44 -06:00
Alexander Wang
03687c785a
d2sequence: increase distance between label and endpoints 2024-09-14 17:51:39 -06:00
Alexander Wang
7c967954e0
d2sequence: ensure order for child boards 2024-09-11 11:26:37 -06:00
Alexander Wang
2a78e1e9b4
d2sequence: fix long self-reference edge labels 2024-08-07 02:28:18 +08:00
Alexander Wang
9a4125aa5e
d2sequence: fix multiline labels 2024-08-07 02:19:35 +08:00
Alexander Wang
5cbe1f8e28
d2sequence: fix self reference message alignment 2024-08-04 19:02:55 -07:00
Alexander Wang
95136eac4a
d2sequence: fix bounding box of sequence diagrams 2024-08-03 14:00:28 -06:00
Alexander Wang
99843cb9ae
d2sequence: remove global ystep 2024-08-03 10:58:21 -06:00
Alexander Wang
b0a6c01883
d2sequence: self-referential messages account for message height 2024-08-03 10:51:43 -06:00
Alexander Wang
ac25a3009f
d2sequence: edge groups account for edge label heights 2024-08-03 10:08:35 -06:00
Alexander Wang
353e1d767d
fix custom label positions for nodes with constrained widths 2024-05-02 11:55:23 -06:00
Alexander Wang
5abda40ca6
allow minimum dimensions to be less than label dimensions 2024-04-10 10:30:44 -07:00
Gavin Nishizawa
6ec931191f
shift edges endpoints that would become disconnected 2023-12-13 14:30:52 -08:00
Gavin Nishizawa
0aa4418921
cleanup 2023-12-12 17:39:45 -08:00
Gavin Nishizawa
7a5705e143
fix 2023-12-12 16:44:26 -08:00
Gavin Nishizawa
55d43f4800
fix 2023-12-12 16:44:26 -08:00
Gavin Nishizawa
9f63c305a9
hasIcon restore label+icon height adjustment 2023-12-12 16:44:26 -08:00
Gavin Nishizawa
eca0febf84
fix 2023-12-12 16:44:26 -08:00
Gavin Nishizawa
8075bdfa72
move edges with adjustments when cleaning up 2023-12-12 15:49:55 -08:00
Gavin Nishizawa
40e65da0f4
update adjustments 2023-12-12 15:49:54 -08:00
Gavin Nishizawa
a18ce57c51
update elk layout dimension adjustments 2023-12-12 12:47:42 -08:00
Gavin Nishizawa
2edcacffaa
Revert "elk label height"
This reverts commit 018b0d4fa0.
2023-12-12 12:44:57 -08:00
Alexander Wang
018b0d4fa0
elk label height 2023-12-12 12:14:54 -08:00
Alexander Wang
5cdeca30e0
layout, export: icons for special objects 2023-12-12 09:23:17 -08:00
Gavin Nishizawa
f9060a90d6
fix reconnecting nested edges through serialization 2023-11-28 10:26:46 -08:00
Gavin Nishizawa
0bf10f1634
add RoutingPlugin interface that plugins can implement for cross-graph edge routing 2023-11-21 12:47:26 -08:00
Gavin Nishizawa
b9a5dad820
save cloud innerbox aspect ratio 2023-11-16 18:37:37 -08:00
Gavin Nishizawa
ade01c8c54
update cloud shape innerBox selection according to content dimensions 2023-11-16 17:33:45 -08:00
Gavin Nishizawa
f132b3aed6
cleanup 2023-11-15 21:38:36 -08:00
Gavin Nishizawa
1786f57e66
account for shapes that need a larger innerBox 2023-11-15 21:38:36 -08:00
Gavin Nishizawa
f5a4e4f059
save 2023-11-15 21:38:36 -08:00
gavin-ts
6324d67516
Merge pull request #1729 from gavin-ts/fix-external-grid-cell-container-edge
fix panic with unrouted edge to grid cell container
2023-11-15 21:32:06 -08:00
Gavin Nishizawa
67358b72f3
center grid when growing for desired width/height 2023-11-14 11:06:49 -08:00
Gavin Nishizawa
b87cc8e7e1
update grid size with desiredWidth/Height after adjusting for label/icon 2023-11-14 10:51:52 -08:00
Gavin Nishizawa
ecad4e163b
actual fix: correct stale object references 2023-11-13 21:55:33 -08:00
Gavin Nishizawa
9e34e91d7d
fix panic with unrouted edge to grid cell container 2023-11-13 18:36:42 -08:00
Gavin Nishizawa
26df5a70f6
fix positioning 2023-11-08 20:29:07 -08:00
Gavin Nishizawa
5029f6ce34
cleanup refactor 2023-11-08 17:12:12 -08:00
Gavin Nishizawa
0571137e1d
positioning 2023-11-08 16:22:27 -08:00
Gavin Nishizawa
a363584245
position around grid label 2023-11-08 16:22:26 -08:00
Gavin Nishizawa
107b556c20
don't overwrite grid label position 2023-11-08 16:22:26 -08:00
Gavin Nishizawa
eb755db91c
use more efficient label position type 2023-11-07 16:27:45 -08:00
Michał Wieluński
b76eaa4433
Fix rowCenter calculation in ELK
Co-authored-by: gavin-ts <85081687+gavin-ts@users.noreply.github.com>
2023-10-25 08:53:54 +02:00
Michał Wieluński
28c04bbcb2
use ports in ELK plugin
fixes #1429
2023-10-22 13:46:06 +02:00
Gavin Nishizawa
40e8cc8530
cleanup 2023-10-20 16:21:41 -07:00
Gavin Nishizawa
9ab1971d54
elk: don't grow node if there is a width/height input 2023-10-20 16:13:54 -07:00
Gavin Nishizawa
00a3d32d81
cleanup, comment 2023-10-16 20:37:56 -07:00
Gavin Nishizawa
bd6c1d1af1
update sizing adjustments pre/post grid layout 2023-10-16 17:34:30 -07:00
Gavin Nishizawa
514bb89472
improve margin adjustments for outside labels 2023-10-16 16:45:18 -07:00
Gavin Nishizawa
c647c6fb2e
update grid cell label/icon positioning 2023-10-16 16:45:18 -07:00
Gavin Nishizawa
aca528c9e1
fix typo bug 2023-10-05 18:48:59 -07:00
Gavin Nishizawa
2f71d575df
handle lifeline edges 2023-10-02 11:05:19 -07:00
Gavin Nishizawa
2fe494f678
re-associate edge references after nested layout 2023-10-02 11:05:19 -07:00
Gavin Nishizawa
ef70843c83
implement simple edge routing across nested graphs 2023-10-02 11:05:18 -07:00
Gavin Nishizawa
7b28c9290c
update strategy for nested grid cell layout 2023-09-27 17:00:58 -07:00
Gavin Nishizawa
c9d5003343
fix 2023-09-27 17:00:57 -07:00
Gavin Nishizawa
5ddfdd42a1
cleanup 2023-09-27 17:00:05 -07:00
Gavin Nishizawa
e55075fc37
cleanup 2023-09-26 18:07:49 -07:00
Gavin Nishizawa
d3721fd4f0
refactor, fix 2023-09-26 18:07:49 -07:00
Gavin Nishizawa
69405167be
account for icons 2023-09-26 18:07:49 -07:00
Gavin Nishizawa
b9c139de59
layout grid including outside label sizes 2023-09-26 18:07:49 -07:00
gavin-ts
ae128ac435
Merge pull request #1619 from gavin-ts/fix-dagre-id-registration
Fix dagre id registration
2023-09-25 21:56:50 -07:00
Gavin Nishizawa
09d6245269
fix dagre id registration 2023-09-25 16:33:23 -07:00
Gavin Nishizawa
86de2cd414
fix 2023-09-25 16:04:13 -07:00
Gavin Nishizawa
2d00cb4bef
object.Children map may no longer exist 2023-09-25 16:04:13 -07:00
Gavin Nishizawa
e40ef6dfb1
fix stale *Object pointers after coreLayout 2023-09-25 16:04:13 -07:00
Gavin Nishizawa
451f0e0208
create object_mapper.go 2023-09-25 10:25:13 -07:00
Gavin Nishizawa
412ad4a6db
create dagre object mapper to manage ids for dagre to use 2023-09-25 10:23:00 -07:00
Gavin Nishizawa
31252e6752
cleanup 2023-09-22 20:12:20 -07:00
Gavin Nishizawa
cee6a92722
cleanup 2023-09-21 21:02:33 -07:00
Gavin Nishizawa
9ecbc61945
cleanup 2023-09-21 20:41:06 -07:00
Gavin Nishizawa
0129ec4497
fix sequence in grid cell 2023-09-21 20:34:47 -07:00
Gavin Nishizawa
1baac61711
fix multiple sequence diagram inject order 2023-09-21 19:52:50 -07:00
Gavin Nishizawa
d6a543219c
empty sequence 2023-09-21 19:52:50 -07:00
Gavin Nishizawa
8ea2d96821
fix order of added sequence edges 2023-09-21 19:52:50 -07:00
Gavin Nishizawa
8bb1e3c473
error handling 2023-09-21 19:52:50 -07:00
Gavin Nishizawa
593bea6982
fix root grid shift 2023-09-21 19:52:50 -07:00
Gavin Nishizawa
a5dec20dd4
fix queue 2023-09-21 19:52:49 -07:00
Gavin Nishizawa
596cd5ed06
maintain order 2023-09-21 19:52:49 -07:00
Gavin Nishizawa
6d39f96a73
fix empty grid 2023-09-21 19:52:49 -07:00
Gavin Nishizawa
538d6920c8
icon position 2023-09-21 19:52:49 -07:00
Gavin Nishizawa
0fbc921248
fix extracting near subgraphs 2023-09-21 19:52:49 -07:00
Gavin Nishizawa
1c8df051b9
refactor, fix 2023-09-21 19:43:24 -07:00
Gavin Nishizawa
4385e63edd
fix containers in grid layout 2023-09-21 19:40:46 -07:00
Gavin Nishizawa
2cb2b406e6
cleanup 2023-09-21 19:40:29 -07:00
Gavin Nishizawa
bff1e0b066
cleanup 2023-09-21 19:38:40 -07:00
Gavin Nishizawa
96254b56ed
fix 2023-09-21 19:37:47 -07:00
Gavin Nishizawa
e253ab80bb
wip 2023-09-21 19:36:01 -07:00
Gavin Nishizawa
37351436a4
wip 2023-09-21 19:35:54 -07:00
Gavin Nishizawa
b7791c83ea
wip 2023-09-21 19:35:50 -07:00
Gavin Nishizawa
e83ac4c3ac
seq wip 2023-09-21 13:17:17 -07:00