mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
Resolve conflicts
This commit is contained in:
parent
9386461d27
commit
22a3bef670
2 changed files with 8 additions and 8 deletions
|
@ -192,6 +192,8 @@ class TransformMatchingStrings(AnimationGroup):
|
|||
target_indices_lists, target_indices
|
||||
)
|
||||
if not source_indices_lists or not target_indices_lists:
|
||||
source_indices.extend(it.chain(*source_indices_lists))
|
||||
target_indices.extend(it.chain(*target_indices_lists))
|
||||
continue
|
||||
anims.append(anim_class(
|
||||
source.build_parts_from_indices_lists(source_indices_lists),
|
||||
|
|
|
@ -116,15 +116,13 @@ class SVGMobject(VMobject):
|
|||
"style"
|
||||
)
|
||||
root = element_tree.getroot()
|
||||
style_attrs = {}
|
||||
rest_attrs = {}
|
||||
for k, v in root.attrib.items():
|
||||
if k in style_keys:
|
||||
style_attrs[k] = v
|
||||
else:
|
||||
rest_attrs[k] = v
|
||||
style_attrs = {
|
||||
k: v
|
||||
for k, v in root.attrib.items()
|
||||
if k in style_keys
|
||||
}
|
||||
|
||||
new_root = ET.Element("svg", rest_attrs)
|
||||
new_root = ET.Element("svg", {}) # TODO: width, height
|
||||
config_style_node = ET.SubElement(new_root, "g", config_style_attrs)
|
||||
root_style_node = ET.SubElement(config_style_node, "g", style_attrs)
|
||||
root_style_node.extend(root)
|
||||
|
|
Loading…
Add table
Reference in a new issue