histomicsui 1.8.1.dev216__tar.gz → 1.8.1.dev225__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/.circleci/config.yml +1 -0
- {histomicsui-1.8.1.dev216/histomicsui.egg-info → histomicsui-1.8.1.dev225}/PKG-INFO +1 -1
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225/histomicsui.egg-info}/PKG-INFO +1 -1
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui.egg-info/scm_file_list.json +6 -0
- histomicsui-1.8.1.dev225/histomicsui.egg-info/scm_version.json +8 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/annotationSpec.js +201 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tox.ini +0 -2
- histomicsui-1.8.1.dev216/histomicsui.egg-info/scm_version.json +0 -8
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/.circleci/get_version.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/.circleci/publish_pypi.sh +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/.editorconfig +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/.git-blame-ignore-revs +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/.gitignore +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/.pre-commit-config.yaml +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/LICENSE +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/MANIFEST.in +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/NOTICE +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/README.rst +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/codecov.yml +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/docs/annotation_group_restrictions.rst +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/docs/config_options.rst +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/docs/controls.rst +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/docs/images/cut.gif +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/docs/images/difference.gif +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/docs/images/intersect.gif +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/docs/images/union.gif +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/docs/images/xor.gif +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/docs/slicer_cli_plugins.rst +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/__init__.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/constants.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/girder_worker_plugin.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/handlers.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/models/__init__.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/models/aperio.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/models/case.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/models/cohort.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/models/image.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/models/meta.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/models/pathology.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/models/slide.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/rest/__init__.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/rest/aperio.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/rest/hui_resource.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/rest/image_browse_resource.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/rest/system.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/rest/tcga.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui.egg-info/SOURCES.txt +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui.egg-info/dependency_links.txt +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui.egg-info/entry_points.txt +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui.egg-info/not-zip-safe +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui.egg-info/requires.txt +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui.egg-info/top_level.txt +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/pyproject.toml +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/requirements-dev.txt +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/ruff.toml +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/sample_data/Easy1.png +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/sample_data/sample_svs_image.TCGA-DU-6399-01A-01-TS1.e8eb65de-d63e-42db-af6f-14fefbbdf7bd.svs +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/setup.cfg +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/setup.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/__init__.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/conftest.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/datastore.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/girder_utilities.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/test_files/.histomicsui_config.yaml +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/test_files/sample.anot +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/test_files/sample.meta +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/test_files/sample_girder_id.anot +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/test_files/test_analysis_detection.xml +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/test_files/test_analysis_features.xml +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/test_handlers.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/test_hui_rest.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/test_image_browse_endpoints.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/test_load.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/test_tcga.py +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/.eslintrc +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/allowedGroupsSpec.js +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/analysisSpec.js +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/girderUISpec.js +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/huiSpec.js +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/huiTest.js +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/itemSpec.js +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/metadataPanelSpec.js +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/metadataPlotSpec.js +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/overviewPanelSpec.js +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/panelLayoutSpec.js +0 -0
- {histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/pixelmapCategorySpec.js +0 -0
{histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui.egg-info/scm_file_list.json
RENAMED
|
@@ -94,6 +94,7 @@
|
|
|
94
94
|
"histomicsui/web_client/stylesheets/panels/regionSelector.styl",
|
|
95
95
|
"histomicsui/web_client/stylesheets/panels/zoomWidget.styl",
|
|
96
96
|
"histomicsui/web_client/stylesheets/popover/annotationContextMenu.styl",
|
|
97
|
+
"histomicsui/web_client/stylesheets/popover/annotationLegend.styl",
|
|
97
98
|
"histomicsui/web_client/stylesheets/popover/annotationPopover.styl",
|
|
98
99
|
"histomicsui/web_client/stylesheets/views/itemList.styl",
|
|
99
100
|
"histomicsui/web_client/stylesheets/views/searchResultsView.styl",
|
|
@@ -108,6 +109,9 @@
|
|
|
108
109
|
"histomicsui/web_client/templates/dialogs/openAnnotatedImage.pug",
|
|
109
110
|
"histomicsui/web_client/templates/dialogs/openImage.pug",
|
|
110
111
|
"histomicsui/web_client/templates/dialogs/saveAnnotation.pug",
|
|
112
|
+
"histomicsui/web_client/templates/dialogs/saveAnnotationLegendEntry.pug",
|
|
113
|
+
"histomicsui/web_client/templates/dialogs/saveAnnotationLegendEntryRow.pug",
|
|
114
|
+
"histomicsui/web_client/templates/dialogs/saveAnnotationLegendStopRow.pug",
|
|
111
115
|
"histomicsui/web_client/templates/elementProps.pug",
|
|
112
116
|
"histomicsui/web_client/templates/layout/header.pug",
|
|
113
117
|
"histomicsui/web_client/templates/layout/headerAnalyses.pug",
|
|
@@ -125,6 +129,7 @@
|
|
|
125
129
|
"histomicsui/web_client/templates/panels/regionSelector.pug",
|
|
126
130
|
"histomicsui/web_client/templates/panels/zoomWidget.pug",
|
|
127
131
|
"histomicsui/web_client/templates/popover/annotationContextMenu.pug",
|
|
132
|
+
"histomicsui/web_client/templates/popover/annotationLegend.pug",
|
|
128
133
|
"histomicsui/web_client/templates/popover/annotationPopover.pug",
|
|
129
134
|
"histomicsui/web_client/templates/popover/annotationPopoverMetadata.pug",
|
|
130
135
|
"histomicsui/web_client/templates/popover/pixelmapContextMenu.pug",
|
|
@@ -154,6 +159,7 @@
|
|
|
154
159
|
"histomicsui/web_client/views/layout/LoginView.js",
|
|
155
160
|
"histomicsui/web_client/views/layout/index.js",
|
|
156
161
|
"histomicsui/web_client/views/popover/AnnotationContextMenu.js",
|
|
162
|
+
"histomicsui/web_client/views/popover/AnnotationLegend.js",
|
|
157
163
|
"histomicsui/web_client/views/popover/AnnotationPopover.js",
|
|
158
164
|
"histomicsui/web_client/views/popover/PixelmapContextMenu.js",
|
|
159
165
|
"histomicsui/web_client/views/popover/index.js",
|
{histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/annotationSpec.js
RENAMED
|
@@ -1151,6 +1151,207 @@ girderTest.promise.done(function () {
|
|
|
1151
1151
|
});
|
|
1152
1152
|
});
|
|
1153
1153
|
|
|
1154
|
+
it('edit annotation legend', function () {
|
|
1155
|
+
runs(function () {
|
|
1156
|
+
expect($('.h-annotation-legend-container').hasClass('hidden')).toBe(true);
|
|
1157
|
+
$('.h-annotation-selector .h-annotation:contains("drawn 2") .h-edit-annotation-metadata').click();
|
|
1158
|
+
});
|
|
1159
|
+
|
|
1160
|
+
girderTest.waitForDialog();
|
|
1161
|
+
runs(function () {
|
|
1162
|
+
expect($('#h-annotation-name').val()).toBe('drawn 2');
|
|
1163
|
+
expect($('.h-legend-entry').length).toBe(0);
|
|
1164
|
+
$('.h-add-legend-entry').click();
|
|
1165
|
+
$('.h-add-legend-entry').click();
|
|
1166
|
+
expect($('.h-legend-entry').length).toBe(2);
|
|
1167
|
+
$('.h-legend-entry:first .h-legend-label').val('High');
|
|
1168
|
+
$('.h-legend-entry:first .h-legend-fill-color').val('red');
|
|
1169
|
+
$('.h-legend-entry:last .h-legend-label').val('Low');
|
|
1170
|
+
$('.h-legend-entry:last .h-legend-fill-color').val('blue');
|
|
1171
|
+
$('.h-legend-entry:last .h-legend-line-color').val('black');
|
|
1172
|
+
$('.h-legend-entry:last .h-legend-line-width').val(2);
|
|
1173
|
+
// reorder the entries
|
|
1174
|
+
$('.h-legend-entry:last .h-legend-move-up').click();
|
|
1175
|
+
expect($('.h-legend-entry:first .h-legend-label').val()).toBe('Low');
|
|
1176
|
+
$('.h-legend-entry:first .h-legend-move-up').click();
|
|
1177
|
+
expect($('.h-legend-entry:first .h-legend-label').val()).toBe('Low');
|
|
1178
|
+
$('.h-legend-entry:first .h-legend-move-down').click();
|
|
1179
|
+
expect($('.h-legend-entry:first .h-legend-label').val()).toBe('High');
|
|
1180
|
+
$('.h-legend-entry:last .h-legend-move-up').click();
|
|
1181
|
+
expect($('.h-legend-entry:first .h-legend-label').val()).toBe('Low');
|
|
1182
|
+
// entries without a label or with invalid colors are rejected
|
|
1183
|
+
$('.h-add-legend-entry').click();
|
|
1184
|
+
$('.h-legend-entry:last .h-legend-fill-color').val('not a color');
|
|
1185
|
+
$('.h-submit').click();
|
|
1186
|
+
|
|
1187
|
+
var validationEl = $('.g-validation-failed-message');
|
|
1188
|
+
expect(validationEl.hasClass('hidden')).toBe(false);
|
|
1189
|
+
expect(validationEl.text()).toBe('Legend entries must have a label. Invalid legend color.');
|
|
1190
|
+
expect($('.h-legend-entry:last .has-error').length).toBe(2);
|
|
1191
|
+
expect($('.h-legend-entry:first .has-error').length).toBe(0);
|
|
1192
|
+
// entries without any color are rejected
|
|
1193
|
+
$('.h-legend-entry:last .h-legend-label').val('No color');
|
|
1194
|
+
$('.h-legend-entry:last .h-legend-fill-color').val('');
|
|
1195
|
+
$('.h-submit').click();
|
|
1196
|
+
expect(validationEl.text()).toBe('Legend entries must have a fill or line color.');
|
|
1197
|
+
expect($('.h-legend-entry:last .has-error').length).toBe(2);
|
|
1198
|
+
|
|
1199
|
+
$('.h-legend-entry:last .h-legend-remove').click();
|
|
1200
|
+
expect($('.h-legend-entry').length).toBe(2);
|
|
1201
|
+
$('.h-submit').click();
|
|
1202
|
+
});
|
|
1203
|
+
|
|
1204
|
+
girderTest.waitForLoad();
|
|
1205
|
+
runs(function () {
|
|
1206
|
+
var annotation = huiTest.app.bodyView.annotations.filter(function (annotation) {
|
|
1207
|
+
return annotation.get('annotation').name === 'drawn 2';
|
|
1208
|
+
})[0];
|
|
1209
|
+
expect(annotation.get('annotation').legend).toEqual([
|
|
1210
|
+
{label: 'Low', fillColor: 'rgb(0, 0, 255)', lineColor: 'rgb(0, 0, 0)', lineWidth: 2},
|
|
1211
|
+
{label: 'High', fillColor: 'rgb(255, 0, 0)'}
|
|
1212
|
+
]);
|
|
1213
|
+
});
|
|
1214
|
+
waitsFor(function () {
|
|
1215
|
+
return $('.h-annotation-legend-container:not(.hidden) .h-annotation-legend-entry').length === 2;
|
|
1216
|
+
}, 'legend to be shown');
|
|
1217
|
+
runs(function () {
|
|
1218
|
+
var $legend = $('.h-annotation-legend-container');
|
|
1219
|
+
expect($legend.find('.h-annotation-legend-name').text()).toBe('drawn 2');
|
|
1220
|
+
expect($legend.find('.h-annotation-legend-label').first().text()).toBe('Low');
|
|
1221
|
+
expect($legend.find('.h-annotation-legend-label').last().text()).toBe('High');
|
|
1222
|
+
var swatch = $legend.find('.h-annotation-legend-swatch').first();
|
|
1223
|
+
expect(swatch.css('background-color')).toBe('rgb(0, 0, 255)');
|
|
1224
|
+
expect(swatch.css('border-top-color')).toBe('rgb(0, 0, 0)');
|
|
1225
|
+
expect(swatch.css('border-top-width')).toBe('2px');
|
|
1226
|
+
// collapse and expand the legend
|
|
1227
|
+
$legend.find('.h-annotation-legend-header').click();
|
|
1228
|
+
expect($legend.find('.h-annotation-legend-entry').length).toBe(0);
|
|
1229
|
+
expect($legend.find('.icon-up-open').length).toBe(1);
|
|
1230
|
+
$legend.find('.h-annotation-legend-header').click();
|
|
1231
|
+
expect($legend.find('.h-annotation-legend-entry').length).toBe(2);
|
|
1232
|
+
// hiding the annotation hides the legend
|
|
1233
|
+
$('.h-annotation-selector .h-annotation:contains("drawn 2") .h-toggle-annotation').click();
|
|
1234
|
+
});
|
|
1235
|
+
waitsFor(function () {
|
|
1236
|
+
return $('.h-annotation-legend-container').hasClass('hidden');
|
|
1237
|
+
}, 'legend to be hidden');
|
|
1238
|
+
runs(function () {
|
|
1239
|
+
$('.h-annotation-selector .h-annotation:contains("drawn 2") .h-toggle-annotation').click();
|
|
1240
|
+
});
|
|
1241
|
+
waitsFor(function () {
|
|
1242
|
+
return $('.h-annotation-legend-container:not(.hidden) .h-annotation-legend-entry').length === 2;
|
|
1243
|
+
}, 'legend to be shown again');
|
|
1244
|
+
runs(function () {
|
|
1245
|
+
// remove the legend
|
|
1246
|
+
$('.h-annotation-selector .h-annotation:contains("drawn 2") .h-edit-annotation-metadata').click();
|
|
1247
|
+
});
|
|
1248
|
+
girderTest.waitForDialog();
|
|
1249
|
+
runs(function () {
|
|
1250
|
+
expect($('.h-legend-entry').length).toBe(2);
|
|
1251
|
+
expect($('.h-legend-entry:first .h-legend-label').val()).toBe('Low');
|
|
1252
|
+
expect($('.h-legend-entry:first .h-legend-fill-color').val()).toMatch(/^rgb\(0, ?0, ?255\)$/);
|
|
1253
|
+
$('.h-legend-entry .h-legend-remove').click();
|
|
1254
|
+
expect($('.h-legend-entry').length).toBe(0);
|
|
1255
|
+
$('.h-submit').click();
|
|
1256
|
+
});
|
|
1257
|
+
girderTest.waitForLoad();
|
|
1258
|
+
runs(function () {
|
|
1259
|
+
var annotation = huiTest.app.bodyView.annotations.filter(function (annotation) {
|
|
1260
|
+
return annotation.get('annotation').name === 'drawn 2';
|
|
1261
|
+
})[0];
|
|
1262
|
+
expect(annotation.get('annotation').legend).toEqual([]);
|
|
1263
|
+
});
|
|
1264
|
+
waitsFor(function () {
|
|
1265
|
+
return $('.h-annotation-legend-container').hasClass('hidden');
|
|
1266
|
+
}, 'legend to be removed');
|
|
1267
|
+
});
|
|
1268
|
+
|
|
1269
|
+
it('edit annotation legend color range', function () {
|
|
1270
|
+
runs(function () {
|
|
1271
|
+
$('.h-annotation-selector .h-annotation:contains("drawn 2") .h-edit-annotation-metadata').click();
|
|
1272
|
+
});
|
|
1273
|
+
|
|
1274
|
+
girderTest.waitForDialog();
|
|
1275
|
+
runs(function () {
|
|
1276
|
+
expect($('.h-legend-entry').length).toBe(0);
|
|
1277
|
+
$('.h-add-legend-range').click();
|
|
1278
|
+
expect($('.h-legend-entry.h-legend-range-entry').length).toBe(1);
|
|
1279
|
+
expect($('.h-legend-stop').length).toBe(2);
|
|
1280
|
+
$('.h-legend-range-entry .h-legend-label').val('Patch IoU');
|
|
1281
|
+
$('.h-legend-stop:first .h-legend-stop-color').val('blue');
|
|
1282
|
+
// every color must be filled in
|
|
1283
|
+
$('.h-submit').click();
|
|
1284
|
+
var validationEl = $('.g-validation-failed-message');
|
|
1285
|
+
expect(validationEl.hasClass('hidden')).toBe(false);
|
|
1286
|
+
expect(validationEl.text()).toBe('Invalid legend color.');
|
|
1287
|
+
expect($('.h-legend-stop:last .has-error').length).toBe(1);
|
|
1288
|
+
// a range needs at least two colors
|
|
1289
|
+
$('.h-legend-stop:last .h-legend-remove-stop').click();
|
|
1290
|
+
expect($('.h-legend-stop').length).toBe(1);
|
|
1291
|
+
$('.h-submit').click();
|
|
1292
|
+
expect(validationEl.text()).toBe('Color ranges need at least two colors.');
|
|
1293
|
+
expect($('.h-legend-add-stop').hasClass('has-error')).toBe(true);
|
|
1294
|
+
$('.h-legend-add-stop').click();
|
|
1295
|
+
$('.h-legend-add-stop').click();
|
|
1296
|
+
expect($('.h-legend-stop').length).toBe(3);
|
|
1297
|
+
$('.h-legend-stop:eq(1) .h-legend-stop-color').val('white');
|
|
1298
|
+
$('.h-legend-stop:last .h-legend-stop-color').val('rgb(255, 0, 0)');
|
|
1299
|
+
$('.h-legend-stop:first .h-legend-stop-label').val('Low');
|
|
1300
|
+
$('.h-legend-stop:last .h-legend-stop-label').val('High');
|
|
1301
|
+
$('.h-legend-range-entry .h-legend-line-color').val('black');
|
|
1302
|
+
$('.h-submit').click();
|
|
1303
|
+
});
|
|
1304
|
+
|
|
1305
|
+
girderTest.waitForLoad();
|
|
1306
|
+
runs(function () {
|
|
1307
|
+
var annotation = huiTest.app.bodyView.annotations.filter(function (annotation) {
|
|
1308
|
+
return annotation.get('annotation').name === 'drawn 2';
|
|
1309
|
+
})[0];
|
|
1310
|
+
expect(annotation.get('annotation').legend).toEqual([{
|
|
1311
|
+
label: 'Patch IoU',
|
|
1312
|
+
fillColor: ['rgb(0, 0, 255)', 'rgb(255, 255, 255)', 'rgb(255, 0, 0)'],
|
|
1313
|
+
labels: ['Low', '', 'High'],
|
|
1314
|
+
lineColor: 'rgb(0, 0, 0)'
|
|
1315
|
+
}]);
|
|
1316
|
+
});
|
|
1317
|
+
waitsFor(function () {
|
|
1318
|
+
return $('.h-annotation-legend-container:not(.hidden) .h-annotation-legend-range').length === 1;
|
|
1319
|
+
}, 'legend range to be shown');
|
|
1320
|
+
runs(function () {
|
|
1321
|
+
var $range = $('.h-annotation-legend-container .h-annotation-legend-range');
|
|
1322
|
+
expect($range.find('.h-annotation-legend-label').text()).toBe('Patch IoU');
|
|
1323
|
+
expect($range.find('.h-annotation-legend-bar').attr('style')).toMatch(/linear-gradient\(to right, rgb\(0, 0, 255\), rgb\(255, 255, 255\), rgb\(255, 0, 0\)\)/);
|
|
1324
|
+
expect($range.find('.h-annotation-legend-bar').css('border-top-color')).toBe('rgb(0, 0, 0)');
|
|
1325
|
+
var $labels = $range.find('.h-annotation-legend-range-label');
|
|
1326
|
+
expect($labels.length).toBe(2);
|
|
1327
|
+
expect($labels.first().text()).toBe('Low');
|
|
1328
|
+
expect($labels.last().text()).toBe('High');
|
|
1329
|
+
// remove the legend
|
|
1330
|
+
$('.h-annotation-selector .h-annotation:contains("drawn 2") .h-edit-annotation-metadata').click();
|
|
1331
|
+
});
|
|
1332
|
+
girderTest.waitForDialog();
|
|
1333
|
+
runs(function () {
|
|
1334
|
+
expect($('.h-legend-range-entry').length).toBe(1);
|
|
1335
|
+
expect($('.h-legend-stop').length).toBe(3);
|
|
1336
|
+
expect($('.h-legend-stop:first .h-legend-stop-color').val()).toMatch(/^rgb\(0, ?0, ?255\)$/);
|
|
1337
|
+
expect($('.h-legend-stop:first .h-legend-stop-label').val()).toBe('Low');
|
|
1338
|
+
expect($('.h-legend-stop:eq(1) .h-legend-stop-label').val()).toBe('');
|
|
1339
|
+
$('.h-legend-entry .h-legend-remove').click();
|
|
1340
|
+
expect($('.h-legend-entry').length).toBe(0);
|
|
1341
|
+
$('.h-submit').click();
|
|
1342
|
+
});
|
|
1343
|
+
girderTest.waitForLoad();
|
|
1344
|
+
runs(function () {
|
|
1345
|
+
var annotation = huiTest.app.bodyView.annotations.filter(function (annotation) {
|
|
1346
|
+
return annotation.get('annotation').name === 'drawn 2';
|
|
1347
|
+
})[0];
|
|
1348
|
+
expect(annotation.get('annotation').legend).toEqual([]);
|
|
1349
|
+
});
|
|
1350
|
+
waitsFor(function () {
|
|
1351
|
+
return $('.h-annotation-legend-container').hasClass('hidden');
|
|
1352
|
+
}, 'legend to be removed');
|
|
1353
|
+
});
|
|
1354
|
+
|
|
1154
1355
|
it('set annotation permissions to WRITE', function () {
|
|
1155
1356
|
runs(function () {
|
|
1156
1357
|
$('.h-annotation-selector .h-annotation:contains("edited 1") .h-edit-annotation-metadata').click();
|
|
@@ -152,12 +152,10 @@ skip_install = true
|
|
|
152
152
|
deps =
|
|
153
153
|
autopep8
|
|
154
154
|
isort
|
|
155
|
-
unify
|
|
156
155
|
ruff
|
|
157
156
|
commands =
|
|
158
157
|
isort {posargs:.}
|
|
159
158
|
autopep8 -ria histomicsui tests
|
|
160
|
-
unify --in-place --recursive histomicsui tests
|
|
161
159
|
ruff check histomicsui tests --fix
|
|
162
160
|
|
|
163
161
|
[pytest]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/docs/annotation_group_restrictions.rst
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui/rest/image_browse_resource.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/histomicsui.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/test_files/.histomicsui_config.yaml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/test_files/sample_girder_id.anot
RENAMED
|
File without changes
|
{histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/test_files/test_analysis_detection.xml
RENAMED
|
File without changes
|
{histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/test_files/test_analysis_features.xml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/allowedGroupsSpec.js
RENAMED
|
File without changes
|
{histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/analysisSpec.js
RENAMED
|
File without changes
|
{histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/girderUISpec.js
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/metadataPanelSpec.js
RENAMED
|
File without changes
|
{histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/metadataPlotSpec.js
RENAMED
|
File without changes
|
{histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/overviewPanelSpec.js
RENAMED
|
File without changes
|
{histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/panelLayoutSpec.js
RENAMED
|
File without changes
|
{histomicsui-1.8.1.dev216 → histomicsui-1.8.1.dev225}/tests/web_client_specs/pixelmapCategorySpec.js
RENAMED
|
File without changes
|