MCPcopy Create free account
hub / github.com/cogentcore/core / AggCSS

Function AggCSS

svg/node.go:348–353  ·  view source on GitHub ↗

AggCSS aggregates css properties

(agg *map[string]any, css map[string]any)

Source from the content-addressed store, hash-verified

346
347// AggCSS aggregates css properties
348func AggCSS(agg *map[string]any, css map[string]any) {
349 if *agg == nil {
350 *agg = make(map[string]any)
351 }
352 maps.Copy(*agg, css)
353}
354
355// ApplyCSS applies css styles to given node,
356// using key to select sub-properties from overall properties list

Callers 1

StyleMethod · 0.85

Calls 1

CopyMethod · 0.65

Tested by

no test coverage detected