@@ -251,7 +251,6 @@ class VLWholeSlideMicroscopyImageViewer {
251251 tileSizes . reverse ( ) ;
252252 origins . reverse ( ) ;
253253
254- // We can't call "this" inside functions.
255254 const pyramid = this . pyramid ;
256255
257256 /*
@@ -548,12 +547,7 @@ class VLWholeSlideMicroscopyImageViewer {
548547
549548 }
550549
551- /* Renders the map.
552- * @param {Object } options options object
553- *
554- * options:
555- * - container - name of an HTML element for the map
556- * - controlContainers - names of HTML elements that should be used for given controls
550+ /* Renders the images.
557551 */
558552 render ( options ) {
559553 if ( ! ( 'container' in options ) ) {
@@ -667,7 +661,6 @@ class VLWholeSlideMicroscopyImageViewer {
667661 */
668662 activateSelectInteraction ( options = { } ) {
669663 this . deactivateSelectInteraction ( ) ;
670- // TODO: "condition", etc.
671664 this [ _interactions ] . select = new Select ( {
672665 layers : [ this [ _drawingLayer ] ]
673666 } ) ;
@@ -689,7 +682,6 @@ class VLWholeSlideMicroscopyImageViewer {
689682 }
690683
691684 /* Activate modify interaction.
692- * @param {Object } options options object
693685 */
694686 activateModifyInteraction ( options = { } ) {
695687 this . deactivateModifyInteraction ( ) ;
@@ -774,34 +766,6 @@ class VLWholeSlideMicroscopyImageViewer {
774766 this [ _drawingLayer ] . getVisible ( ) ;
775767 }
776768
777- // set onAddROIHandler(callback) {
778- // if (typeof callback !== 'function') {
779- // console.error('callback must be a function')
780- // }
781- // this[_drawingSource].on('addfeature', callback);
782- // }
783-
784- // set onRemoveROIHandler(callback) {
785- // if (typeof callback !== 'function') {
786- // console.error('callback must be a function')
787- // }
788- // this[_drawingSource].on('removefeature', callback);
789- // }
790-
791- // set onUpdateROIHandler(callback) {
792- // if (typeof callback !== 'function') {
793- // console.error('callback must be a function')
794- // }
795- // this[_drawingSource].on('changefeature', callback);
796- // }
797-
798- // set onUpdateROIPropertiesHandler(callback) {
799- // if (typeof callback !== 'function') {
800- // console.error('callback must be a function')
801- // }
802- // this[_drawingSource].on('propertychange', callback);
803- // }
804-
805769}
806770
807771export { VLWholeSlideMicroscopyImageViewer } ;
0 commit comments