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.
()
| 329 | // Does not remove gradients with StopsName = "" with extant stops -- these |
| 330 | // should be removed manually, as they are not automatically generated. |
| 331 | func (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 | } |
nothing calls this directly
no test coverage detected