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
Gavin Nishizawa
fcd4fefb64
move to timelib.WithTimeout
2023-06-14 13:06:40 -07:00
Gavin Nishizawa
19cc5ee0e2
util func for overriding default timeout according to env var
2023-06-13 17:37:24 -07:00
Gavin Nishizawa
7547d51727
configure timeout with D2_TIMEOUT
2023-06-12 15:46:38 -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
Alexander Wang
79e192f9c1
fmt
2023-06-06 11:33:00 -07:00
Alexander Wang
afdc90f1f8
add test for cache
2023-06-06 11:17:02 -07:00
Alexander Wang
df7d6536e9
flag
2023-06-06 11:09:19 -07:00
Alexander Wang
b37b5571e1
logs
2023-06-06 10:56:44 -07:00
Alexander Wang
c40dc7ec34
img optimizations
2023-06-06 10:43:52 -07:00
Gavin Nishizawa
4015a48664
fix dagre shifting connection start past 2nd point
2023-06-02 15:52:06 -07:00
Alexander Wang
8edf2987bc
test
2023-06-01 00:13:40 -07:00
Alexander Wang
25fd96c0fc
add testdata for urlenc
2023-06-01 00:07:57 -07:00
Alexander Wang
4d5d9e65ad
remove redundant keywords in compression dict
2023-05-31 23:32:22 -07:00
Bernard Xie
b22959213e
Update subsetFont.go
2023-05-31 18:37:14 -07:00