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

Method GradientUpdateAllStops

svg/gradient.go:331–338  ·  view source on GitHub ↗

GradientUpdateAllStops removes any items from Defs that are not actually referred to by anything in the current SVG tree. Returns true if items were removed. Does not remove gradients with StopsName = "" with extant stops -- these should be removed manually, as they are not automatically generated.

()

Source from the content-addressed store, hash-verified

329// Does not remove gradients with StopsName = "" with extant stops -- these
330// should be removed manually, as they are not automatically generated.
331func (sv *SVG) GradientUpdateAllStops() {
332 for _, k := range sv.Defs.Children {
333 gr, ok := k.(*Gradient)
334 if ok {
335 sv.GradientUpdateStops(gr)
336 }
337 }
338}

Callers

nothing calls this directly

Calls 1

GradientUpdateStopsMethod · 0.95

Tested by

no test coverage detected