From 47efa6d4273db83902e79773e8738bab05022ebc Mon Sep 17 00:00:00 2001 From: Kyle Conroy Date: Wed, 20 Nov 2024 07:48:36 -0500 Subject: [PATCH] glue-state-select component --- jdaviz/app.py | 1 + jdaviz/components/glue_state_select.vue | 37 ++++++++ .../plugins/plot_options/plot_options.vue | 91 +++++++++---------- 3 files changed, 80 insertions(+), 49 deletions(-) create mode 100644 jdaviz/components/glue_state_select.vue diff --git a/jdaviz/app.py b/jdaviz/app.py index 7a86fe5020..526a8e6a1f 100644 --- a/jdaviz/app.py +++ b/jdaviz/app.py @@ -155,6 +155,7 @@ def to_unit(self, data, cid, values, original_units, target_units): 'plugin-color-picker': 'components/plugin_color_picker.vue', 'plugin-input-header': 'components/plugin_input_header.vue', 'glue-state-sync-wrapper': 'components/glue_state_sync_wrapper.vue', + 'glue-state-select': 'components/glue_state_select.vue', 'data-menu-add': 'components/data_menu_add.vue', 'data-menu-remove': 'components/data_menu_remove.vue', 'data-menu-subset-edit': 'components/data_menu_subset_edit.vue', diff --git a/jdaviz/components/glue_state_select.vue b/jdaviz/components/glue_state_select.vue new file mode 100644 index 0000000000..757913ef8f --- /dev/null +++ b/jdaviz/components/glue_state_select.vue @@ -0,0 +1,37 @@ + + + + + diff --git a/jdaviz/configs/default/plugins/plot_options/plot_options.vue b/jdaviz/configs/default/plugins/plot_options/plot_options.vue index 4f915c364d..04a295705f 100644 --- a/jdaviz/configs/default/plugins/plot_options/plot_options.vue +++ b/jdaviz/configs/default/plugins/plot_options/plot_options.vue @@ -361,14 +361,13 @@ - + :selected.syn="marker_size_mode_value" + label="Size Mode" + api_hint="plg.marker_size_mode = " + :api_hints_enabled="api_hints_enabled" + /> @@ -396,14 +395,13 @@ - + :selected.sync="marker_size_col_value" + label="Column" + api_hint="plg.marker_size_col = " + :api_hints_enabled="api_hints_enabled" + /> @@ -430,14 +428,13 @@ - + :selected.sync="marker_color_mode_value" + label="Color Mode" + api_hint="plg.marker_color_mode = " + :api_hints_enabled="api_hints_enabled" + /> @@ -451,25 +448,23 @@ - + :selected.sync="marker_color_col_value" + label="Column" + api_hint="plg.marker_color_col = " + :api_hints_enabled="api_hints_enabled" + /> - + :selected.sync="marker_colormap_value" + label="Colormap" + api_hint="plg.marker_colormap = " + :api_hints_enabled="api_hints_enabled" + /> @@ -603,25 +598,23 @@ Stretch - + :selected.sync="stretch_function_value" + label="Stretch Function" + api_hint="plg.stretch_function = " + :api_hints_enabled="api_hints_enabled" + /> - + :selected.sync="stretch_preset_value" + label="Stretch Percentile Preset" + api_hint="plg.stretch_preset = " + :api_hints_enabled="api_hints_enabled" + />