@@ -314,7 +314,7 @@ function initCore() {
314
314
$UI . annotPopup . open ( e . position ) ;
315
315
} ) ;
316
316
317
- $CAMIC . viewer . addHandler ( 'annot-edit-save' , function ( e ) {
317
+ $CAMIC . viewer . addHandler ( 'annot-edit-save' , function ( e ) {
318
318
if ( ! e . data ) {
319
319
return ;
320
320
}
@@ -327,16 +327,16 @@ function initCore() {
327
327
const dataSize = dataCopy . geometries . features [ 0 ] . properties . size ;
328
328
const { points, bound, size} = convertToNormalized ( dataPoints , dataSize , $CAMIC . viewer ) ;
329
329
dataCopy . geometries . features [ 0 ] . properties . size = size ;
330
- dataCopy . geometries . features [ 0 ] . geometry . coordinates = [ points ]
331
- dataCopy . geometries . features [ 0 ] . bound . coordinates = [ bound ]
330
+ dataCopy . geometries . features [ 0 ] . geometry . coordinates = [ points ] ;
331
+ dataCopy . geometries . features [ 0 ] . bound . coordinates = [ bound ] ;
332
332
} else {
333
333
dataCopy . geometries = ImageFeaturesToVieweportFeatures (
334
- $CAMIC . viewer ,
335
- dataCopy . geometries
336
- )
334
+ $CAMIC . viewer ,
335
+ dataCopy . geometries ,
336
+ ) ;
337
337
}
338
338
editAnnoCallback ( id , slide , dataCopy ) ;
339
- } )
339
+ } ) ;
340
340
341
341
// create the message bar TODO for reading slide Info TODO
342
342
$UI . slideInfos = new CaMessage ( {
@@ -845,7 +845,7 @@ async function initUIcomponents() {
845
845
// $UI.AssistantViewer.enableBtn.checked = false;
846
846
$UI . AssistantViewer . elt . style . display = 'none' ;
847
847
}
848
- } )
848
+ } ) ;
849
849
850
850
// create UI and set data
851
851
$UI . layersViewer = createLayerViewer (
@@ -968,11 +968,11 @@ async function initUIcomponents() {
968
968
// Handle event
969
969
$CAMIC . viewer . addHandler ( 'open-add-model' , ( ) => {
970
970
uploadModel ( ) ;
971
- } )
971
+ } ) ;
972
972
973
973
$CAMIC . viewer . addHandler ( 'open-model-info' , ( ) => {
974
974
showInfo ( ) ;
975
- } )
975
+ } ) ;
976
976
977
977
$CAMIC . viewer . addHandler ( 'ml-draw-setting-change' , ( ) => {
978
978
if ( ! $CAMIC . viewer . canvasDrawInstance ) return ;
@@ -981,7 +981,7 @@ async function initUIcomponents() {
981
981
if ( canvasDraw . _draws_data_ . length ) {
982
982
canvasDraw . __endNewFeature ( true ) ;
983
983
}
984
- } )
984
+ } ) ;
985
985
}
986
986
987
987
function initModelModals ( ) {
@@ -1150,7 +1150,7 @@ async function uploadModel() {
1150
1150
const value = element . split ( '/' ) . pop ( ) ;
1151
1151
if ( value . slice ( 0 , 3 ) == 'seg' ) {
1152
1152
const title = element . split ( '/' ) . pop ( ) . split ( '_' ) [ 1 ] . slice ( 0 , - 3 ) ;
1153
- console . log ( )
1153
+ console . log ( ) ;
1154
1154
modelName . push ( title ) ;
1155
1155
}
1156
1156
} ) ;
0 commit comments