Commit 4838d285 authored by Martin Owens's avatar Martin Owens 🤖

Do not show deprecation warnings for 1.0 API in 1.0.x

parent 6b3e47e4
Pipeline #171661994 passed with stages
in 3 minutes and 4 seconds
......@@ -361,34 +361,28 @@ class DeprecatedSvgMixin(object):
"""svg.selection"""
return self.selection
@deprecate
def set_selected(self, *ids):
"""svg.selection.set(*ids)"""
return self.selection.set(*ids)
@deprecate
def get_z_selected(self):
"""svg.selection.paint_order()"""
return self.selection.paint_order()
@deprecate
def get_selected(self, *types):
"""svg.selection.filter(*types).values()"""
return self.selection.filter(*types).values()
@deprecate
def get_selected_or_all(self, *types):
"""Set select_all = True in extension class"""
if not self.selection:
self.selection.set_all()
return self.selection.filter(*types)
@deprecate
def get_selected_bbox(self):
"""selection.bounding_box()"""
return self.selection.bounding_box()
@deprecate
def get_first_selected(self, *types):
"""selection.filter(*types).first() or [0] if you'd like an error"""
return self.selection.filter(*types).first()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment