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
Bernard Xie
0e5da2fa56
Update subsetFont.go
2023-05-31 18:30:21 -07:00
Bernard Xie
73cd05f9e9
new comment
2023-05-31 18:28:53 -07:00
Bernard Xie
dedf9e2d55
more accurate
2023-05-31 16:58:10 -07:00
Bernard Xie
62a4d52b47
better way
2023-05-31 16:46:11 -07:00
Bernard Xie
8de7711e68
fix
2023-05-31 16:30:11 -07:00
Gavin Nishizawa
ee70180a87
fixes
2023-05-25 18:35:58 -07:00
Gavin Nishizawa
53709d641a
export connection truncate decimals along route
2023-05-25 16:22:04 -07:00
Alexander Wang
cd6c6b6fda
bump tests
2023-05-01 13:53:19 -07:00
Gavin Nishizawa
ae6618a195
update get point at distance
2023-05-01 13:24:56 -07:00
Júlio César Batista
56af2f41e3
search for white index
2023-04-28 18:53:29 -03:00
Júlio César Batista
129d51a1e6
fix gif pallete
2023-04-28 18:26:25 -03:00
Alexander Wang
648161fbea
bump version
2023-04-17 18:47:47 -07:00
gavin-ts
eae415a206
Merge pull request #1207 from gavin-ts/arrowhead-label-dimensions
...
Update arrowhead label positioning and use label dimensions
2023-04-17 15:26:57 -07:00