Commit graph

719 commits

Author SHA1 Message Date
Alexander Wang
a4f9048c8d
v0.4.0 2023-04-08 19:38:41 -07:00
Alexander Wang
f3598bd2b7
Update next.md 2023-04-08 19:37:37 -07:00
Alexander Wang
2715b963dc
Update next.md 2023-04-08 19:32:43 -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
Bernard Xie
d277bbc91f
Update next.md 2023-04-07 16:49:11 -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
Alexander Wang
a2cffc9341
fix inheritence bug 2023-04-05 19:29:08 -07:00
donglixiaoche
e61629e692
fix: cr 2023-04-06 05:00:12 +08:00
Gavin Nishizawa
292ac05a9e
changelog 2023-04-05 11:33:28 -07:00
Alexander Wang
cadaaeb21f
add padding between dagre labels 2023-04-04 13:50:12 -07:00
donglixiaoche
4b677f8a7e
Merge branch 'master' into near-keys-for-container 2023-04-04 21:44:16 +08:00
Patrick Conti
e33d575c6b
Update changelog 2023-04-03 19:08:55 +02:00
donglixiaoche
05a9498c99
chore: feature description doc 2023-04-03 08:37:32 +08:00
segelt
d3325b3741
update changelog 2023-04-03 00:52:48 +03:00
Alexander Wang
b4bdc651c8
changelog 2023-04-01 20:11:09 -07:00
Toyam Cox
3228ae4a0d
fix builds on 32bit
If you put the uint32 type at the top instead of later, 32 bit builds

All credit @ahesford
2023-03-31 19:31:20 -04:00
Gavin Nishizawa
f72e0ecbdd
changelog 2023-03-31 14:17:02 -07:00
Alexander Wang
bac73e2f29
link SVGs 2023-03-30 18:00:55 -07:00
Anmol Sethi
84cc463ff6
d2parser: Fix #322 2023-03-30 01:29:59 -07:00
Alexander Wang
584a543fe5
v0.3.0 2023-03-29 22:07:38 -07:00
Alexander Wang
4413931253
Update next.md 2023-03-29 22:03:25 -07:00
Alexander Wang
5e6962ba33
Update next.md 2023-03-29 20:40:14 -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
91810eaa55
changelog 2023-03-29 20:16:29 -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
Alexander Wang
3d5f329232
Merge pull request #1109 from alixander/font-input
accept font input
2023-03-29 18:24:33 -07:00
Alexander Wang
2f57ea5ca2
accept font input 2023-03-29 17:29:30 -07:00
Gavin Nishizawa
505207aa23
changelog 2023-03-29 16:45:41 -07:00
Bernard Xie
d0c22dfedd
Merge pull request #1089 from berniexie/765/custom-fonts
fonts: Subsetting fonts
2023-03-29 14:40:21 -07:00
Bernard Xie
9998b0039b
add readme 2023-03-28 15:33:32 -07:00
Gavin Nishizawa
75536ebf8c
changelog 2023-03-28 11:42:38 -07:00
Alexander Wang
4924a8babf
Merge pull request #1091 from alankan886/master
compiler: Compiler error when Link is set and Tooltip is an URL
2023-03-27 21:27:00 -07:00
alankan886
bb54d03033
compiler: Compiler error when Link is set and Tooltip is an URL 2023-03-28 00:12:05 -04:00
alankan886
1250ad3ea7
# This is a combination of 2 commits.
# This is the 1st commit message:

compiler: Compiler error when Link is set and Tooltip is an URL

# The commit message #2 will be skipped:

# Update changelog
2023-03-28 00:02:27 -04:00
Alexander Wang
f30efc5f62
animate-interval 2023-03-26 21:34:41 -07:00
Alexander Wang
436531dbc2
paper pattern 2023-03-20 19:08:56 -07:00
Alexander Wang
d4e7b2c6b0
deps: update [ci-force] 2023-03-19 22:36:33 -07:00
Alexander Wang
022cf12a61
v0.2.6 2023-03-18 15:47:38 -07:00
Alexander Wang
5da60ada7d
Update next.md 2023-03-18 15:47:16 -07:00
Alexander Wang
c253287fb8
Merge pull request #1058 from alixander/png-still-working
print msg when png or layout takes a long time
2023-03-18 15:33:25 -07:00
Alexander Wang
579bbace03
print msg when png and layout in progress 2023-03-18 15:29:46 -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
2e661bf399
Merge branch 'master' into browser-flag 2023-03-18 12:49:17 -07:00
Alexander Wang
efc85915c6
change flag to string 2023-03-18 00:48:18 -07:00
Alexander Wang
98e61995e4
center flag 2023-03-17 22:32:48 -07:00
Alexander Wang
c3c60c5bab
fix elk container label 2023-03-17 21:46:57 -07:00
Alexander Wang
d3c1a3378e
changelog 2023-03-17 20:33:38 -07:00
Alexander Wang
225d3408ef
changelog 2023-03-17 20:22:05 -07:00
Alexander Wang
dc079c676d
changelog 2023-03-17 20:13:01 -07:00
Alexander Wang
f74e260624
browser flag 2023-03-17 20:10:44 -07:00
Bernard Xie
fa8ce114b7
Update next.md 2023-03-17 19:14:51 -07:00
Bernard Xie
8a24021805
Update next.md 2023-03-17 19:14:01 -07:00
Bernard Xie
1658c05f18
fix 2023-03-17 19:13:14 -07:00
Alexander Wang
e996325fb4
v0.2.5 2023-03-16 15:43:18 -07:00
Alexander Wang
170ae61bdc
Update next.md 2023-03-16 15:42:15 -07:00
Alexander Wang
c30887b363
new fill-patterns, grayscale 2023-03-15 23:02:17 -07:00
Alexander Wang
322fdc250a
changelog 2023-03-15 18:03:48 -07:00
Alexander Wang
e36f2f946b
elk fit labels, center contents 2023-03-15 13:07:45 -07:00
Alexander Wang
5c7bb9062f
[ci-force] changelog 2023-03-14 19:19:31 -07:00
Gavin Nishizawa
2d459b36a1
changelog 2023-03-14 15:14:38 -07:00
Alexander Wang
d75941bf4f
changelog 2023-03-14 13:08:17 -07:00
Alexander Wang
16bb6eb642
changelog 2023-03-14 12:53:21 -07:00
Alexander Wang
49b49c8263
[ci-base] changelog 2023-03-14 10:25:22 -07:00
Alexander Wang
f1d4641d42
Merge branch 'master' into mono-font 2023-03-13 16:04:59 -07:00
Alexander Wang
a9433a5204
fix arrowhead label detection 2023-03-11 21:33:03 -08:00
Alexander Wang
0dd4b7490a
changelog 2023-03-11 17:31:05 -08:00
Alexander Wang
29808f203b
reduce roughness of sketch connections 2023-03-11 10:04:12 -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
donglixiaoche
833967a296
chore: update doc 2023-03-09 14:28:30 +08:00
Alexander Wang
c16bd35bcb
bump go-util 2023-03-08 12:17:38 -08:00
Alexander Wang
7e398e1d46
v0.2.4 2023-03-07 11:11:52 -08:00
Alexander Wang
9adfec210b
Update next.md 2023-03-07 10:47:39 -08:00
Alexander Wang
a556160306
validate markdown 2023-03-07 09:38:19 -08:00
Alexander Wang
9199554800
give err msg for invalid edge style 2023-03-06 22:44:45 -08:00
Alexander Wang
412f53e229
ELK nodes grow to ensure port padding 2023-03-06 22:32:15 -08:00
Gavin Nishizawa
4794429840
changelog 2023-03-06 20:12:29 -08:00
Alexander Wang
60c912c605
compile reserved keys to lowercase in IR 2023-03-06 16:38:13 -08:00
Anmol Sethi
7cd821feb7
d2cli: Accept abspaths again
Fixes https://github.com/Homebrew/homebrew-core/pull/124831/files#r1125738853
2023-03-05 14:03:06 -08:00
Alexander Wang
fb20527aa4
v0.2.3 2023-03-04 11:55:18 -08:00
Alexander Wang
38c8b447f3
Update next.md 2023-03-04 11:41:29 -08:00
Gavin Nishizawa
7a552e9a55
changelog 2023-03-03 22:21:26 -08:00
Alexander Wang
c62f3168cd
changelog 2023-03-03 21:16:24 -08:00
Alexander Wang
e6644549be
implement internal links in PDF 2023-03-02 23:17:29 -08:00
Anmol Sethi
6706120bc6
ci: Install playwright deps in test.sh 2023-03-02 20:51:45 -08:00
Gavin Nishizawa
301ad2ac3c
changelog 2023-03-02 15:05:13 -08:00
Alexander Wang
3069dd43b5
changelog 2023-03-02 11:18:23 -08:00
Gavin Nishizawa
0e8a02f86f
changelog 2023-03-01 17:47:45 -08:00
Alexander Wang
91e0bbdf54
Update next.md 2023-02-28 22:13:26 -08:00
Anmol Sethi
af1faa7b35
deps: update [ci-force] 2023-02-28 17:58:39 -08:00
Gavin Nishizawa
c75a2eaf7e
changelog 2023-02-28 16:41:19 -08:00
Bernard Xie
2ddea9352e
Merge pull request #940 from berniexie/pdf-link-overlay
exports: pdf exports link overlay
2023-02-28 15:17:42 -08:00
Bernard Xie
c0d5bd9dd3
changelog 2023-02-28 15:14:45 -08:00
Gavin Nishizawa
af2c5dfd1f
changelog 2023-02-28 14:16:22 -08:00
Alexander Wang
014864b05e
Merge pull request #936 from terrastruct/v0.2.2
v0.2.2
2023-02-27 21:35:41 -08:00
Alexander Wang
ab4e4542d6
v0.2.2 2023-02-27 21:33:35 -08:00
Anmol Sethi
408506ceae
ci: Be specific about allowed platform for each builder to prevent QEMU usage 2023-02-27 21:29:31 -08:00
Anmol Sethi
014d95a054
deps: update [ci-force] 2023-02-27 21:04:42 -08:00
Alexander Wang
87db4418e6
Update next.md 2023-02-27 20:49:14 -08:00
Alexander Wang
53f1367bb2
Update next.md 2023-02-27 20:42:41 -08:00
Gavin Nishizawa
23c7bbf1f8
changelog 2023-02-27 19:24:34 -08:00
Anmol Sethi
f64b5c010d
IsContainerOnly -> IsFolderOnly 2023-02-27 14:39:09 -08:00
Anmol Sethi
89394421f8
changelog: Update 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
Alexander Wang
9cdfd20ff9
changelog 2023-02-27 12:58:21 -08:00
Anmol Sethi
25f8361eeb
changelogs/next.md: Update 2023-02-27 11:30:24 -08:00
Anmol Sethi
79eac42905
docker: Build cross platform release image natively
Playwright deps don't install when running under QEMU.
2023-02-27 11:25:43 -08:00
Anmol Sethi
5c2a80330f
docker: Install playwright dependencies on arm64
Also changed our code to only install chromium.

Closes #835
2023-02-27 10:30:59 -08:00
Jett Chen
c9477639cc
Merge branch 'master' into 3d-hexagon 2023-02-27 10:22:09 +08:00
JettChenT
5b5a976b7c
squash commits
upate tests

Update changelog

add support for Fill

update test case

resolve changes
2023-02-27 09:50:18 +08:00
Alexander Wang
87eae1b616
implement background styles 2023-02-26 16:23:51 -08:00
Anmol Sethi
06548f1543
cli: Document -dark-theme gotcha
Updates #831
2023-02-25 10:39:21 -08:00
Alexander Wang
91e11eef85
changelog 2023-02-25 08:31:56 -08:00
Alexander Wang
fabe85a0da
changelog 2023-02-25 07:55:02 -08:00
Bernard Xie
266a812adb
add to readme and changelog 2023-02-24 13:50:17 -08:00
Bernard Xie
c3071598dc
add comment, fix tests, add to changelog 2023-02-24 12:01:37 -08:00
Alexander Wang
633e044049
changelog 2023-02-23 23:18:48 -08:00
Alexander Wang
423893cdfa
v0.2.1 2023-02-23 19:52:44 -08:00
Alexander Wang
ad7633c2cc
update man 2023-02-23 17:26:25 -08:00
Alexander Wang
994ec12c34
[ci-base] fmt 2023-02-23 16:42:27 -08:00
Alexander Wang
6a1b975e39
Update next.md 2023-02-23 16:27:01 -08:00
Alexander Wang
4fcf91d526
Update next.md 2023-02-23 16:20:20 -08:00
gavin-ts
1a27dee9c8
Merge pull request #880 from gavin-ts/adjust-dagre-edge-for-container-label
dagre: stop container edges at container label
2023-02-23 14:48:53 -08:00
Alexander Wang
cea18eaf21
Update next.md 2023-02-23 14:14:39 -08:00
Alexander Wang
9108023f59
Update next.md 2023-02-23 14:14:21 -08:00
Gavin Nishizawa
3584bf0e58
changelog 2023-02-23 11:46:24 -08:00
Alexander Wang
869b37d1b1
changelog 2023-02-23 11:26:11 -08:00
Vojtěch Fošnár
6c8ff99eaf
merge updates 2023-02-23 11:41:42 +01:00
Alexander Wang
9c99212762
changelog 2023-02-22 13:45:00 -08:00
Vojtěch Fošnár
9d5a0fa1d0
fix manpage :D 2023-02-21 09:53:19 +01:00
Vojtěch Fošnár
2e789b7397
update manpage 2023-02-21 09:48:17 +01:00
Vojtěch Fošnár
75102f3d40
fix CLI option, update and hopefully fix tests 2023-02-20 20:09:17 +01:00
Vojtěch Fošnár
d8525f5225
Merge branch 'terrastruct:master' into master 2023-02-20 19:54:39 +01:00
Alexander Wang
5f750f7109
Merge branch 'master' into container-dimensions 2023-02-20 09:07:12 -08:00
Vojtěch Fošnár
6fcc58a4f8
Merge branch 'terrastruct:master' into master 2023-02-20 10:27:44 +01:00
Alexander Wang
d31c7e37bb
changelog 2023-02-19 14:10:10 -08:00
Vojtěch Fošnár
7bf795b455
Merge branch 'terrastruct:master' into master 2023-02-19 21:03:54 +01:00
Alexander Wang
9a54b8237f
changelog 2023-02-19 08:23:36 -08:00
Vojtěch Fošnár
331cf95284
move ThemableElement and others to d2themes, smaller fixes 2023-02-19 13:00:01 +01:00
Alexander Wang
3803107c6e
changelog 2023-02-18 23:37:43 -08:00
Júlio César Batista
1df56853b5
pr comment 2023-02-17 15:54:02 -03:00
Júlio César Batista
b2394184cb
chagelog 2023-02-17 15:39:40 -03:00