Alexander Wang
09cf9ae7d1
d2render: support gradient values
2024-09-27 15:49:10 -06:00
Alexander Wang
0d13bb950a
extend set of runes used
2024-09-16 10:44:31 -06:00
Alexander Wang
dea219795a
update version to 0.6.6
2024-08-01 10:54:54 -06:00
Alexander Wang
881652956a
Merge pull request #1944 from danielsuh05/issue1943
...
fix: path animations in sketch mode are now normal + bidirectional path animations are correct
2024-05-23 13:53:18 -06:00
Alexander Wang
4989a95906
do not run imgbundler unnecessarily
2024-05-23 13:20:06 -06:00
Daniel Suh
aa8ce9463e
pass e2e tests
2024-05-20 12:43:47 -04:00
Daniel Suh
368fc938d1
make paths normal
2024-05-20 07:39:06 -04:00
Daniel Suh
c2347859a2
fixed requested changes
2024-05-16 23:14:15 -04:00
Alexander Wang
36eee25661
Merge pull request #1924 from alixander/relative-icon-pathing
...
cli: resolve local icon paths relative to d2 file
2024-04-26 21:04:14 -06:00
Alexander Wang
f2402d5694
tests
2024-04-26 20:57:59 -06:00
Alexander Wang
1e23f8851c
Merge pull request #1902 from oftenoccur/master
...
chore: fix some typos
2024-04-26 20:43:39 -06:00
oftenoccur
c688ee28d9
chore: fix some typos
...
Signed-off-by: oftenoccur <ezc5@sina.com>
2024-04-26 20:11:46 +08:00
Alexander Wang
15b4717323
cli: resolve local icon paths relative to d2 file
2024-04-25 21:27:15 -06:00
Alexander Wang
79ce3d16e8
0.6.5
2024-04-17 19:48:55 -07:00
Alexander Wang
45a68d034c
0.6.4
2024-04-10 21:19:34 -07:00
Alexander Wang
2ebd4a6288
0.6.3
2023-12-14 16:27:11 -08:00
Alexander Wang
a098ba80ec
validate
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
d96f2c5efb
change lib/version
2023-12-05 15:39:58 -08:00
gavin-ts
3edfaa4fe1
Merge pull request #1723 from hjr265/master
...
cli: override log output from d2cli only
2023-12-01 13:54:14 -08:00
Gavin Nishizawa
b9a5dad820
save cloud innerbox aspect ratio
2023-11-16 18:37:37 -08:00
Gavin Nishizawa
ade01c8c54
update cloud shape innerBox selection according to content dimensions
2023-11-16 17:33:45 -08:00
Gavin Nishizawa
88304c9f62
link
2023-11-15 21:38:52 -08:00
Gavin Nishizawa
f132b3aed6
cleanup
2023-11-15 21:38:36 -08:00
Gavin Nishizawa
f119d582e0
fix shape circle functions
2023-11-15 21:38:36 -08:00
Mahmud Ridwan
39d3d4755a
Override log output from d2cli only
2023-11-11 09:32:25 +06:00
Gavin Nishizawa
eb755db91c
use more efficient label position type
2023-11-07 16:27:45 -08:00
Alexander Wang
5eead31c91
urlenc: remove compression dictionary
2023-11-07 11:39:24 -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
94669f9b04
add generic SyncMap lib
2023-10-30 12:08:01 -07:00
Gavin Nishizawa
a67c186cae
d2fonts.FontFaces sync.Map
2023-10-24 16:40:56 -07:00
Gavin Nishizawa
32fbe7e4a8
create simplelog Logger interface
2023-10-19 17:44:39 -07:00
Gavin Nishizawa
504eb2fa69
also remove dependency from png and xgif libs
2023-10-19 16:55:13 -07:00
Gavin Nishizawa
4dda484b50
test logging
2023-10-19 16:31:46 -07:00
Gavin Nishizawa
0df39dbeea
cleanup test logging
2023-10-19 16:15:08 -07:00
Gavin Nishizawa
eba687fbbe
don't use xmain.State in imgbundler library
2023-10-19 16:06:12 -07:00
Eng Zer Jun
5c2d468058
lib/color: avoid unnecessary byte/string conversion
...
We can use `(*regexp.Regexp).MatchString` instead of
`(*regexp.Regexp).Match([]byte(...))` to avoid unnecessary `[]byte`
conversions and reduce allocations.
Example benchmark:
func BenchmarkMatch(b *testing.B) {
for i := 0; i < b.N; i++ {
if match := themeColorRegex.Match([]byte("N1")); !match {
b.Fail()
}
}
}
func BenchmarkMatchString(b *testing.B) {
for i := 0; i < b.N; i++ {
if match := themeColorRegex.MatchString("N1"); !match {
b.Fail()
}
}
}
goos: linux
goarch: amd64
pkg: oss.terrastruct.com/d2/lib/color
cpu: AMD Ryzen 7 PRO 4750U with Radeon Graphics
BenchmarkMatch-16 9894165 114.3 ns/op 2 B/op 1 allocs/op
BenchmarkMatchString-16 13439838 83.61 ns/op 0 B/op 0 allocs/op
PASS
ok oss.terrastruct.com/d2/lib/color 3.306s
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2023-10-18 23:30:11 +08:00
Alexander Wang
5e94849543
bump d2 version to 0.6.1
2023-09-25 13:16:55 -07:00
Gavin Nishizawa
477015d408
inject nested graph, fit, spacing
2023-09-21 13:17:17 -07:00
Alexander Wang
e1cb60c91e
fix mixed md
2023-08-08 11:51:16 -07:00
Alexander Wang
fc5e80bc2e
bump version
2023-07-22 09:42:39 -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
a8cc241c22
move overlaps func to d2
2023-07-19 17:32:33 -07:00
Gavin Nishizawa
b1cb08027e
update tracing to label box
2023-07-14 13:25:30 -07:00
Alexander Wang
92d87b553f
new implementation
2023-07-11 17:19:34 -07:00
Gavin Nishizawa
af32907a8a
user-specified label/icon positions
2023-06-22 19:17:56 -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