Skip to content

Commit

Permalink
no public API (yet) for table viewers
Browse files Browse the repository at this point in the history
  • Loading branch information
kecnry committed Nov 13, 2023
1 parent 3c2eb71 commit 861661d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jdaviz/configs/default/plugins/viewers.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,16 @@ def __init__(self, *args, **kwargs):

@property
def user_api(self):
# default exposed user APIs. Can override this method in any particular viewer.
if isinstance(self, BqplotImageView):
if hasattr(self, 'zoom_level'):
expose = ['zoom', 'zoom_level']
else:
# cubeviz image viewers don't inherit from AstrowidgetsImageViewerMixin yet,
# but also shouldn't expose set_lims because of equal aspect ratio concerns
expose = []
elif isinstance(self, TableViewer):
expose = []
else:
expose = ['set_lims']
return ViewerUserApi(self, expose=expose)
Expand Down

0 comments on commit 861661d

Please sign in to comment.