MCPcopy
hub / github.com/tdewolff/canvas / String

Method String

svg.go:1367–1382  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1365}
1366
1367func (rule cssRule) String() string {
1368 sb := strings.Builder{}
1369 for i, sel := range rule.selectors {
1370 if i != 0 {
1371 sb.WriteString(", ")
1372 }
1373 sb.WriteString(sel.String())
1374 }
1375 sb.WriteString(" { ")
1376 for _, prop := range rule.props {
1377 sb.WriteString(prop.String())
1378 sb.WriteString("; ")
1379 }
1380 sb.WriteString("}")
1381 return sb.String()
1382}
1383
1384var cssColors = map[string]color.RGBA{
1385 "aliceblue": {240, 248, 255, 255},

Callers 5

parseStyleMethod · 0.45
parseStyleAttributeMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45
StringMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected