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):
return self.selection
def set_selected(self, *ids):
return self.selection.set(*ids)
def get_z_selected(self):
return self.selection.paint_order()
def get_selected(self, *types):
return self.selection.filter(*types).values()
def get_selected_or_all(self, *types):
"""Set select_all = True in extension class"""
if not self.selection:
return self.selection.filter(*types)
def get_selected_bbox(self):
return self.selection.bounding_box()
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