Commit graph

513 commits

Author SHA1 Message Date
Daniel Suh
a7f83f7029
bezier curves work? 2024-05-15 09:55:08 -04:00
Alexander Wang
4274f10264
dont render unnecessarily with opacity 0 2024-05-15 01:22:57 -06:00
Alexander Wang
a08190f73b
0.6.5 2024-04-17 19:50:13 -07:00
Alexander Wang
45a68d034c
0.6.4 2024-04-10 21:19:34 -07:00
Gavin Nishizawa
ae247ae108
update md fill and font-color 2024-03-18 15:38:18 -07:00
Alexander Wang
382f498688
add shape hierarchy 2024-03-15 10:00:40 -07:00
Alexander Wang
4db1f72134
allow underlines for connections 2024-02-14 16:48:57 -08:00
Alexander Wang
2ebd4a6288
0.6.3 2023-12-14 16:27:11 -08:00
Alexander Wang
27ea8314e9
customize theme colors in vars-config 2023-12-14 11:35:49 -08:00
Alexander Wang
10a2cb60e7
export: use board labels 2023-12-12 10:37:19 -08:00
Alexander Wang
5cdeca30e0
layout, export: icons for special objects 2023-12-12 09:23:17 -08:00
Alexander Wang
d96f2c5efb
change lib/version 2023-12-05 15:39:58 -08:00
Gavin Nishizawa
55f909a0f2
update tests 2023-11-16 18:43:58 -08:00
Gavin Nishizawa
b9a5dad820
save cloud innerbox aspect ratio 2023-11-16 18:37:37 -08:00
Gavin Nishizawa
9a21d6956d
update tests 2023-11-15 21:38:36 -08:00
Gavin Nishizawa
44dc28705b
disable innerbox drawing 2023-11-15 21:38:36 -08:00
Gavin Nishizawa
ff55ca932f
code to display shape's innerBox 2023-11-15 21:38:35 -08:00
Gavin Nishizawa
61f8e67454
render unfilled triangle arrowhead 2023-11-07 17:46:26 -08:00
Gavin Nishizawa
9d9afcdfe3
unfilled triangle arrowhead 2023-11-07 16:57:43 -08:00
Gavin Nishizawa
eb755db91c
use more efficient label position type 2023-11-07 16:27:45 -08:00
Gavin Nishizawa
eb2b637b42
fix appendix icon order 2023-11-06 16:33:31 -08:00
Gavin Nishizawa
c38f15712d
rename to Lookup and Get 2023-10-30 15:02:26 -07:00
Gavin Nishizawa
fdbde73605
rename to Get and MustGet 2023-10-30 13:51:37 -07:00
Gavin Nishizawa
1cfa2b9f81
use new SyncMap with FontFaces/FontEncoding 2023-10-30 12:15:32 -07:00
Gavin Nishizawa
6b255c61da
d2fonts.FontEncodings sync.Map 2023-10-24 16:31:30 -07:00
Alexander Wang
5e94849543
bump d2 version to 0.6.1 2023-09-25 13:16:55 -07:00
Gavin Nishizawa
b55ff3debc
only set font-size if different from default 2023-09-25 12:17:19 -07:00
Gavin Nishizawa
65d03f2ffc
apply font-size to rendered code blocks 2023-09-25 12:10:09 -07:00
Gavin Nishizawa
cfd7c3996d
render arrowhead labels using style.font-color 2023-09-11 12:22:17 -07:00
Alexander Wang
92f09091a8
fix markdown color 2023-08-08 15:20:14 -07:00
Alexander Wang
9122ce1c2b
robust hash 2023-07-29 11:31:03 -07:00
Alexander Wang
711716a68b
fix tooltips 2023-07-26 22:46:28 -07:00
Alexander Wang
fc5e80bc2e
bump version 2023-07-22 09:42:39 -07:00
Alexander Wang
3dee14eb0c
bold mono 2023-07-22 09:10:49 -07:00
Alexander Wang
45b396c894
config vars 2023-07-20 16:08:08 -07:00
Gavin Nishizawa
205bf8b43d
update tests 2023-07-14 16:12:12 -07:00
Gavin Nishizawa
f53afc485a
fix labelbox adustments for multiple/3d shapes 2023-07-13 11:42:40 -07:00
Gavin Nishizawa
ba5811c24a
update tests 2023-07-03 19:12:58 -07:00
Gavin Nishizawa
6f2eccc325
add all appendix items at the end 2023-07-03 19:06:37 -07:00
Gavin Nishizawa
dfa9600bbb
update which icon is on border for some shapes 2023-07-03 18:58:02 -07:00
Gavin Nishizawa
d38a386859
adjustments 2023-07-03 18:15:57 -07:00
Gavin Nishizawa
9fa4cda569
warnings 2023-07-03 16:18:02 -07:00
Gavin Nishizawa
8a9fa24ee6
update icon positioning according to shapes 2023-07-03 16:14:46 -07:00
Alexander Wang
469828bac5
update tests 2023-07-01 21:07:43 -07:00
gavin-ts
5829f26082
Merge pull request #1413 from gavin-ts/scale-flag
use scale flag for no-fit and customizing zoom
2023-06-26 13:54:57 -07:00
Gavin Nishizawa
deef335da4
update tests 2023-06-19 18:45:15 -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
1489c67e9f
always add connection label masks since outside labels may overlap other connections 2023-06-15 19:00:04 -07:00
Gavin Nishizawa
8563cf83c6
use scale flag for no-fit and customizing zoom 2023-06-15 16:47:26 -07:00
Alexander Wang
1cfa97b759
bump tests 2023-06-09 20:50:58 -07:00
Alexander Wang
947a5cd5dc
bump 2023-06-08 19:49:09 -07:00
Gavin Nishizawa
9a15663d8b
option: connection clearly visibile but transparent 2023-06-08 19:32:42 -07:00
Gavin Nishizawa
53c3e3d57e
update tests 2023-06-08 19:11:18 -07:00
Gavin Nishizawa
4373d81e84
set transparent labelMask for shapes 2023-06-08 19:10:06 -07:00
Alexander Wang
4147c4506c
tests 2023-06-05 11:33:34 -07:00
satoqz
665844db39
TA=1 2023-06-03 14:05:18 +02:00
Bernard Xie
dedf9e2d55
more accurate 2023-05-31 16:58:10 -07:00
Bernard Xie
8de7711e68
fix 2023-05-31 16:30:11 -07:00
Gavin Nishizawa
182af8dc39
comments, renaming 2023-05-26 12:37:51 -07:00
Gavin Nishizawa
152557fa2c
update tests 2023-05-25 18:47:45 -07:00
Gavin Nishizawa
bdd7dc51d3
update tests 2023-05-25 16:22:24 -07:00
Gavin Nishizawa
6fc9ffa04d
fixes, cleanup 2023-05-24 20:07:10 -07:00
Gavin Nishizawa
d6b8149073
adjust for 3d/multiple 2023-05-24 20:07:10 -07:00
Alexander Wang
cd6c6b6fda
bump tests 2023-05-01 13:53:19 -07:00
Antoine Poivey
760dbfe5ae
merge with master 2023-04-20 16:48:52 +02:00
Alexander Wang
648161fbea
bump version 2023-04-17 18:47:47 -07:00
Gavin Nishizawa
913c170985
update tests 2023-04-17 13:16:34 -07:00
Gavin Nishizawa
ca29119c60
adjust label positioning for arrowhead 2023-04-17 13:12:02 -07:00
Gavin Nishizawa
29a9630635
update bounding box for arrowhead labels 2023-04-17 13:01:38 -07:00
Gavin Nishizawa
6e4faefb4b
position arrowhead labels 2023-04-17 13:01:38 -07:00
Gavin Nishizawa
71546caeeb
render with arrowhead dimensions 2023-04-17 13:01:38 -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
d02e1ebb52
update markdown text measurement and rendering to use font-size 2023-04-12 20:14:45 -07:00
Gavin Nishizawa
7c1738ce5a
update tests 2023-04-10 15:08:13 -07:00
Gavin Nishizawa
07faf97941
using semibold 2023-04-10 15:06:26 -07:00
Gavin Nishizawa
423c7e88eb
use semibold font instead of font-weight: 600 2023-04-10 15:06:26 -07:00
Gavin Nishizawa
2203246b3c
support multiboard rendering in e2e tests 2023-04-10 14:12:23 -07: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
305c72d239
implement classes 2023-04-07 09:57:51 -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
Alexander Wang
a2cffc9341
fix inheritence bug 2023-04-05 19:29:08 -07:00
segelt
9ac7a301b1
fixes #1104 2023-04-02 22:28:48 +03:00
Alexander Wang
e9d9ee5db2
regen 2023-03-29 21:07:05 -07:00
Gavin Nishizawa
b059ac70ab
update tests 2023-03-29 20:15:47 -07:00
Gavin Nishizawa
1145c09d0f
adjust arrowhead scaling 2023-03-29 20:14:22 -07:00
Bernard Xie
a0d88b39f5
new test data 2023-03-29 15:18:45 -07:00
Alexander Wang
35ddefc544
regen 2023-03-29 14:59:25 -07:00
Alexander Wang
eacbd596c5
regen 2023-03-29 14:56:51 -07:00
Alexander Wang
56e46d6260
better appendix internal links 2023-03-29 14:56:45 -07:00
Bernard Xie
f2aca1bb4b
getCorpus 2023-03-29 13:50:00 -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
8e07980b06
Revert "remove GetUniqueChars"
This reverts commit da7e2fbcc7.
2023-03-29 09:51:36 -07:00
Bernard Xie
4ed9361ee7
fix tests 2023-03-28 15:26:32 -07:00
Bernard Xie
47d8d12631
remove spew 2023-03-28 15:19:03 -07:00
Bernard Xie
23cca0000b
fix tests, remove italic style 2023-03-28 15:18:28 -07:00
Bernard Xie
da7e2fbcc7
remove GetUniqueChars 2023-03-28 15:11:23 -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
9872f2e6a9
code/dark_theme 2023-03-27 16:29:57 -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
1c71ad40f4
remove spew 2023-03-27 15:25:43 -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
Alexander Wang
f30efc5f62
animate-interval 2023-03-26 21:34:41 -07:00
Bernard Xie
7c146dd213
subset fonts 2023-03-24 19:50:16 -07:00
Bernard Xie
488ad25093
new test data 2023-03-24 17:34:11 -07:00
Bernard Xie
6f74209a78
Add font-style italic to .text-italic 2023-03-24 17:27:26 -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
98e61995e4
center flag 2023-03-17 22:32:48 -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
7ba463c690
[ci-base] regen 2023-03-16 16:08:06 -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
36e546c8b4
Merge branch 'master' into pattern 2023-03-14 10:00:56 -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
0292ea2627
add exif to png 2023-03-13 17:58:47 -07:00
Alexander Wang
2f2056da2a
embed d2 version in svg 2023-03-13 16:26:42 -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
cfa37f4469
regen tests 2023-03-11 17:22:26 -08:00
Alexander Wang
c8e7fd3bc0
isolate CSS targeting to be diagram specific 2023-03-11 17:20:59 -08:00
Alexander Wang
ba282b5f96
font: mono 2023-03-09 20:06:15 -08:00
donglixiaoche
1cb1fd4344
fix: cr 2023-03-10 09:54:35 +08:00
Antoine Poivey
6632740fb1
feat: add possiblity to set shape border-radius with percentage value 2023-03-09 17:10:12 +01:00
donglixiaoche
77e2a23b2b
fix: should add clipPath 2023-03-09 17:51:20 +08:00
donglixiaoche
dd1824c4dc
fix: integrate add clipPath into element.go 2023-03-09 17:31:43 +08:00
donglixiaoche
a96bb2c0be
fix: cr, rename func 2023-03-09 16:56:03 +08:00