@@ -187,7 +187,7 @@ label.style.width = 0;
187187
188188function draw ( e ) {
189189 if ( ! $CAMIC . viewer . canvasDrawInstance ) {
190- alert ( 'draw doesn \'t initialize ' ) ;
190+ alert ( 'Draw Doesn \'t Initialize ' ) ;
191191 return ;
192192 }
193193 const state = + e . state ;
@@ -252,7 +252,7 @@ function annotationOff(){
252252 if ( ! $CAMIC . viewer . canvasDrawInstance ) return ;
253253 const canvasDraw = $CAMIC . viewer . canvasDrawInstance ;
254254
255- if ( canvasDraw . _draws_data_ . length && confirm ( `Do you want to save annotation before you leave ?` ) ) {
255+ if ( canvasDraw . _draws_data_ . length && confirm ( `Do You Want To Save Annotation Before You Leave ?` ) ) {
256256 saveAnnotation ( ) ;
257257 } else {
258258 canvasDraw . clear ( ) ;
@@ -389,9 +389,9 @@ function anno_delete(data){
389389 const annotationData = $D . overlayers . find ( d => d . data && d . data . _id . $oid == data . oid ) ;
390390 let message ;
391391 if ( annotationData . data . geometries ) {
392- message = `Are you sure you want to delete this Annotation {ID:${ data . id } } with ${ annotationData . data . geometries . features . length } mark (s)?` ;
392+ message = `Are You Sure You Want To Delete This Annotation {ID:${ data . id } } With ${ annotationData . data . geometries . features . length } Mark (s)?` ;
393393 } else {
394- message = `Are you sure you want to delete this markup {ID:${ data . id } }?` ;
394+ message = `Are You Sure You Want To Delete This Markup {ID:${ data . id } }?` ;
395395 }
396396 $UI . annotPopup . close ( ) ;
397397 if ( ! confirm ( message ) ) return ;
@@ -499,7 +499,7 @@ function anno_callback(data){
499499 // has Path?
500500
501501 if ( $CAMIC . viewer . canvasDrawInstance . _path_index === 0 ) {
502- alert ( 'No Markup on Annotation.' ) ;
502+ alert ( 'No Markup On Annotation.' ) ;
503503 return ;
504504 }
505505 // save
@@ -652,7 +652,7 @@ function loadAnnotationById(camic, layerData ,callback){
652652 layerData . item . loading = true ;
653653 const item = layerData . item ;
654654
655- Loading . open ( document . body , 'loading layers ...' ) ;
655+ Loading . open ( document . body , 'Loading Layers ...' ) ;
656656
657657 $CAMIC . store . getMarkByIds ( [ item . id ] , $D . params . data . name )
658658 . then ( data => {
@@ -692,9 +692,10 @@ function loadAnnotationById(camic, layerData ,callback){
692692 return [ Math . round ( point [ 0 ] * imgWidth ) , Math . round ( point [ 1 ] * imgHeight ) ] ;
693693 } ) ;
694694 d . properties . style = {
695- color : "#7CFC00 " ,
695+ color : "#000080 " ,
696696 lineCap : "round" ,
697- lineJoin : "round"
697+ lineJoin : "round" ,
698+ isFill :false
698699 } ;
699700 return {
700701 _id :d . _id ,
@@ -705,6 +706,8 @@ function loadAnnotationById(camic, layerData ,callback){
705706 } ) ;
706707 // if(item) data[0].isShow = item.isShow;
707708 item . render = old_anno_render ;
709+ item . clickable = false ;
710+ item . hoverable = false ;
708711 } else {
709712 data [ 0 ] . geometries = VieweportFeaturesToImageFeatures ( camic . viewer , data [ 0 ] . geometries ) ;
710713 item . data = data [ 0 ] ;
@@ -796,7 +799,7 @@ function hostedHeatmap(){
796799 if ( typeof list === "undefined" ) { list = [ ] }
797800 // get heatmap data
798801 if ( ! list . length ) {
799- alert ( `${ slide } has No heatmap data .` ) ;
802+ alert ( `${ slide } Has No Heatmap Data .` ) ;
800803 return ;
801804 }
802805 createHeatMapList ( list ) ;
@@ -849,7 +852,7 @@ function imgboxHeatmap(){
849852
850853 data . provenance . image . slide = slide
851854 const execId = data . provenance . analysis . execution_id ;
852- Loading . open ( document . body , 'loading Heatmap...' ) ;
855+ Loading . open ( document . body , 'Loading Heatmap...' ) ;
853856 $CAMIC . store . addHeatmap ( data ) . then ( rs => {
854857 window . location . href = `../heatmap/heatmap.html${ window . location . search } &execId=${ execId } ` ;
855858 } ) . catch ( e => {
@@ -892,6 +895,9 @@ function anno_render(ctx,data){
892895 //DrawHelper.draw(this._canvas_ctx, this.data.canvasData);
893896}
894897function old_anno_render ( ctx , data ) {
898+ const imagingHelper = this . viewer . imagingHelper ;
899+ const lineWidth = ( imagingHelper . physicalToDataX ( 1 ) - imagingHelper . physicalToDataX ( 0 ) ) >> 0 ;
900+ ctx . lineWidth = lineWidth ;
895901 DrawHelper . draw ( ctx , data ) ;
896902
897903}
0 commit comments