Commit graph

695 commits

Author SHA1 Message Date
Gavin Nishizawa
2203246b3c
support multiboard rendering in e2e tests 2023-04-10 14:12:23 -07:00
Gavin Nishizawa
ab8b163aab
update test 2023-04-10 10:35:16 -07:00
Gavin Nishizawa
4bfbaba301
add grid_in_constant_near test 2023-04-10 10:34:49 -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
dbc3a69951
fix solo near 2023-04-08 10:07:56 -07:00
Bernard Xie
bceb7e9104
markdown class has to have diagramHash targeting 2023-04-07 16:45:57 -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
Alexander Wang
305c72d239
implement classes 2023-04-07 09:57:51 -07:00
Alexander Wang
ad880fa9be
Merge pull request #1090 from alixander/scenarios-bug
fix scenarios/steps inheritence
2023-04-06 22:27:03 -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-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
Antoine Poivey
e59a50fd08
merge with master 2023-04-06 19:04:53 +02:00
Antoine Poivey
72efc70ad0
add tests 2023-04-06 18:53:54 +02:00
Gavin Nishizawa
8b3ba86da3
update test 2023-04-05 20:03:07 -07:00
Alexander Wang
a2cffc9341
fix inheritence bug 2023-04-05 19:29:08 -07:00
Gavin Nishizawa
44f2d7a47f
update grid_tests 2023-04-05 11:03:04 -07:00
Gavin Nishizawa
0dc6a808e3
update test 2023-04-04 20:23:18 -07:00
Gavin Nishizawa
18e72880e0
add executive_grid test 2023-04-04 20:19:42 -07:00
Gavin Nishizawa
69ceb5be1a
add grid_tests test 2023-04-04 20:12:21 -07:00
Gavin Nishizawa
d7fd7d73c3
update test 2023-04-04 14:04:20 -07:00
Alexander Wang
cadaaeb21f
add padding between dagre labels 2023-04-04 13:50:12 -07:00
Gavin Nishizawa
bcc4ce1e92
update test 2023-04-04 13:47:51 -07:00
Gavin Nishizawa
a9a7d23ffd
update test 2023-04-04 13:45:16 -07:00
Gavin Nishizawa
7ac72140c7
fixing rows creation 2023-04-04 13:44:41 -07:00
Gavin Nishizawa
bb090becb8
update tests 2023-04-03 21:38:31 -07:00
Gavin Nishizawa
c958269b03
more dynamic grid sizing according to node sizes 2023-04-03 21:38:08 -07:00
Gavin Nishizawa
0ed4bfe244
add dagger_grid test 2023-04-03 21:36:43 -07:00
Gavin Nishizawa
13a8ca0e9f
update test 2023-04-03 13:49:36 -07:00
Gavin Nishizawa
67ca089a4b
update test 2023-04-03 13:49:09 -07:00
Gavin Nishizawa
5b22382cfd
add teleport_grid test 2023-04-03 13:48:20 -07:00
donglixiaoche
ffa39a0ad8
chore: regenerate testcases 2023-03-31 21:44:10 +08:00
donglixiaoche
9089253872
Merge branch 'master' into near-keys-for-container 2023-03-31 21:18:46 +08:00
Alexander Wang
e9d9ee5db2
regen 2023-03-29 21:07:05 -07:00
Alexander Wang
ab25a7a8ab
fix origami theme 2023-03-29 21:05:42 -07:00
gavin-ts
cc893945da
Merge pull request #1101 from gavin-ts/arrowhead-scaling
adjust arrowhead scaling
2023-03-29 20:23:18 -07:00
Gavin Nishizawa
b059ac70ab
update tests 2023-03-29 20:15:47 -07:00
Gavin Nishizawa
b9fd6231e3
add arrowhead_scaling test 2023-03-29 20:14:09 -07:00
Alexander Wang
76cc889c18
fix latex uppercasing 2023-03-29 20:11:56 -07:00
Alexander Wang
e98c34a34c
origami theme 2023-03-29 20:01:52 -07:00
Gavin Nishizawa
d59773399d
update test 2023-03-29 16:42:41 -07:00
Gavin Nishizawa
74f1efdd47
add bold_edge_label test 2023-03-29 16:41:29 -07:00
Bernard Xie
a0d88b39f5
new test data 2023-03-29 15:18:45 -07:00
Bernard Xie
fb0b21fb26
add connection arrowhead labels 2023-03-29 14:31:00 -07:00
Bernard Xie
009e1fbb9e
revert regression_test 2023-03-29 10:18:30 -07:00
Bernard Xie
322d253fce
rename cutset -> corpus 2023-03-29 10:03:44 -07:00
Bernard Xie
28d14ac65e
revert 2023-03-29 09:54:38 -07:00
Bernard Xie
6a7a9b9798
revert regression test results 2023-03-28 15:32:28 -07:00
Bernard Xie
2171aae5c5
revert regression_test 2023-03-28 15:31:18 -07:00
Bernard Xie
4ed9361ee7
fix tests 2023-03-28 15:26:32 -07:00
Bernard Xie
23cca0000b
fix tests, remove italic style 2023-03-28 15:18:28 -07:00
Bernard Xie
70b4fd8912
copy byte slice first 2023-03-28 13:58:53 -07:00
Bernard Xie
48a7472667
add and fix utf8cutfont 2023-03-27 19:19:12 -07:00
Bernard Xie
0dab848b53
make.sh 2023-03-27 15:57:49 -07:00
Bernard Xie
1dbba3c38e
test.sh 2023-03-27 15:48:06 -07:00
Bernard Xie
f195053ef3
small change 2023-03-27 15:38:53 -07:00
Bernard Xie
62faa1ef33
remove unused 2023-03-27 15:02:25 -07:00
Bernard Xie
ff1ef999a3
tests still borken 2023-03-27 14:46:03 -07:00
Bernard Xie
02673d423d
subset test 2 2023-03-27 14:22:58 -07:00
Bernard Xie
7a137227e7
test without woff 2023-03-27 14:17:48 -07:00
Bernard Xie
2d6243ded3
cutset test 2023-03-27 13:41:40 -07:00
Bernard Xie
e89166d469
add class symbols 2023-03-27 13:32:00 -07:00
Bernard Xie
9a330bc853
make test files 2023-03-27 12:12:48 -07:00
Bernard Xie
a08dedd86f
e2e test differences 2023-03-27 11:48:59 -07:00
Bernard Xie
09ff003a70
test data 2023-03-27 11:35:01 -07:00
Bernard Xie
9219501584
fix tables and classes 2023-03-27 11:24:18 -07:00
Bernard Xie
88481dec1e
more test data 2023-03-27 11:08:10 -07:00
Bernard Xie
4682c010a0
add test changes 2023-03-27 10:51:57 -07:00
Bernard Xie
513f813cd9
Merge branch 'master' into 765/custom-fonts 2023-03-27 10:37:32 -07:00
donglixiaoche
4760888d15
chore: regenerate testcases 2023-03-27 21:42:43 +08:00
donglixiaoche
d33efa28f2
chore: new testcase 2023-03-27 21:38:11 +08:00
donglixiaoche
e09a85e80b
fix: recover testcases 2023-03-27 21:38:11 +08:00
donglixiaoche
6844413820
chore: new testcase 2023-03-27 21:38:10 +08:00
donglixiaoche
2ae1636140
fix: regenerate testcases 2023-03-27 21:38:10 +08:00
donglixiaoche
17c4851618
fix: calc labelDimension 2023-03-27 21:38:10 +08:00
donglixiaoche
b9a94ca11f
fix: cr, more testcase 2023-03-27 21:38:09 +08:00
donglixiaoche
5820ba5889
chore: regenerate testcases 2023-03-27 21:38:08 +08:00
donglixiaoche
4df8864917
chore: regenerate testcases 2023-03-27 21:38:08 +08:00
donglixiaoche
f62304dac9
chore: add e2e testcase 2023-03-27 21:38:08 +08:00
Alexander Wang
f30efc5f62
animate-interval 2023-03-26 21:34:41 -07:00
Bernard Xie
488ad25093
new test data 2023-03-24 17:34:11 -07:00
Alexander Wang
c763874fb8
lower paper opacity 2023-03-22 18:07:42 -07:00
Alexander Wang
436531dbc2
paper pattern 2023-03-20 19:08:56 -07:00
Alexander Wang
2684f3bfde
[ci-base] bump version in src 2023-03-20 11:57:25 -07:00
Alexander Wang
95bc2e4fb5
fix multiple br 2023-03-18 14:45:58 -07:00
Alexander Wang
56a4ee5fff
markdown strikethrough 2023-03-18 14:00:52 -07:00
Alexander Wang
c3c60c5bab
fix elk container label 2023-03-17 21:46:57 -07:00
Alexander Wang
ed2efda29a
don't uppercase code blocks 2023-03-17 20:20:30 -07:00
Alexander Wang
7ba463c690
[ci-base] regen 2023-03-16 16:08:06 -07:00
Alexander Wang
65d36215f9
fix monospaced edge labels 2023-03-16 15:02:06 -07:00
Alexander Wang
21d8aae518
amend test 2023-03-16 13:01:58 -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
e36f2f946b
elk fit labels, center contents 2023-03-15 13:07:45 -07:00
Alexander Wang
be8d47b47f
rebase 2023-03-14 18:39:44 -07:00
Alexander Wang
7f9bc2b033
Merge branch 'master' into elk-shim 2023-03-14 18:38:43 -07:00
Alexander Wang
108b744f3c
fix bug 2023-03-14 18:36:16 -07:00
Alexander Wang
4ab3a1ecaa
regen 2023-03-14 17:38:22 -07:00
Alexander Wang
f35be526c6
remove ladders 2023-03-14 15:29:50 -07:00
Gavin Nishizawa
231ab8acc3
update tests 2023-03-14 15:14:35 -07:00
Gavin Nishizawa
2f10ab754d
add test 2023-03-14 15:14:15 -07:00
Alexander Wang
05938bdef2
s-shape 2023-03-14 14:54:30 -07:00
Alexander Wang
73c35bb14b
implement s-shape 2023-03-14 14:11:51 -07:00
Alexander Wang
90a927131d
node edge spacing 2023-03-14 13:06:56 -07:00
Alexander Wang
a37c456dfc
fixed alignment 2023-03-14 11:08:29 -07:00
Alexander Wang
28be78b047
cleanup 2023-03-14 10:11:25 -07:00
Alexander Wang
3cc011fd96
regen 2023-03-14 10:01:45 -07:00
Alexander Wang
36e546c8b4
Merge branch 'master' into pattern 2023-03-14 10:00:56 -07:00
Alexander Wang
7ce0e8fde6
regen 2023-03-14 10:00:33 -07:00
Alexander Wang
c45aa06103
regen 2023-03-14 09:46:45 -07:00
Alexander Wang
b4f711c93d
real 2023-03-13 23:12:41 -07:00
Alexander Wang
1f6a361b3f
implement pattern 2023-03-13 23:01:33 -07:00
Alexander Wang
6df7772a77
regen tests 2023-03-13 18:51:52 -07:00
Alexander Wang
0155bbabb5
connection mono 2023-03-13 16:14:50 -07:00
Alexander Wang
62abaf3536
test regen 2023-03-13 16:12:15 -07:00
Alexander Wang
f1d4641d42
Merge branch 'master' into mono-font 2023-03-13 16:04:59 -07:00
Alexander Wang
298a0c10bd
bump to go 1.20 2023-03-13 13:35:26 -07:00
Alexander Wang
73218396da
test 2023-03-11 21:33:03 -08:00
Alexander Wang
a9433a5204
fix arrowhead label detection 2023-03-11 21:33:03 -08:00
Alexander Wang
cfa37f4469
regen tests 2023-03-11 17:22:26 -08:00
Alexander Wang
379e3ae414
Merge pull request #982 from donglixiaoche/class-and-sqltable-border-radius
Class and sqltable border radius
2023-03-09 20:30:49 -08:00
Alexander Wang
ba282b5f96
font: mono 2023-03-09 20:06:15 -08:00
Alexander Wang
d6fee41e3b
make dagre inter-container connections better 2023-03-09 19:49:40 -08:00
Alexander Wang
adbf9f775b
handle empty markdown for pre-measured 2023-03-09 16:55:34 -08:00
donglixiaoche
2d66f3105a
fix: cr, add labelMaskID for clipPath 2023-03-09 16:45:18 +08:00
donglixiaoche
5994dea83a
Revert "chore: regenerate tests"
This reverts commit c44701ac0a.
2023-03-09 10:54:51 +08:00
donglixiaoche
c44701ac0a
chore: regenerate tests 2023-03-09 10:23:30 +08:00
donglixiaoche
39419f221f
chore: new testcases 2023-03-09 09:30:19 +08:00
donglixiaoche
4dd974c6c1
chore: add class border-radius testcase 2023-03-09 09:30:19 +08:00
donglixiaoche
fc4ff9c523
chore: add e2e testcase 2023-03-09 09:30:19 +08:00
Alexander Wang
412f53e229
ELK nodes grow to ensure port padding 2023-03-06 22:32:15 -08:00
Gavin Nishizawa
ecae3e84ea
update test 2023-03-06 20:08:12 -08:00
Gavin Nishizawa
226640fde5
add link_with_ampersand regression test 2023-03-06 20:06:31 -08:00
Gavin Nishizawa
5120c4960f
update tests 2023-03-03 22:33:25 -08:00
Gavin Nishizawa
20455f17b2
update test 2023-03-03 22:20:19 -08:00
Gavin Nishizawa
a85ccf2f4a
add test 2023-03-03 22:18:55 -08:00
Alexander Wang
73239c3e97
update 2023-03-03 21:02:02 -08:00
Gavin Nishizawa
39ab1e9bf4
update tests 2023-03-02 14:58:37 -08:00
Gavin Nishizawa
646e61a26f
update tests 2023-03-01 17:41:58 -08:00
donglixiaoche
e8351f752d
fix: testcase systax 2023-03-01 12:30:36 +08:00
donglixiaoche
04cc7bd207
chore: regenerate testcases 2023-03-01 09:44:15 +08:00
donglixiaoche
776b6af1bc
chore: add elk_border_radius e2e test 2023-03-01 08:09:38 +08:00
Gavin Nishizawa
186368cd1e
update test 2023-02-27 19:55:52 -08:00
Gavin Nishizawa
357dda9815
add test 2023-02-27 19:43:04 -08:00
Gavin Nishizawa
45de9ba9c8
update tests 2023-02-27 19:42:00 -08:00
Gavin Nishizawa
4d1462473c
update tests 2023-02-27 19:41:18 -08:00
Anmol Sethi
f64b5c010d
IsContainerOnly -> IsFolderOnly 2023-02-27 14:39:09 -08:00
Anmol Sethi
78b09f5007
BoardContainer -> IsContainerOnly
As discussed on slack.
2023-02-27 14:39:08 -08:00
Anmol Sethi
e4fac7840f
cli: Improve multiboard output
- Boards with subboards are now selfcontained folders with index.svg/png as
  the root board render.
- Boards that are only containers of other boards are not rendered. For example a
  scenario with no modifications and only steps only has its steps
  rendered.
- Boards with sibling boards of another type are rendered under a
  subdirectory indicating their type to separate them. For example a
  board with layers and scenarios has its layers rendered into subfolder
  layers and scenarios into subfolder scenarios.

cc @berniexie see BoardContainer field on d2target.Board for the field
you were looking for to skip renders for PDFs too.
2023-02-27 13:50:03 -08:00