mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 03:15:43 +08:00
docs: Fix component diagram text styling (#2182)
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
graph TD
|
graph TD
|
||||||
|
|
||||||
%% Node Color %%
|
%% Node Color %%
|
||||||
classDef yellow fill:#F6BE00,stroke:#F6BE00,stroke-width:4px,color:#000 ;
|
classDef yellow fill:#F6BE00,stroke:#F6BE00,stroke-width:4px,color:#AAA ;
|
||||||
classDef default fill:#282828,stroke:#F6BE00;
|
classDef default fill:#282828,stroke:#F6BE00;
|
||||||
|
|
||||||
%% Nodes %%
|
%% Nodes %%
|
||||||
@ -15,45 +15,58 @@
|
|||||||
|
|
||||||
```{mermaid}
|
```{mermaid}
|
||||||
%%{init: { 'theme': 'dark' } }%%
|
%%{init: { 'theme': 'dark' } }%%
|
||||||
|
|
||||||
graph TD
|
graph TD
|
||||||
%% Node Color %%
|
%% Node Color %%
|
||||||
classDef yellow fill:#F6BE00,stroke:#F6BE00,stroke-width:4px,color:#000 ;
|
classDef yellow fill:#F6BE00,stroke:#F6BE00,stroke-width:4px,color:#AAA;
|
||||||
classDef default fill:#282828,stroke:#F6BE00;
|
classDef default fill:#282828,stroke:#F6BE00;
|
||||||
|
|
||||||
%% Nodes %%
|
%% Nodes %%
|
||||||
|
|
||||||
Component[Component]
|
Component(Component)
|
||||||
TimerComponent(TimerComponent <br/>ParticleComponent <br>SpriteBatchComponent)
|
Misc("
|
||||||
|
TimerComponent
|
||||||
|
ParticleComponent
|
||||||
|
SpriteBatchComponent
|
||||||
|
")
|
||||||
Effects("Effects<br/>(See the effects section)"):::yellow
|
Effects("Effects<br/>(See the effects section)"):::yellow
|
||||||
|
Game(Game)
|
||||||
FlameGame(FlameGame)
|
FlameGame(FlameGame)
|
||||||
PositionComponent(PositionComponent)
|
PositionComponent(PositionComponent)
|
||||||
|
|
||||||
SpriteComponent("SpriteComponent <br/> SpriteGroupComponent
|
Sprites("
|
||||||
<br/> SpriteAnimationComponent <br/>
|
SpriteComponent
|
||||||
SpriteAnimationGroupComponent <br/> ParallaxComponent
|
SpriteGroupComponent
|
||||||
<br/> IsoMetricTileMapComponent")
|
SpriteAnimationComponent
|
||||||
|
SpriteAnimationGroupComponent
|
||||||
|
ParallaxComponent
|
||||||
|
IsoMetricTileMapComponent
|
||||||
|
")
|
||||||
|
|
||||||
HudMarginComponent(HudMarginComponent)
|
HudMarginComponent(HudMarginComponent)
|
||||||
HudButtonComponent(HudButtonComponent <br/> JoystickComponent)
|
HudComponents("
|
||||||
|
HudButtonComponent
|
||||||
|
JoystickComponent
|
||||||
|
")
|
||||||
|
|
||||||
ButtonComponent("ButtonComponent <br/> CustomPainterComponent
|
OtherPositionComponents("
|
||||||
<br/> ShapeComponent <br/> SpriteButtonComponent
|
ButtonComponent
|
||||||
<br/> TextComponent <br/> TextBoxComponent
|
CustomPainterComponent
|
||||||
<br/> NineTileBoxComponent")
|
ShapeComponent
|
||||||
|
SpriteButtonComponent
|
||||||
Loadable("Loadable (Mixin)"):::yellow
|
TextComponent
|
||||||
|
TextBoxComponent
|
||||||
|
NineTileBoxComponent
|
||||||
|
")
|
||||||
|
|
||||||
%% Flow %%
|
%% Flow %%
|
||||||
Component --> TimerComponent
|
Component --> Misc
|
||||||
Component --> Effects
|
Component --> Effects
|
||||||
Component --> PositionComponent
|
Component --> PositionComponent
|
||||||
Component --> FlameGame
|
Component --> FlameGame
|
||||||
|
|
||||||
Loadable --> FlameGame
|
Game --> FlameGame
|
||||||
PositionComponent --> SpriteComponent
|
PositionComponent --> Sprites
|
||||||
PositionComponent --> HudMarginComponent
|
PositionComponent --> HudMarginComponent
|
||||||
PositionComponent --> ButtonComponent
|
PositionComponent --> OtherPositionComponents
|
||||||
HudMarginComponent --> HudButtonComponent
|
HudMarginComponent --> HudComponents
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user