-
Notifications
You must be signed in to change notification settings - Fork 106
/
zoom.puml
74 lines (54 loc) · 1.07 KB
/
zoom.puml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
@startuml
Actor User
'User -> Window.onwheel: WheelDelta(+3|-3)
User -> UI : click m_fileSelector
UI -> Browser : open file browser dialog
User -> Finder : choose file
Finder -> UI : FileList
UI -> Engine :
@enduml
@startuml
diamond diamond
UiOpenMenu --|> React.Component
UiOpenMenu --o React.BaseSyntheticEvent
package DOM {
HTMLInputElement --|> HTMLElement
HTMLInputElement --o FileList
class FileList {
~ length
File item(index)
File [index]
}
interface HTMLElement {
click()
}
interface HTMLInputElement {
+ FileList files
}
interface GlobalEventHandlers {
+ onchange
}
FileBrowser -- GlobalEventHandlers
}
package React {
interface BaseSyntheticEvent {
}
}
class UiOpenMenu {
- React.BaseSyntheticEvent evt
- HTMLInputElement m_fileSelector
onButtonOpenLocalFileClick(evt)
handleFileSelected()
}
package OS {
interface FileBrowser {
emitOnChange(files)
+ FileList files
}
}
@enduml
@startuml
class Store {
viewMode
}
@enduml