-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #557 from astrofrog/coords-in-toolbar
Imviz: Move coordinates overlay to toolbar
- Loading branch information
Showing
8 changed files
with
73 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
from .coords_info import * # noqa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
from traitlets import Unicode | ||
|
||
from jdaviz.core.registries import tool_registry | ||
from jdaviz.core.template_mixin import TemplateMixin | ||
from jdaviz.utils import load_template | ||
|
||
__all__ = ['CoordsInfo'] | ||
|
||
|
||
@tool_registry('g-coords-info') | ||
class CoordsInfo(TemplateMixin): | ||
template = load_template("coords_info.vue", __file__).tag(sync=True) | ||
pixel = Unicode("").tag(sync=True) | ||
world = Unicode("").tag(sync=True) | ||
value = Unicode("").tag(sync=True) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<template> | ||
<div v-if="pixel" style="white-space: nowrap;"> | ||
<b v-if="pixel">Pixel </b>{{ pixel }} <b v-if="value">Value </b>{{ value }}<br> | ||
<b v-if="world">World </b>{{ world }}<br> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters