generatePoints method
void
generatePoints(
)
override
Implementation
@override
void generatePoints() {
if (SVGMobjectCache.containsKey(content)) {
var mob = SVGMobjectCache[content]!.copy();
submobjects = mob.submobjects;
height = mob.height;
width = mob.width;
unpackGroups = mob.unpackGroups;
shouldCenter = mob.shouldCenter;
return;
}
var doc = parse(content);
for (var svg in doc.getElementsByTagName('svg')) {
var mobjects = getMobjectsFrom(svg, SVGElementStyle(fillColor: BLACK));
if (unpackGroups) {
add(mobjects);
} else {
add(mobjects.first.submobjects);
}
}
SVGMobjectCache[content] = copy();
}