1
1
<template >
2
- <div style =" position : relative ;" >
2
+ <div style =" position : relative ; " >
3
3
<view-toolbar />
4
4
<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 " >
6
6
</v-col >
7
7
</div >
8
8
</template >
@@ -16,7 +16,7 @@ const { picking_mode } = storeToRefs(viewer_store)
16
16
const websocket_store = use_websocket_store ()
17
17
const { client , is_client_created } = storeToRefs (websocket_store)
18
18
19
- function get_x_y (event ) {
19
+ function get_x_y (event ) {
20
20
if (picking_mode .value === true ) {
21
21
const { offsetX , offsetY } = event
22
22
viewer_store .set_picked_point (offsetX, offsetY)
@@ -30,8 +30,8 @@ const props = defineProps({
30
30
const viewer = ref (null )
31
31
const { width , height } = useElementSize (viewer)
32
32
33
- function resize () {
34
- view .getCanvasView ().setSize (1 , 1 )
33
+ function resize () {
34
+ view .getCanvasView ().setSize (0 , 0 )
35
35
view .resize ();
36
36
}
37
37
@@ -76,7 +76,7 @@ onMounted(async () => {
76
76
}
77
77
})
78
78
79
- function connect () {
79
+ function connect () {
80
80
if (! is_client_created .value ) { return }
81
81
console .log (' connecting' , client .value )
82
82
const session = client .value .getConnection ().getSession ()
0 commit comments