mirror of
https://github.com/dnwSilver/tld.git
synced 2024-11-29 10:22:07 +00:00
802 B
802 B
RENDER
classDiagram
%% Application layer
class ViewPort{
+ GetCanvas()
+ string: Content
}
%% Хранит данные
class Store {
Reload()
}
%% Хранит разметку
class View {
Store
SetWidgets()
SetCanvas()
Render()
}
%% Подгатавливает текст
class Painter {
+ SetGrid()
+ SetView()
}
%% Composition
class Widget {
+ State
~ Bind()
~ Render()
}
class WidgetState
<<Enum>> WidgetState
WidgetState : Loading
WidgetState : Mounted
WidgetState : BindingError
WidgetState : RenderError
flowchart LR
Change_Store --> Binding_Widgets
Binding_Widgets --> Render_Widgets
Render_Widgets --> Create_View
Create_View --> Fill_View_Port