diff --git a/d2compiler/compile.go b/d2compiler/compile.go index abd75463b..c6bc4ec34 100644 --- a/d2compiler/compile.go +++ b/d2compiler/compile.go @@ -482,7 +482,7 @@ func (c *compiler) compileStyle(attrs *d2graph.Attributes, m *d2ir.Map) { } func (c *compiler) compileStyleField(attrs *d2graph.Attributes, f *d2ir.Field) { - if _, ok := d2graph.StyleKeywords[f.Name]; !ok { + if _, ok := d2graph.StyleKeywords[strings.ToLower(f.Name)]; !ok { c.errorf(f.LastRef().AST(), `invalid style keyword: "%s"`, f.Name) return } diff --git a/d2renderers/d2sketch/sketch_test.go b/d2renderers/d2sketch/sketch_test.go index 177ed47dc..c1aa0cb06 100644 --- a/d2renderers/d2sketch/sketch_test.go +++ b/d2renderers/d2sketch/sketch_test.go @@ -244,7 +244,7 @@ Android: { web -> twitter fe timeline scorer: "Timeline\nScorer" { - style.fill "#ffdef1" + style.fill: "#ffdef1" } home ranker: Home Ranker @@ -283,7 +283,7 @@ prediction service2: Prediction Service { icon: https://cdn-icons-png.flaticon.com/512/6461/6461819.png } home scorer: Home Scorer { - style.fill "#ffdef1" + style.fill: "#ffdef1" } manhattan: Manhattan memcache: Memcache { @@ -766,7 +766,7 @@ Android: { web -> twitter fe timeline scorer: "Timeline\nScorer" { - style.fill "#ffdef1" + style.fill: "#ffdef1" } home ranker: Home Ranker @@ -805,7 +805,7 @@ prediction service2: Prediction Service { icon: https://cdn-icons-png.flaticon.com/512/6461/6461819.png } home scorer: Home Scorer { - style.fill "#ffdef1" + style.fill: "#ffdef1" } manhattan: Manhattan memcache: Memcache { diff --git a/d2renderers/d2sketch/testdata/twitter_dark/sketch.exp.svg b/d2renderers/d2sketch/testdata/twitter_dark/sketch.exp.svg index 88e22dde2..cfe5de158 100644 --- a/d2renderers/d2sketch/testdata/twitter_dark/sketch.exp.svg +++ b/d2renderers/d2sketch/testdata/twitter_dark/sketch.exp.svg @@ -1,27 +1,27 @@ - @@ -859,7 +859,7 @@ -People discovery serviceAd mixerOnboarding serviceTwitter Frontend WebIphoneAndroidTimelineScorerHome RankerTimeline ServiceHome mixerManhattanGizmoduckSocial graphTweety PiePrediction ServiceHome ScorerManhattanMemcacheFetchFeatureScoringPrediction Service...etc

Timeline mixer

+People discovery serviceAd mixerOnboarding serviceTwitter Frontend WebIphoneAndroidTimelineScorerHome RankerTimeline ServiceHome mixerManhattanGizmoduckSocial graphTweety PiePrediction ServiceHome ScorerManhattanMemcacheFetchFeatureScoringPrediction Service...etc

Timeline mixer

  • Inject ads, who-to-follow, onboarding
  • Conversation module
  • @@ -868,7 +868,7 @@
  • Served data logging
GraphQLFederated Strato Column

Tweet/user content hydration, visibility filtering

-
TLS-API (being deprecated)CrMixerEarlyBirdUtagSpaceCommunities iPhone web HTTP Android Thrift RPC Candidate Fetch Feature Hydration Candidate sources +
TLS-API (being deprecated)CrMixerEarlyBirdUtagSpaceCommunities iPhone web HTTP Android Thrift RPC Candidate Fetch Feature Hydration Candidate sources