all repos — h3 @ 7b87c17e6197639f76ce58809cb3f998fd471a84

A tiny, extremely minimalist JavaScript microframework.

docs/uml/h3.sequence.txt

 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
@startuml

title H3 Sequence Diagram

entity Application
control Component
entity H3
entity Router
database Store

Application --> H3 : <b>h3.init()</b>
H3 -> Store : //initialize//
Store -> Store : //execute modules//
H3 -> Store : dispatch($init)
H3 -> Application : preStart()
H3 -> Router : //initialize//
H3 -> Router : start()
Router -> Component : render()
Router -> Store: dispatch($redraw)
Router -> Store: dispatch($navigation)
H3 -> Application : postStart()

group redraw
    Component -> H3 : <b>h3.redraw()</b>
    H3 -> Component : redraw()
    H3 -> Store: dispatch($redraw)
end

group navigation
    Component -> H3 : <b>h3.navigateTo()</b>
    H3 -> Router : processPath()
    Router -> Application : //remove all DOM nodes//
    Application -> Component : //remove all DOM nodes//
    Router -> Component : render()
    Router -> Store: dispatch($redraw)
    Router -> Store: dispatch($navigation)
end


@enduml