11<template >
2-   <div  style =" position  : relative ;"  >
2+   <div  style =" position  : relative ;  width : 100 % ;  height : 100 % "  >
33    <view-toolbar  />
44    <v-col  style =" overflow  : hidden ; position  : relative ; z-index  : 0 ; height  : 100%  ; width  : 100%  "   ref =" viewer" 
5-       @click =" get_x_y"   @keydown.esc =" app_store.toggle_picking_mode(false)"  >
5+       @click =" get_x_y"   @keydown.esc =" app_store.toggle_picking_mode(false)"   class = " pa-0 "  >
66    </v-col >
77  </div >
88</template >
@@ -16,7 +16,7 @@ const { picking_mode } = storeToRefs(viewer_store)
1616const  websocket_store  =  use_websocket_store ()
1717const  { client , is_client_created  } =  storeToRefs (websocket_store)
1818
19- function  get_x_y (event ) {
19+ function  get_x_y   (event ) {
2020  if  (picking_mode .value  ===  true ) { 
2121    const  { offsetX , offsetY  } =  event  
2222    viewer_store .set_picked_point (offsetX, offsetY) 
@@ -30,8 +30,8 @@ const props = defineProps({
3030const  viewer  =  ref (null )
3131const  { width , height  } =  useElementSize (viewer)
3232
33- function  resize () {
34-   view .getCanvasView ().setSize (1 ,  1 ) 
33+ function  resize   () {
34+   view .getCanvasView ().setSize (0 ,  0 ) 
3535  view .resize (); 
3636} 
3737
@@ -76,7 +76,7 @@ onMounted(async () => {
7676  } 
7777}) 
7878
79- function  connect () {
79+ function  connect   () {
8080  if  (! is_client_created .value ) { return  } 
8181  console .log (' connecting'  , client .value ) 
8282  const  session  =  client .value .getConnection ().getSession () 
0 commit comments