Commit graph

3869 commits

Author SHA1 Message Date
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
Stephan van Stekelenburg
a7052d6864
Add C# sdk link
Add link to C# dotnet sdk
2023-10-30 16:32:07 +01:00
gavin-ts
d09024e22d
Merge pull request #1686 from gavin-ts/no-arrowheads-in-shape
add compiler error when using arrowheads on shape
2023-10-28 12:14:53 -07:00
Gavin Nishizawa
100df78341
changelog 2023-10-27 21:04:58 -07:00
Gavin Nishizawa
7e93c58df8
test now passes 2023-10-27 21:02:13 -07:00
Gavin Nishizawa
2893a48191
error using source/target-arrowhead on shape 2023-10-27 21:00:46 -07:00
Gavin Nishizawa
70b46bacd0
add no_arrowheads_in_shape compiler test 2023-10-27 21:00:16 -07:00
Michał Wieluński
b76eaa4433
Fix rowCenter calculation in ELK
Co-authored-by: gavin-ts <85081687+gavin-ts@users.noreply.github.com>
2023-10-25 08:53:54 +02:00
Gavin Nishizawa
a67c186cae
d2fonts.FontFaces sync.Map 2023-10-24 16:40:56 -07:00
Gavin Nishizawa
6b255c61da
d2fonts.FontEncodings sync.Map 2023-10-24 16:31:30 -07:00
Michał Wieluński
28c04bbcb2
use ports in ELK plugin
fixes #1429
2023-10-22 13:46:06 +02:00
gavin-ts
0a7e6c83a3
Merge pull request #1679 from gavin-ts/glob-dimensions
fix elk: growing shapes with width/height set
2023-10-21 11:18:06 -07:00
Gavin Nishizawa
40e8cc8530
cleanup 2023-10-20 16:21:41 -07:00
Gavin Nishizawa
637048ad28
changelog 2023-10-20 16:19:53 -07:00
Gavin Nishizawa
6e6da743b3
update test 2023-10-20 16:14:08 -07:00
Gavin Nishizawa
9ab1971d54
elk: don't grow node if there is a width/height input 2023-10-20 16:13:54 -07:00
Gavin Nishizawa
ca754aefdc
add glob_dimensions test 2023-10-20 14:49:09 -07:00
gavin-ts
4cba5d27e6
Merge pull request #1678 from gavin-ts/update-imgbundler
remove imgbundler's xmain.State dependency
2023-10-19 21:24:36 -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
Alexander Wang
0e8fa7cd8f
Merge pull request #1672 from Juneezee/master
lib/color: avoid unnecessary byte/string conversion
2023-10-18 11:48:09 -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
gavin-ts
a3a685d96f
Merge pull request #1670 from gavin-ts/grid-image-label
update grid cell's label/icon positioning
2023-10-17 12:07:05 -07:00
Gavin Nishizawa
00a3d32d81
cleanup, comment 2023-10-16 20:37:56 -07:00
Gavin Nishizawa
dd34d3a887
update tests 2023-10-16 17:39:56 -07:00
Gavin Nishizawa
bd6c1d1af1
update sizing adjustments pre/post grid layout 2023-10-16 17:34:30 -07:00
Gavin Nishizawa
04a64e46c3
changelog 2023-10-16 16:54:58 -07:00
Gavin Nishizawa
85becde1da
update tests 2023-10-16 16:48:00 -07:00
Gavin Nishizawa
e77c7a20a6
update test 2023-10-16 16:45:44 -07:00
Gavin Nishizawa
514bb89472
improve margin adjustments for outside labels 2023-10-16 16:45:18 -07:00
Gavin Nishizawa
c647c6fb2e
update grid cell label/icon positioning 2023-10-16 16:45:18 -07:00
Gavin Nishizawa
69ad220acd
more difficult test 2023-10-16 16:45:12 -07:00
Gavin Nishizawa
3df57f84da
add grid_image_label_position test 2023-10-16 15:44:26 -07:00
Alexander Wang
fe0006b290
Update next.md 2023-10-14 21:58:26 -07:00
Alexander Wang
0c7a4b66b7
Merge pull request #1660 from landmaj/master
fix invisible null constraints in sql_table
2023-10-13 10:14:17 -07:00
Michał Wieluński
448b51c345
fix invisible null constraints in sql_table
fixes #1655
2023-10-13 10:33:38 +02:00
gavin-ts
4e73736dd0
Merge pull request #1661 from gavin-ts/fix-ci-commit-ssh-sig-check
update ci with fix for ssh signatures
2023-10-12 15:04:37 -07:00
Gavin Nishizawa
3fe2943c1c
update ci with fix for ssh signatures 2023-10-12 13:52:49 -07:00
gavin-ts
1383464dfc
Merge pull request #1645 from gavin-ts/check-for-commit-signatures
workflow check for commit signatures
2023-10-06 16:23:02 -07:00
gavin-ts
318e628c78
Merge pull request #1643 from gavin-ts/fix-var-in-glob
Fix panic with var in glob
2023-10-06 16:20:24 -07:00
Gavin Nishizawa
f200c19e31
d2oracle Equals 2023-10-06 15:48:19 -07:00
gavin-ts
db126ab477
Merge pull request #1646 from gavin-ts/fix-grid-rows-gap-bug
Fix grid rows gap bug
2023-10-06 15:20:46 -07:00
Gavin Nishizawa
5b4818aefa
changelog 2023-10-05 18:57:04 -07:00
Gavin Nishizawa
9797f5503f
update tests 2023-10-05 18:52:28 -07:00
Gavin Nishizawa
7a7d3edc3c
update test 2023-10-05 18:49:38 -07:00