...
|
...
|
@@ -3,11 +3,11 @@ import type { LightboxModeWebsocketService } from '.' |
3
|
3
|
import type { RenderComponentExposeType } from '@/core/Library/types'
|
4
|
4
|
import { useNodeEvent } from '@/core/Library/hook/useNodeEvent'
|
5
|
5
|
import { EventTypeEnum } from '@/enums/datasource'
|
6
|
|
-import type { MxState } from '@/fitCore/types'
|
|
6
|
+import type { MxCell } from '@/fitCore/types'
|
7
|
7
|
import { getAppInstanceId } from '@/utils/draw'
|
8
|
8
|
|
9
|
9
|
interface MxEvent {
|
10
|
|
- state: MxState
|
|
10
|
+ state: { cell: MxCell }
|
11
|
11
|
}
|
12
|
12
|
|
13
|
13
|
export class EventHandler {
|
...
|
...
|
@@ -33,7 +33,7 @@ export class EventHandler { |
33
|
33
|
const graphDblClick = this.getDrawApp.editor.graph.dblClick
|
34
|
34
|
const dispathEvent = this.dispathEvent.bind(this)
|
35
|
35
|
this.getDrawApp.editor.graph.dblClick = function (...args) {
|
36
|
|
- dispathEvent(EventTypeEnum.DOUBLE, args[0])
|
|
36
|
+ dispathEvent(EventTypeEnum.DOUBLE, { state: { cell: args[1] } })
|
37
|
37
|
graphDblClick.apply(this, args)
|
38
|
38
|
}
|
39
|
39
|
}
|
...
|
...
|
|