histomicsui 1.7.2.dev2__py2.py3-none-any.whl → 1.7.2.dev4__py2.py3-none-any.whl

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.
@@ -467,26 +467,26 @@ var SaveAnnotation = View.extend({
467
467
 
468
468
  // all valid
469
469
  if (setFillColor || setLineColor || setLineWidth) {
470
- this.annotation.elements().each((element, idx) => { /* eslint-disable backbone/no-silent */
470
+ this.annotation.elements().each((element, idx) => {
471
471
  if (setFillColor) {
472
472
  if (setFillColor === 'func') {
473
473
  fillColor = colorFromFunc(element, idx, fillColorParam, this._styleableFuncs[fillColorParam.key]);
474
474
  }
475
- element.set('fillColor', fillColor, {silent: true});
475
+ element.set('fillColor', fillColor, {delaySave: true});
476
476
  }
477
477
  if (setLineColor) {
478
478
  if (setLineColor === 'func') {
479
479
  lineColor = colorFromFunc(element, idx, lineColorParam, this._styleableFuncs[lineColorParam.key]);
480
480
  }
481
- element.set('lineColor', lineColor, {silent: true});
481
+ element.set('lineColor', lineColor, {delaySave: true});
482
482
  }
483
483
  if (setLineWidth) {
484
- element.set('lineWidth', lineWidth, {silent: true});
484
+ element.set('lineWidth', lineWidth, {delaySave: true});
485
485
  }
486
486
  });
487
487
  const annotationData = _.extend({}, this.annotation.get('annotation'));
488
488
  annotationData.elements = this.annotation.elements().toJSON();
489
- this.annotation.set('annotation', annotationData, {silent: true});
489
+ this.annotation.set('annotation', annotationData, {delaySave: true});
490
490
  }
491
491
 
492
492
  const visible = this.$('#h-annotation-visible').prop('checked');
@@ -441,7 +441,10 @@ var AnnotationSelector = Panel.extend({
441
441
  );
442
442
  },
443
443
 
444
- _saveAnnotation(annotation) {
444
+ _saveAnnotation(annotation, options) {
445
+ if (options && options.delaySave) {
446
+ return;
447
+ }
445
448
  if (this.viewer && !this.viewer._saving) {
446
449
  this.viewer._saving = {};
447
450
  }
@@ -435,7 +435,7 @@ var DrawWidget = Panel.extend({
435
435
  }
436
436
  return result;
437
437
  }).filter((annot) => !annot.points || annot.points.length);
438
- Object.keys(oldids).forEach((id) => this.deleteElement(undefined, id, {silent: elements.length}));
438
+ Object.keys(oldids).forEach((id) => this.deleteElement(undefined, id, {delaySave: elements.length}));
439
439
  this.addElements(
440
440
  _.map(elements, (el) => {
441
441
  el = _.extend(el, _.omit(this._style.toJSON(), 'id'));
@@ -1592,12 +1592,11 @@ var ImageView = View.extend({
1592
1592
  const groupedAnnotations = this.selectedElements.groupBy((element) => element.originalAnnotation.id);
1593
1593
  _.each(groupedAnnotations, (elements, annotationId) => {
1594
1594
  const annotation = this.annotations.get(annotationId);
1595
- _.each(elements, (element) => { /* eslint-disable backbone/no-silent */
1595
+ _.each(elements, (element) => {
1596
1596
  const annotationElement = annotation.elements().get(element.id);
1597
- // silence the event because we want to make one save call for each annotation.
1598
- annotationElement.set(element.toJSON(), {silent: true});
1597
+ annotationElement.set(element.toJSON(), {delaySave: true});
1599
1598
  if (!element.get('group')) {
1600
- annotationElement.unset('group', {silent: true});
1599
+ annotationElement.unset('group', {delaySave: true});
1601
1600
  }
1602
1601
  });
1603
1602
  if (!elements.length) {
@@ -1613,7 +1612,7 @@ var ImageView = View.extend({
1613
1612
  _.each(groupedAnnotations, (elements, annotationId) => { /* eslint-disable backbone/no-silent */
1614
1613
  // silence the event because we want to make one save call for each annotation.
1615
1614
  const elementsCollection = this.annotations.get(annotationId).elements();
1616
- elementsCollection.remove(elements, {silent: true});
1615
+ elementsCollection.remove(elements, {delaySave: true});
1617
1616
  elementsCollection.trigger('reset', elementsCollection);
1618
1617
  });
1619
1618
  },
@@ -68,7 +68,7 @@ const AnnotationContextMenu = View.extend({
68
68
  }
69
69
  });
70
70
  let refresh = false;
71
- this.collection.each((element) => { /* eslint-disable backbone/no-silent */
71
+ this.collection.each((element) => {
72
72
  if (this.parentView.drawWidget && this.parentView.activeAnnotation.id === element.originalAnnotation.id &&
73
73
  element.attributes.group !== group && ['point', 'polyline', 'rectangle', 'ellipse', 'circle'].includes(element.attributes.type)) {
74
74
  this.parentView.drawWidget.updateCount(element.attributes.group || this.parentView._defaultGroup, -1);
@@ -78,9 +78,9 @@ const AnnotationContextMenu = View.extend({
78
78
  if (group) {
79
79
  styleAttrs.group = group;
80
80
  } else {
81
- element.unset('group', {silent: true});
81
+ element.unset('group', {delaySave: true});
82
82
  }
83
- element.set(styleAttrs, {silent: true});
83
+ element.set(styleAttrs, {delaySave: true});
84
84
  });
85
85
  this.collection.trigger('h:save');
86
86
  this.trigger('h:close');
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: histomicsui
3
- Version: 1.7.2.dev2
3
+ Version: 1.7.2.dev4
4
4
  Summary: Organize, visualize, and analyze histology images.
5
5
  Home-page: https://github.com/DigitalSlideArchive/histomicsui
6
6
  Author: Kitware, Inc.
@@ -35,11 +35,11 @@ histomicsui/web_client/dialogs/index.js,sha256=PzVsFClPf29-a5w2FiPGUCFBnAmNRBu_P
35
35
  histomicsui/web_client/dialogs/metadataPlot.js,sha256=AsPTaGW6-DqMMjPvMq5ZCtYdeQZA3L9lXq5-fM91LDE,1957
36
36
  histomicsui/web_client/dialogs/openAnnotatedImage.js,sha256=Bwf4ReunnirIkmuHxUO4hLA_R73B87t0-N0Iy-YVCME,4936
37
37
  histomicsui/web_client/dialogs/openImage.js,sha256=0krTCFX2nW-jKL8YuBRXgari0PRjbJ1uNZMRCQKiK7A,2588
38
- histomicsui/web_client/dialogs/saveAnnotation.js,sha256=2BvgXM9rnDRXlbUZUDvezE8xchsL0kXN1AVeuApspHM,23122
38
+ histomicsui/web_client/dialogs/saveAnnotation.js,sha256=_dpe1GjECh3wq1rZ6zLZa9yalunyLwsDEZBx_wBMSJU,23094
39
39
  histomicsui/web_client/models/StyleModel.js,sha256=l-KSynXwedxcW0mv8KVOO5ikCzxsabTehm3bqdYCKP4,1250
40
40
  histomicsui/web_client/models/index.js,sha256=5dtuUll1D1u1bKFh1bzsNeNsiRPEqDCb-aLN_GeFaTU,67
41
- histomicsui/web_client/panels/AnnotationSelector.js,sha256=eB1RRIUmLMPvxFNIDN0p8SEy2qkvi_pkwAa2tHutL9k,25202
42
- histomicsui/web_client/panels/DrawWidget.js,sha256=QBRkvZ3_6TF75QaMbxtZ3kKYlXByu3yrEYfC6Hhg4Io,44229
41
+ histomicsui/web_client/panels/AnnotationSelector.js,sha256=GC6oQ-yywa6CcZHPqp0zqm7YQ5nPy6783VFaKEPmmbc,25285
42
+ histomicsui/web_client/panels/DrawWidget.js,sha256=s6yIafduZ38p4sV7kL5nWeOUSPr97dQzShdvKaLgz2M,44232
43
43
  histomicsui/web_client/panels/FrameSelectorWidget.js,sha256=js6N0P_eg6XASXZqGUfwWdFdVBfEKawbHQMjgol_1L4,3321
44
44
  histomicsui/web_client/panels/MetadataPlot.js,sha256=LtZlXGS5cOWkBbNLCRyYjvkO-NdaecIgWALSo8bCQ7Y,31413
45
45
  histomicsui/web_client/panels/MetadataWidget.js,sha256=CEQi_pNcyk_hcqo7NWKZSKneqxLJ6_h4ZsJV8199qp8,5287
@@ -109,7 +109,7 @@ histomicsui/web_client/views/itemPage.js,sha256=66NxSyyDThx7XnYl7zQm8MQfJD5lfF4T
109
109
  histomicsui/web_client/views/searchResultsView.js,sha256=xWgs3NcFMiUGZ-ZkfYjtf9mKCwgFaYNbShcEGwu-6uE,1474
110
110
  histomicsui/web_client/views/utils.js,sha256=tQ5fpL8HC5OUXII9KM3twZMn0MNpp0MLzBtoHWgyECk,2847
111
111
  histomicsui/web_client/views/body/ConfigView.js,sha256=Leif0tU0CBz9hUS0gK_uOMDsiqWEoBpe2eG94v-86aU,7294
112
- histomicsui/web_client/views/body/ImageView.js,sha256=lgIELL04mnVjdLuFC1TybNw8ZiwiNhYe2XF79g0tbnc,74681
112
+ histomicsui/web_client/views/body/ImageView.js,sha256=eklaOfbk_ePE7uLMRAGGKdE5kXDiyWZalZXz5k2S8pA,74554
113
113
  histomicsui/web_client/views/body/index.js,sha256=KKYkgheufJHTi2fkCOAK7WmjD33KaQdsVBONSFxF_F8,119
114
114
  histomicsui/web_client/views/layout/HeaderAnalysesView.js,sha256=FSVDMLjMsbjy6vP5WrYuLlpKND5kzzr-IdFlLa1SX3A,1809
115
115
  histomicsui/web_client/views/layout/HeaderImageView.js,sha256=gPeQh6QGi-3hmBPCTOBoBVTuXt0KGh0UdVER-rZUzEw,2861
@@ -117,15 +117,15 @@ histomicsui/web_client/views/layout/HeaderUserView.js,sha256=86E7I5ikjjctLplESqE
117
117
  histomicsui/web_client/views/layout/HeaderView.js,sha256=zJ7_C2kUwonDaa5rwPr44SbnsuKJmjv6Vj7AKMbY5Ng,1621
118
118
  histomicsui/web_client/views/layout/LoginView.js,sha256=czbHln47JoEqTeESbx0xxN9BQ0nkn-v1Y5b3o37KeSw,490
119
119
  histomicsui/web_client/views/layout/index.js,sha256=YqmcffaAbLKXTJH-UyOKCgYfnjb6cZMit6K2mzCzQIY,186
120
- histomicsui/web_client/views/popover/AnnotationContextMenu.js,sha256=Hp1RUf4JejaW65YAYdGjtgJn8TCVlQrAdOfXGK4d1-w,4670
120
+ histomicsui/web_client/views/popover/AnnotationContextMenu.js,sha256=xTIOiq1N26Jwz3R1FGIX5FLoQFB15zBZ1BNvBSqMoPg,4636
121
121
  histomicsui/web_client/views/popover/AnnotationPopover.js,sha256=08OsuCx49_RVe-pzyF05uSazGAcoThVsswO_ESXZ1n4,11614
122
122
  histomicsui/web_client/views/popover/PixelmapContextMenu.js,sha256=rJw6lEaTjKvBD6Au96hakCZKOCWVTRg4WvDu0hc21l8,1231
123
123
  histomicsui/web_client/views/popover/index.js,sha256=GFLqPq-dxQpnnQmcgsOxx2zjBKMZgnjAEBrkbQ0Jnkw,176
124
124
  histomicsui/web_client/vue/components/ColorPickerInput.vue,sha256=hQ_IJCia21iuFUMqIRsMvfYhlK6LGdDU4c-ai_STlM0,2650
125
125
  histomicsui/web_client/vue/components/EditHeatmapOrGridData.vue,sha256=RV32I02ic46Reo0sAS0S6629d5zBdkbR51xcDP90m2Q,12532
126
126
  histomicsui/web_client/vue/components/EditHeatmapOrGridDataContainer.vue,sha256=2Uh_LLjJhI9h4eGH6ktmo6fOQdg-qsEQS_tpsgon4No,745
127
- histomicsui-1.7.2.dev2.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
128
- histomicsui-1.7.2.dev2.dist-info/licenses/NOTICE,sha256=Fb_KGPk6UyEsqbF5nJj2J_ux2IaIqze5ljBGfTE_auE,585
127
+ histomicsui-1.7.2.dev4.dist-info/licenses/LICENSE,sha256=psuoW8kuDP96RQsdhzwOqi6fyWv0ct8CR6Jr7He_P_k,10173
128
+ histomicsui-1.7.2.dev4.dist-info/licenses/NOTICE,sha256=Fb_KGPk6UyEsqbF5nJj2J_ux2IaIqze5ljBGfTE_auE,585
129
129
  tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
130
130
  tests/datastore.py,sha256=VtQ1or_rdy61j7--NKphcAhYNgL5WTwAd0c9HqRRs2k,1111
131
131
  tests/girder_utilities.py,sha256=r11EM9EsuVWgCFaCxLl9TM3XMG5Nov2jsFmVpgcOE3w,2202
@@ -153,8 +153,8 @@ tests/web_client_specs/metadataPlotSpec.js,sha256=wuh9gtG42AF5LhLMW93rrGq5kG71Z8
153
153
  tests/web_client_specs/overviewPanelSpec.js,sha256=MbpLpoVUUFZACwUVgsgvjr1Xil6lvdVYuM4cllXUug8,6131
154
154
  tests/web_client_specs/panelLayoutSpec.js,sha256=wNa2ig951aDczkVodNaUbJDfvzwdqEK9L8azKwFhpYw,2996
155
155
  tests/web_client_specs/pixelmapCategorySpec.js,sha256=mZWtWzb6yGic0tORiks2GZmYjPlURvL9unIfjiIY90c,14056
156
- histomicsui-1.7.2.dev2.dist-info/METADATA,sha256=R4dBnrC0wUQYbPMQI0F_VCIvNhq1U0G9jAN1RSEyImc,8109
157
- histomicsui-1.7.2.dev2.dist-info/WHEEL,sha256=_itY3bZllKbLk93i0gzNzdweAt5eocJdfN7atrjOnvQ,109
158
- histomicsui-1.7.2.dev2.dist-info/entry_points.txt,sha256=SZB5fiWiKFOr_SsVOi94gDeNlJkMDI22AFcdKqoDVfs,55
159
- histomicsui-1.7.2.dev2.dist-info/top_level.txt,sha256=X2MiOqcwTp_HroIOfkJ78GumCBLy5RxeiWkYKTdQaHc,18
160
- histomicsui-1.7.2.dev2.dist-info/RECORD,,
156
+ histomicsui-1.7.2.dev4.dist-info/METADATA,sha256=M8Cys4C3JRpOW_f10tXqxfIBrFsBWwa_BynzthScJl0,8109
157
+ histomicsui-1.7.2.dev4.dist-info/WHEEL,sha256=egKm5cKfE6OqlHwodY8Jjp4yqZDBXgsj09UsV5ojd_U,109
158
+ histomicsui-1.7.2.dev4.dist-info/entry_points.txt,sha256=SZB5fiWiKFOr_SsVOi94gDeNlJkMDI22AFcdKqoDVfs,55
159
+ histomicsui-1.7.2.dev4.dist-info/top_level.txt,sha256=X2MiOqcwTp_HroIOfkJ78GumCBLy5RxeiWkYKTdQaHc,18
160
+ histomicsui-1.7.2.dev4.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (80.1.0)
2
+ Generator: setuptools (80.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py2-none-any
5
5
  Tag: py3-none-any