Gavin Nishizawa
e524f43566
refactor and fix #699
2023-02-03 14:53:17 -08:00
Gavin Nishizawa
1567de64e1
don't set obj.LabelDimensions with padding
2023-02-03 13:53:24 -08:00
Gavin Nishizawa
4bfb6af7e6
Merge branch 'master' into shape-specific-inner-boxes
2023-02-02 20:25:52 -08:00
Anmol Sethi
8860b6b716
d2graph: Sort objects by AST order
2023-02-02 12:24:48 -08:00
Anmol Sethi
9384800435
e2etests/testdata: Fix
2023-02-02 11:55:12 -08:00
Anmol Sethi
09dc9fd12f
Merge remote-tracking branch 'upstream/master' into scenarios-a407
2023-02-02 10:33:31 -08:00
Anmol Sethi
8f58e4ca54
d2ir: Review fixes #714
2023-02-02 10:31:09 -08:00
Anmol Sethi
da500a8437
d2ir: Review fixes #714
2023-02-02 10:31:07 -08:00
Gavin Nishizawa
1b1cdaff15
Merge branch 'master' into shape-specific-inner-boxes
2023-02-01 10:31:46 -08:00
Gavin Nishizawa
491b4b7066
cleanup
2023-01-31 16:19:22 -08:00
Gavin Nishizawa
57fa903fe6
also limit person AR with width/height attributes unless both are entered
2023-01-31 16:08:06 -08:00
Vojtěch Fošnár
61bf09107a
Merge branch 'terrastruct:master' into master
2023-01-29 23:23:22 +01:00
Alexander Wang
b05ec48843
Merge pull request #710 from kevin-david/fonts
...
render: fonts: add bold + italic styles for Source Code Pro
2023-01-29 14:13:31 -08:00
Anmol Sethi
291f2fdfe3
d2ir: Review fixes #714
2023-01-27 23:45:04 -08:00
Anmol Sethi
30b5b64cad
d2ir: Review fixes #714
2023-01-27 23:19:50 -08:00
Anmol Sethi
192cb10a61
d2ir: Review fixes #714
2023-01-27 17:19:55 -08:00
Anmol Sethi
f056700152
d2ir: Review fixes #714
2023-01-27 17:19:12 -08:00
Vojtěch Fošnár
af2be1232f
resolved conflicts, updated tests
2023-01-27 22:30:44 +01:00
Vojtěch Fošnár
462bd1e23d
resolve conflicts
2023-01-27 21:08:01 +01:00
Gavin Nishizawa
c4db001781
fix unlabelled circle/square with desired width/height
2023-01-27 11:51:03 -08:00
Gavin Nishizawa
d6493887d9
cleanup desiredWidth/Height
2023-01-27 11:41:10 -08:00
Gavin Nishizawa
f6caac0127
use label height for padding shapes with icons
2023-01-27 10:57:55 -08:00
Gavin Nishizawa
781194e8ba
add class row ascii diagram
2023-01-27 10:52:46 -08:00
Anmol Sethi
2d36513e2c
Merge remote-tracking branch 'upstream/master' into scenarios-a407
2023-01-27 10:51:33 -08:00
Anmol Sethi
caef5a5a8f
cli: Add support for rendering layers/scenarios/steps
2023-01-27 10:41:25 -08:00
Gavin Nishizawa
c4efe2812f
check message ref is group
2023-01-26 18:39:33 -08:00
Gavin Nishizawa
74b0ed2064
only add message offset after loops in another group
2023-01-26 18:02:32 -08:00
Gavin Nishizawa
162227e196
only add extra x padding for non-special shapes
2023-01-26 16:44:19 -08:00
Gavin Nishizawa
b1beddc9e2
Adjust padding per shape
2023-01-26 16:44:19 -08:00
Gavin Nishizawa
6f26167beb
fix class dimensions
2023-01-26 16:44:19 -08:00
Gavin Nishizawa
0311a3f7d7
use paddingX and paddingY in GetDimensionsToFit
2023-01-26 16:44:19 -08:00
Gavin Nishizawa
23097370e2
set up shape specific inner bounding boxes for labels
2023-01-26 16:43:36 -08:00
Alexander Wang
bea8a47ece
Merge pull request #565 from OneRain233/master
...
Implement the `double_circle` shape including basic shape and the sketch.
2023-01-26 16:30:17 -08:00
Kevin David
9ba1d85d21
d2graph: check that font family is entirely loaded before using it
...
I tested this by removing the changes I added in `d2fonts`, which led to:
```
[21:23:54] info: compiling GetUniqueColumnName-fix.d2...
[21:23:54] err: failed to compile: ruler does not have entire font family SourceCodePro loaded, is a style missing?
```
The error was also rendered in the UI.
2023-01-24 21:25:01 -05:00
Anmol Sethi
310afcdf86
Merge remote-tracking branch 'upstream/master' into scenarios-a407
2023-01-24 15:29:38 -08:00
Alexander Wang
5059085f3c
fix empty labels with class & sql_tables w/ premeasured texts
2023-01-24 14:52:15 -08:00
Anmol Sethi
b350399d66
d2ir: Complete integration across all packages
2023-01-24 03:24:35 -08:00
Anmol Sethi
5af31670d1
d2compiler: Integrate d2ir (wip)
2023-01-24 03:24:32 -08:00
Anmol Sethi
566ea11db7
d2compiler: Integrate d2ir (wip)
2023-01-24 03:24:32 -08:00
Anmol Sethi
154c7e8947
d2compiler: Integrate d2ir (wip)
2023-01-24 03:24:30 -08:00
Anmol Sethi
3e7bdc5468
d2compiler: Integrate d2ir (wip)
2023-01-24 03:24:29 -08:00
Anmol Sethi
989fdb0fe5
d2ir: wip
2023-01-24 03:23:17 -08:00
Anmol Sethi
c9ef6ab9c9
d2graph: Implement deep copying a graph
2023-01-24 02:56:30 -08:00
Anmol Sethi
8ea2c71b99
d2graph: Remove TODO
2023-01-24 02:55:13 -08:00
OneRain2333
344718dad3
Remove double circle shape
2023-01-24 16:21:25 +08:00
OneRain2333
9575c768dc
Make to be a style attribute and remove shape
2023-01-24 16:21:25 +08:00
OneRain2333
8bb86250fb
Add double circle shape
2023-01-24 16:21:25 +08:00
Vojtěch Fošnár
66dc978418
resolved merge conflict
2023-01-15 21:36:43 +01:00
Gavin Nishizawa
7f13be1524
account for leading/trailing newlines when measuring code shapes
2023-01-13 20:04:46 -08:00
Vojtěch Fošnár
a81ab2d73e
support for prefers-color-scheme
2023-01-09 19:16:28 +01:00
Alexander Wang
69c062d8ea
update
2023-01-01 01:46:24 -08:00
Alexander Wang
87f0cc0cfe
fix
2023-01-01 01:34:03 -08:00
Alexander Wang
c04fcc920f
update
2022-12-31 15:59:07 -08:00
Alexander Wang
e8a56bda51
move
2022-12-31 15:54:50 -08:00
Alexander Wang
de0cf47016
default size for no text
2022-12-31 15:50:42 -08:00
Alexander Wang
e2c8b19af9
ignore empty text
2022-12-31 15:21:37 -08:00
Gavin Nishizawa
8b81428693
use header width for sql_tables if larger than row width
2022-12-29 12:01:31 -08:00
Gavin Nishizawa
f418e0681e
cleanup
2022-12-28 21:28:42 -08:00
Gavin Nishizawa
8384d96763
refactor SetDimensions
2022-12-28 21:28:41 -08:00
Gavin Nishizawa
73d1a666e1
cleanup
2022-12-28 21:28:01 -08:00
Gavin Nishizawa
5d4059e470
support setting width/height on non-image shapes
2022-12-28 21:27:33 -08:00
Alexander Wang
3aebfaf1d2
save
2022-12-27 20:29:51 -08:00
Alexander Wang
4cc7dde896
text font sizes and bold, italic, underline
2022-12-25 21:49:26 -08:00
Alexander Wang
849012b9fd
cleanup
2022-12-25 17:43:43 -08:00
Alexander Wang
c32bfdda34
constant nears
2022-12-25 16:33:32 -08:00
Alexander Wang
0adec7fea2
compiler
2022-12-25 13:42:11 -08:00
Alexander Wang
ae2f75890b
fix class header
2022-12-24 16:19:09 -08:00
Alexander Wang
a02779cb7f
use monospace font for class shape
2022-12-24 16:10:58 -08:00
Alexander Wang
64d7d5f1b6
apply themes to tables and classes
2022-12-24 15:56:22 -08:00
Alexander Wang
2a03b65f1c
don't use ruler if doesn't exist
2022-12-23 08:48:54 -08:00
Alexander Wang
227afc45db
update sql texts measure
2022-12-23 00:29:03 -08:00
Alexander Wang
3a9a784342
wip
2022-12-21 23:13:52 -08:00
Alexander Wang
07fb1a3d86
implement sketch
2022-12-21 20:55:27 -08:00
Gavin Nishizawa
018e8a82a3
refactor consts
2022-12-19 21:02:50 -08:00
Gavin Nishizawa
0c71c63b2d
export column name/type dimensions to avoid ruler in renderer
2022-12-19 17:53:58 -08:00
Gavin Nishizawa
abb57adf48
fix rendering table measurement
2022-12-19 17:53:18 -08:00
Gavin Nishizawa
75a21435ca
fix sql_table width measurement
2022-12-19 17:53:18 -08:00
Gavin Nishizawa
1a3511d632
apply stroke and fill to markdown
2022-12-17 21:32:59 -08:00
Alexander Wang
b6ac1e8114
fix serialization casing
2022-12-11 16:17:55 -08:00
ejulio-ts
376e615f93
Merge pull request #361 from ejulio-ts/mask-group-label
...
Mask group label
2022-12-05 21:28:27 -08:00
Alexander Wang
aa672c54ed
don't resolve for top level sequence diagram children
2022-12-05 20:46:06 -08:00
Alexander Wang
fa5cb4ae82
remove debug log
2022-12-05 19:53:41 -08:00
Alexander Wang
546ea0266c
save
2022-12-05 19:50:08 -08:00
Júlio César Batista
6272fec709
Use Blend instead MaskLabel
2022-12-05 15:53:43 -08:00
Júlio César Batista
27996f348a
Merge branch 'master' into mask-group-label
2022-12-05 15:20:23 -08:00
Alexander Wang
d90eb355d3
prs
2022-12-05 14:30:40 -08:00
Alexander Wang
4ed0ebc58b
use new span colors
2022-12-05 14:27:37 -08:00
Alexander Wang
ce9bf38ee3
fix default theme
2022-12-05 14:09:27 -08:00
Alexander Wang
1b99604359
fix nested sequence diagram shape
2022-12-05 13:53:09 -08:00
Júlio César Batista
358a53d815
Mask only labels in sequence diagram groups
2022-12-05 13:32:33 -08:00
Júlio César Batista
73f08a24a0
Merge branch 'master' into mask-group-label
2022-12-05 13:22:46 -08:00
Júlio César Batista
6ad1ae0f24
Remove inner label padding for masks
2022-12-05 12:48:03 -08:00
Alexander Wang
159e2016a9
blend groups
2022-12-05 12:09:32 -08:00
Alexander Wang
bed4ef7fae
fix group classification
2022-12-05 11:36:19 -08:00
Alexander Wang
e0d91d3c15
fix bolding
2022-12-05 10:46:06 -08:00
Alexander Wang
c765298e39
nested group styling
2022-12-04 21:57:59 -08:00
Alexander Wang
9bf1fb7b72
refactor group check
2022-12-04 21:12:59 -08:00
Alexander Wang
4de8a7e1f0
neutral notes
2022-12-04 20:28:24 -08:00
Alexander Wang
d5b66d87f0
refactor
2022-12-04 20:26:37 -08:00
Alexander Wang
e9c9a80edb
actors are B5 fill
2022-12-04 19:57:52 -08:00
Alexander Wang
2b0f2d394f
add check for sequence diagram connection error
2022-12-03 18:17:49 -08:00
Alexander Wang
c4dc93faee
Merge pull request #273 from alixander/self-referential-connections
...
self referencing connections
2022-12-02 20:07:03 -08:00
Alexander Wang
2781d904be
self referencing edges
2022-12-02 19:53:36 -08:00
Júlio César Batista
a2f7abc316
Fix actor font size
2022-12-02 19:15:04 -08:00
Anmol Sethi
d116889fc9
Switch fully to util-go
2022-12-01 11:48:49 -08:00
Anmol Sethi
a05ba67a36
go2: rm -rf
2022-12-01 10:49:15 -08:00
Anmol Sethi
c4ef432daf
Move textmeasure into lib
...
It's not a d2renderer.
2022-12-01 06:51:17 -08:00
Júlio César Batista
a73d9ff7b7
Merge branch 'master' into render-priority
2022-11-30 13:31:32 -08:00
Gavin Nishizawa
53cfa31ee1
render all font sizes in range
2022-11-30 11:44:12 -08:00
Júlio César Batista
684b72eb5a
Change sorting order to be multi level
2022-11-30 11:22:43 -08:00
Júlio César Batista
0fc1294ae6
Rename RenderPriority -> ZIndex
2022-11-29 21:41:32 -08:00
Júlio César Batista
cf527672b1
Fix lint
2022-11-29 21:41:31 -08:00
Júlio César Batista
e7b72b4365
Add RenderPriority to objects and edges
2022-11-29 21:40:50 -08:00
Alexander Wang
edff033308
src change
2022-11-29 17:57:17 -08:00
Alexander Wang
bc21965892
2022-11-29 04:12:23PM
2022-11-29 16:12:23 -08:00
Alexander Wang
a39bfce697
2022-11-29 04:02:37PM
2022-11-29 16:02:37 -08:00
Alexander Wang
b1cfeb19e6
2022-11-28 09:39:36PM
2022-11-28 21:39:36 -08:00
Alexander Wang
1db6939cce
2022-11-28 09:01:42PM
2022-11-28 21:01:42 -08:00
Alexander Wang
72dcdf9cc4
2022-11-27 01:54:41PM
2022-11-27 13:54:41 -08:00
Júlio César Batista
06a30f7820
Rename From/To to Src/Dst
2022-11-16 15:54:34 -03:00
Júlio César Batista
07bd4cca50
Rename rows to columns and omit empty indices
2022-11-16 11:51:55 -03:00
Júlio César Batista
a943bea111
Add [From/To]TableRowIndex to edges
2022-11-15 19:41:44 -03:00
Gavin Nishizawa
bffb018651
markdown code tabsize and measurement accuracy
2022-11-07 18:07:04 -08:00
Alexander Wang
524c089a74
oss
...
Co-authored-by: Anmol Sethi <hi@nhooyr.io>
2022-11-03 06:54:49 -07:00