Commit graph

402 commits

Author SHA1 Message Date
Alexander Wang
97cbd76178
fix &leaf filter 2025-02-04 17:32:45 -07:00
Alexander Wang
f2021275ac
d2ir: fix deleting nested edge 2025-01-31 14:32:27 -07:00
Alexander Wang
c12a4f6db0
implement connected filter 2025-01-20 18:55:23 -08:00
Alexander Wang
8bfb5d73c8
implement leaf filter 2025-01-20 18:47:26 -08:00
Alexander Wang
8f4f430382
add test 2025-01-20 14:54:07 -08:00
Alexander Wang
af781f5e4d
ta 2025-01-08 16:52:26 -07:00
Alexander Wang
232c47d21a
set the ast range path 2025-01-08 16:42:44 -07:00
Alexander Wang
9de283cd38
d2compiler: validate that reserved keywords have values 2024-12-14 22:12:41 -07:00
Alexander Wang
e6cedef763
ta 2024-12-14 19:54:49 -07:00
Alexander Wang
74f708a2ea
allow animated: true for shape 2024-12-14 19:35:18 -07:00
Alexander Wang
5b1122ca72
remove redundant test 2024-12-14 14:06:28 -07:00
Daniel Suh
e2be343198
Removed unneeded line 2024-12-14 13:58:51 -07:00
Daniel Suh
e2da1eac16
Fix changes 2024-12-14 13:58:50 -07:00
Daniel Suh
b4891900d1
fix logic 2024-12-14 13:58:46 -07:00
Daniel Suh
60c7c5d1f7
refactor 2024-12-14 13:58:46 -07:00
Daniel Suh
ae827b1651
link security + test 2024-12-14 13:58:46 -07:00
Daniel Suh
95d886b936
refactor code changes into compile.go 2024-12-14 13:58:45 -07:00
Daniel Suh
a5bf9c1b4d
fix requested changes 2024-12-14 13:58:45 -07:00
Alexander Wang
3484619383
d2compiler: fix globs with board imports 2024-12-12 22:53:01 -07:00
Alexander Wang
024faad406
compiler: allow non-http scheme url links 2024-12-06 03:17:41 -08:00
Alexander Wang
1ecadc576c
fix tests 2024-11-24 11:03:03 -08:00
Alexander Wang
7ea3aa2737
apply to edges 2024-11-24 10:45:06 -08:00
Alexander Wang
96288dd369
fix id/idval 2024-11-23 20:41:57 -08:00
Alexander Wang
b1a318631b
fix reserved casing 2024-11-23 19:14:00 -08:00
Alexander Wang
062faa41b8
go through all errorfs 2024-11-23 18:56:18 -08:00
Alexander Wang
8802676b3c
reserved keywords must be unquoted 2024-11-23 18:40:36 -08:00
Alexander Wang
271662b546
tests 2024-11-21 19:45:59 -08:00
Alexander Wang
b4382a6793
markdown: sanitize links 2024-11-18 09:28:06 -08:00
Alexander Wang
7e6a3d8132
d2ir: replace substitutions in markdown 2024-11-18 07:02:45 -08:00
Alexander Wang
c3fbf873bf
add test 2024-11-17 21:13:06 -08:00
Alexander Wang
1545ddfbb1
d2compile: invalidate self-links 2024-11-08 14:28:33 -07:00
Alexander Wang
db83fb8d1a
fix double globs in multiple scenarios 2024-11-05 14:32:39 -07:00
Alexander Wang
2546618ebe
fix setting board label with primary 2024-10-30 12:06:39 -06:00
Alexander Wang
dc5c5e2a93
better detection of empty boards 2024-10-23 17:50:13 -06:00
Alexander Wang
1f9e1ea2cf
change to interface{} 2024-10-15 15:45:17 -07:00
Alexander Wang
32e3808856
pass arbitrary vars 2024-10-15 12:52:58 -07:00
Alexander Wang
420fa3d184
d2compiler: disallow invalid board links 2024-09-25 10:06:42 -06:00
Alexander Wang
28e1242aef
ta 2024-09-24 21:41:47 -06:00
Alexander Wang
0eb465bdc5
d2compile: fix ordering substitutions 2024-09-24 21:17:05 -06:00
Alexander Wang
24f9150091
d2ir: fix importing scopes 2024-09-23 06:54:54 -06:00
Alexander Wang
61bd169026
d2ir: fix import url link 2024-09-17 13:44:49 -06:00
Alexander Wang
de518f5c5e
d2fmt: lowercase reserved keywords 2024-09-15 10:46:47 -06:00
Alexander Wang
4e93f70db3
d2ir/imports: fix removing parent scope of nested import fields/edges 2024-09-11 11:26:33 -06:00
Alexander Wang
96b386a26d
globs: filter works with default values 2024-09-10 11:43:46 -06:00
Alexander Wang
84ee4ef4a2
fix chained imports and underscore links 2024-09-06 14:58:29 -06:00
Alexander Wang
e93a60dea1
prevent oob 2024-08-26 21:27:56 -06:00
Alexander Wang
1d6adef94b
allow unfound boards 2024-08-26 17:22:25 -06:00
Alexander Wang
7363608615
fix importing icon.near field 2024-08-26 14:12:58 -06:00
Alexander Wang
a72126ae51
d2ir: enable linking beyond board root 2024-08-26 13:51:26 -06:00
Alexander Wang
9c40e420f2
d2compiler: allow children for sequence diagram image shapes 2024-08-17 09:04:01 +08:00
Alexander Wang
dc56649a9b
ta 2024-08-14 08:40:46 +08:00
Alexander Wang
b70f9783e2
d2compiler: newlines in sql_tables are made invalid 2024-08-13 22:36:56 +08:00
Alexander Wang
0fa89bd81c
d2ir: use current var stack 2024-08-07 02:44:41 +08:00
Alexander Wang
32ece4a642
d2ir: fix glob applications to multiple scenarios 2024-07-27 10:01:21 -06:00
Alexander Wang
a7b55fc830
add test 2024-07-25 18:36:25 -06:00
Alexander Wang
9e4742a41a
fix non-spread import links 2024-07-19 15:25:58 -06:00
Alexander Wang
cf81d7c033
d2ir: fix link panic 2024-07-19 15:09:05 -06:00
Alexander Wang
13e6a6047d
fix tests 2024-07-18 16:18:41 -06:00
Alexander Wang
30d74384ae
allow pattern globs in values 2024-07-18 16:05:49 -06:00
Alexander Wang
9857e92b40
fix import underscore links 2024-07-17 22:11:55 -06:00
Alexander Wang
bb99a16978
fix edge case 2024-07-15 15:06:25 -06:00
Alexander Wang
d608740b1c
d2compiler: fix underscore sibling edge case 2024-07-13 17:07:09 -06:00
Alexander Wang
26ded98f2e
d2compiler: fix underscore links 2024-07-13 08:39:35 -06:00
Alexander Wang
09efb7af19
fix importing nested boards 2024-07-13 08:02:21 -06:00
Alexander Wang
31f2ca66b8
test 2024-06-05 15:11:07 -06:00
Alexander Wang
613980ef69
d2oracle:fix nested scenario 2024-06-03 13:40:13 -06:00
Alexander Wang
676e7d2e18
add test 2024-04-17 14:49:47 -07:00
Alexander Wang
9ed7093527
test 2024-03-29 00:40:22 -07:00
Alexander Wang
b0d27a1948
add 'none' to fill-pattern options 2024-03-25 14:41:15 -07:00
Alexander Wang
4ffe2409a7
validate position keywords 2024-03-15 15:26:00 -07:00
Alexander Wang
382f498688
add shape hierarchy 2024-03-15 10:00:40 -07:00
Alexander Wang
453c24388a
d2ir: fix glob applications on edges 2024-03-06 22:50:42 -08:00
Alexander Wang
49a42edeec
prevent near special 2024-02-27 13:17:32 -08:00
Alexander Wang
3563b15933
no inheriting label 2024-02-14 18:01:31 -08:00
Alexander Wang
0d9328b9e5
fix nested connection implicit delete 2024-02-08 22:28:32 -08:00
Alexander Wang
9a272cb3f7
fix d2oracle editing an imported board 2024-01-21 11:47:17 -08:00
Alexander Wang
336789c93f
expose import stack 2023-12-24 22:04:26 -08:00
Alexander Wang
a098ba80ec
validate 2023-12-14 11:35:49 -08:00
Alexander Wang
27ea8314e9
customize theme colors in vars-config 2023-12-14 11:35:49 -08:00
Alexander Wang
87736b1f11
d2ir: fix glob edge with common glob 2023-11-08 15:02:09 -08:00
Alexander Wang
ffe5a1fe86
compiler: fix vars crashing. Change scoping behavior 2023-11-01 12:26:17 -07:00
Alexander Wang
5c6a94a6ca
compiler: Fix compiler errors of keys in globs 2023-10-31 15:55:25 -07:00
Gavin Nishizawa
2893a48191
error using source/target-arrowhead on shape 2023-10-27 21:00:46 -07:00
Gavin Nishizawa
70b46bacd0
add no_arrowheads_in_shape compiler test 2023-10-27 21:00:16 -07:00
Michał Wieluński
448b51c345
fix invisible null constraints in sql_table
fixes #1655
2023-10-13 10:33:38 +02:00
Gavin Nishizawa
142f637b6a
add compile test 2023-10-05 13:11:03 -07:00
Gavin Nishizawa
84affc96d1
add validation for sequence diagram edges to descendant 2023-10-02 11:05:20 -07:00
Gavin Nishizawa
a8af739064
update compile test for edges to descendant from subgraph container 2023-10-02 11:05:20 -07:00
Gavin Nishizawa
2a9acd06aa
cleanup validation 2023-10-02 11:05:19 -07:00
Gavin Nishizawa
b41a9e4e96
update validation and test 2023-10-02 11:05:19 -07:00
Gavin Nishizawa
97488fe2d8
updating validation 2023-10-02 11:05:19 -07:00
Gavin Nishizawa
8947e45a81
disable validation 2023-10-02 11:05:18 -07:00
Gavin Nishizawa
c228b400b2
disable compiler validation 2023-10-02 11:05:18 -07:00
Gavin Nishizawa
17f2545e75
improve grid edge validation, messages, and test 2023-09-28 13:55:20 -07:00
Gavin Nishizawa
a43aae9d1a
update grid edge validation and test 2023-09-28 13:55:19 -07:00
Gavin Nishizawa
bb79c30fd8
updating compile edge validation 2023-09-28 13:55:19 -07:00
Gavin Nishizawa
3aed2c4110
update compile test 2023-09-28 13:55:19 -07:00
Gavin Nishizawa
ceaf2fb681
remove compile error for nested grids 2023-09-28 11:25:16 -07:00
Gavin Nishizawa
15a22000a7
remove compile error for nested grid edge 2023-09-27 15:19:08 -07:00
Gavin Nishizawa
20190c1224
add test 2023-09-22 20:01:31 -07:00