Gavin Nishizawa
fc06b09df6
validate nested grid edges (not implemented yet)
2023-09-13 20:27:17 -07:00
Gavin Nishizawa
3e08f51c66
consider root level of extracted subgraph
2023-09-05 19:04:17 -07:00
Alexander Wang
bae5705674
setup imports with tests
2023-08-04 20:16:25 -07:00
Alexander Wang
45b396c894
config vars
2023-07-20 16:08:08 -07:00
gavin-ts
6b65f298b2
Merge pull request #1453 from gavin-ts/dagre-label-positions
...
dagre adjustments for custom label positions
2023-07-20 16:01:10 -07:00
Gavin Nishizawa
09174c17b8
check for overlaps with children
2023-07-19 17:42:21 -07:00
Gavin Nishizawa
b1cb08027e
update tracing to label box
2023-07-14 13:25:30 -07:00
Gavin Nishizawa
a32319d598
fix dagre_broken_arrowhead
2023-07-13 13:56:12 -07:00
Gavin Nishizawa
e52f0bb8ba
fix tracing edge to label with multiple intersections
2023-07-13 13:56:12 -07:00
Gavin Nishizawa
b6795e65e1
fixes
2023-07-13 13:56:11 -07:00
Gavin Nishizawa
f4854bf43d
fix 3d/multiple
2023-07-13 13:56:11 -07:00
Alexander Wang
85cf491d74
quotes
2023-07-11 14:56:09 -07:00
Alexander Wang
2cce7a89c8
Revert "portal keyword"
...
This reverts commit 92cfc5c40a .
2023-07-01 20:31:45 -07:00
Alexander Wang
92cfc5c40a
portal keyword
2023-07-01 16:36:33 -07:00
gavin-ts
aa321c2066
Merge pull request #1438 from gavin-ts/set-label-icon-position
...
use specified label/icon position
2023-06-26 11:15:18 -07:00
Alexander Wang
80ddea94fa
set on edge. fix arrowhead setting case
2023-06-25 11:51:21 -07:00
Gavin Nishizawa
af32907a8a
user-specified label/icon positions
2023-06-22 19:17:56 -07:00
Alexander Wang
6f9e478f59
label and icon position attributes
2023-06-22 16:13:08 -07:00
Alexander Wang
a1df49c21e
cleanup
2023-06-20 18:56:04 -07:00
Alexander Wang
21d2c44413
set wip
2023-06-20 18:56:03 -07:00
Alexander Wang
1ff119d803
baseAST
2023-06-20 18:56:02 -07:00
Gavin Nishizawa
14300dc9f8
update leading/trailing accounting
2023-06-19 17:09:36 -07:00
Gavin Nishizawa
14afd8c433
improve code measurement and rendering
2023-06-19 17:09:36 -07:00
Gavin Nishizawa
4a9a5119ed
fix grid label font size in tala
2023-06-15 14:35:36 -07:00
Alexander Wang
8b8afb2638
fix idval edge case
2023-06-12 11:26:51 -07:00
Alexander Wang
d2d78b68c5
make Texts() find recursively
2023-06-11 18:34:12 -07:00
Gavin Nishizawa
07390c7ae0
also trace in elk
2023-06-08 14:20:37 -07:00
Alexander Wang
b5f8a0223e
[ci-force] fix
2023-06-05 11:46:38 -07:00
Alexander Wang
4147c4506c
tests
2023-06-05 11:33:34 -07:00
satoqz
78995c38bd
Merge branch 'terrastruct:master' into master
2023-06-03 13:57:52 +02:00
satoqz
430ff4cab9
join constraints with comma
2023-06-03 13:54:06 +02:00
Gavin Nishizawa
a2ccb6a3dc
also update ShiftDescendants
2023-06-02 15:52:06 -07:00
Gavin Nishizawa
4015a48664
fix dagre shifting connection start past 2nd point
2023-06-02 15:52:06 -07:00
Alexander Wang
69f40ae9fb
fix
2023-05-31 23:28:33 -07:00
Alexander Wang
e998a95b96
d2ir: prevent illegal non-tail keywords
2023-05-31 23:04:09 -07:00
Gavin Nishizawa
0a78ee87eb
factor out d2graph/layout.go
2023-05-31 11:03:43 -07:00
Gavin Nishizawa
6d8dde153e
adjust grid for outside top labels
2023-05-30 11:08:05 -07:00
Gavin Nishizawa
182af8dc39
comments, renaming
2023-05-26 12:37:51 -07:00
Gavin Nishizawa
d06d797025
refactor/cleanup
2023-05-25 19:14:11 -07:00
Gavin Nishizawa
6fc9ffa04d
fixes, cleanup
2023-05-24 20:07:10 -07:00
Gavin Nishizawa
6f9ad8d6dd
fix tracing edge to multiple/3d border
2023-05-24 20:07:10 -07:00
Gavin Nishizawa
3ce0b1439e
shift descendants
2023-05-24 20:07:10 -07:00
Gavin Nishizawa
aff2c5c68e
layout nested grids
2023-05-10 12:57:38 -07:00
Gavin Nishizawa
939eb500da
layout nested grids
2023-05-10 12:57:07 -07:00
satoqz
870ede1e1e
fix bug
2023-05-08 22:57:27 +02:00
Gavin Nishizawa
45d798dc53
simplify func
2023-05-04 20:58:39 -07:00
Gavin Nishizawa
d116f7d918
size grid container according to shape
2023-05-04 16:40:59 -07:00
satoqz
14f88e2db9
address code review
2023-05-03 13:42:31 +02:00
satoqz
c9517b1978
tweak constraint width calculation
2023-05-01 14:13:52 +02:00
satoqz
fd8eee7219
implement compiler changes
2023-05-01 13:59:57 +02:00
satoqz
a3afa11830
Merge branch 'terrastruct:master' into master
2023-04-30 22:32:08 +02:00
satoqz
dc14418ace
add "PK FK" constraint to sql_table
2023-04-25 16:48:06 +02:00
Gavin Nishizawa
e6e9673ddd
arrowhead refactor
2023-04-24 18:32:24 -07:00
Antoine Poivey
760dbfe5ae
merge with master
2023-04-20 16:48:52 +02:00
Gavin Nishizawa
71d880c3e1
enforce min size for text shapes
2023-04-18 13:01:14 -07:00
Gavin Nishizawa
cd1f802d3a
remove d2graph edge.MinWidth MinHeight
2023-04-17 15:02:22 -07:00
Gavin Nishizawa
6e4faefb4b
position arrowhead labels
2023-04-17 13:01:38 -07:00
Gavin Nishizawa
5e5f9f476c
set arrowhead label dimensions
2023-04-17 13:01:38 -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
Antoine Poivey
ed79ccae74
feat: revert percentage border-radius. Accept higher border-radius value and limit it to half of the smaller shape side to be rendered as a pill
2023-04-13 16:20:31 +02:00
Gavin Nishizawa
8b791c7ed4
don't increase font size for md text if container
2023-04-12 20:19:36 -07:00
Gavin Nishizawa
d02e1ebb52
update markdown text measurement and rendering to use font-size
2023-04-12 20:14:45 -07:00
Gavin Nishizawa
c0e164e44b
rename to horizontal-gap and vertical-gap
2023-04-12 13:51:04 -07:00
Gavin Nishizawa
c20c122ee4
add grid-gap keywords
2023-04-10 18:18:48 -07:00
Alexander Wang
70b3dd7b87
add text-transform as keyword
2023-04-08 12:24:29 -07:00
Alexander Wang
343b9daaca
add space
2023-04-08 11:35:54 -07:00
Stoica Alex
a260068d2c
Add text-transform attribute to the style block
...
This provides an option to override the functionality provided by the
theme, or apply `text-transform` outside of the theme.
The functionality of the `text-transform` is as below:
- `text-transform: none` - will disable **any** transformation (like the uppercasing by `terminal` theme)
- `text-transform: uppercase` (uppercase not upper as per your message) - will force all characters into uppercase.
- `text-transform: lowercase` - will force all characters into lowercase.
- `text-transform: capitalize` - will uppercase the first letter of every word
In addition, this commit introduces:
- helper methods on the `d2graph.Style` struct to determine the type of
`text-transform` to be applied.
- `ApplyTextTransform` method on the `d2graph.Attributes` which will
transform the `Label.Value` to the correct text case.
2023-04-08 18:56:13 +01:00
Alexander Wang
305c72d239
implement classes
2023-04-07 09:57:51 -07:00
donglixiaoche
b2f905efb8
Merge branch 'master' into near-keys-for-container
...
Conflicts:
d2layouts/d2near/layout.go
2023-04-07 10:40:40 +08: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
Antoine Poivey
e59a50fd08
merge with master
2023-04-06 19:04:53 +02:00
Gavin Nishizawa
06a942cf99
rename to grid diagram
2023-04-05 11:15:52 -07:00
Gavin Nishizawa
bce774fd4a
validate edges
2023-04-04 18:45:08 -07:00
donglixiaoche
7a395ecf71
fix: cr, OutNearContianer
2023-04-05 08:31:23 +08:00
Gavin Nishizawa
c958269b03
more dynamic grid sizing according to node sizes
2023-04-03 21:38:08 -07:00
Gavin Nishizawa
d139eeadad
layout with grids
2023-04-03 13:48:38 -07:00
donglixiaoche
063d438780
fix: find outer near contaienr
2023-03-31 22:54:44 +08:00
donglixiaoche
cea4355341
fix: cr, validation for near obj connect to outside
2023-03-31 22:31:43 +08:00
donglixiaoche
9089253872
Merge branch 'master' into near-keys-for-container
2023-03-31 21:18:46 +08:00
Alexander Wang
76cc889c18
fix latex uppercasing
2023-03-29 20:11:56 -07:00
Gavin Nishizawa
4e2821de52
consider bold edge labels
2023-03-29 16:41:30 -07:00
donglixiaoche
3d45f6ab51
fix: cr, return value
2023-03-28 08:57:15 +08:00
donglixiaoche
77822318aa
fix: cr, use method instead of attribute
2023-03-27 21:38:11 +08:00
donglixiaoche
df19311f9b
fix: ignore objects inside near container when calc boundingBox
2023-03-27 21:38:10 +08:00
Alexander Wang
436531dbc2
paper pattern
2023-03-20 19:08:56 -07:00
Alexander Wang
ed2efda29a
don't uppercase code blocks
2023-03-17 20:20:30 -07:00
Antoine Poivey
58b596854b
merge with master
2023-03-17 18:54:12 +01:00
Antoine Poivey
cd1027314e
feat: check border-radius value value before checking its decimals. New rx and ry compute method.
2023-03-17 18:52:21 +01:00
Alexander Wang
65d36215f9
fix monospaced edge labels
2023-03-16 15:02:06 -07:00
Alexander Wang
384cc6e74b
[ci-base] apply caps lock to table/class headers
2023-03-16 12:21:29 -07:00
Alexander Wang
1c67286f85
[ci-base] fix again
2023-03-16 11:01:25 -07:00
Alexander Wang
64836ce827
fix
2023-03-16 10:48:54 -07:00
Alexander Wang
e11d4f4e69
apply theme to measured too
2023-03-16 10:35:38 -07:00
Alexander Wang
c30887b363
new fill-patterns, grayscale
2023-03-15 23:02:17 -07:00
Alexander Wang
4c8c2b1ab5
define new theme
2023-03-15 17:54:34 -07:00
Alexander Wang
366a36df67
compiler
2023-03-13 20:07:13 -07:00