Hidde Boomsma
15b7bdb384
Allow current color as valid css color
...
In SVG images `curentColor` is allowed as a way to explicitly inherit the current color. When setting `currentColor` as fill color on a shape together with a styling class, the class will now be used instead of the theme, which was not possible otherwise.
2023-11-03 06:36:05 +01:00
gavin-ts
451aa70fd6
Merge pull request #1699 from gavin-ts/changelog-1681
...
changelog #1681
2023-11-02 15:17:45 -07:00
Gavin Nishizawa
af79646717
changelog
2023-11-02 10:39:29 -07:00
gavin-ts
1e792feaa6
Merge pull request #1681 from landmaj/elk_ports
...
ELK: use ports for columns in the sql table shape
2023-11-02 10:36:52 -07:00
Alexander Wang
65c4849eff
Merge pull request #1695 from alixander/vars-panic
...
compiler: vars fixes
2023-11-01 13:31:49 -07:00
Alexander Wang
cb001ad925
nit
2023-11-01 13:21:11 -07:00
Alexander Wang
ffe5a1fe86
compiler: fix vars crashing. Change scoping behavior
2023-11-01 12:26:17 -07:00
Alexander Wang
92ef0b789a
Merge pull request #1691 from alixander/glob-label-near
...
compiler: Fix errors in globs
2023-10-31 16:04:04 -07:00
Alexander Wang
5c6a94a6ca
compiler: Fix compiler errors of keys in globs
2023-10-31 15:55:25 -07:00
gavin-ts
df1d49f6be
Merge pull request #1683 from gavin-ts/fontencoding-syncmap
...
fix d2fonts race condition in TestCLI_E2E
2023-10-30 17:41:09 -07: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
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