Skip to content

Commit 54eef10

Browse files
committed
[DOCS] Regenerate the class diagram in the README
The class diagram is (almost) unchanged to the output from `tasuku43/mermaid-class-diagram`, except for the kept `direction LR`. This is in preparation for adding a script for auto-creating the class diagram in #1297.
1 parent 45ae185 commit 54eef10

File tree

1 file changed

+69
-13
lines changed

1 file changed

+69
-13
lines changed

README.md

Lines changed: 69 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -619,6 +619,7 @@ class Sabberworm\CSS\CSSList\Document#4 (2) {
619619
## Class diagram
620620

621621
```mermaid
622+
%% start of the generated part
622623
classDiagram
623624
direction LR
624625
@@ -730,76 +731,131 @@ classDiagram
730731
CSSListItem <|-- AtRule: inheritance
731732
AtRule <|.. AtRuleBlockList: realization
732733
CSSBlockList <|-- AtRuleBlockList: inheritance
734+
AtRuleBlockList ..> OutputFormat: dependency
733735
AtRule <|.. AtRuleSet: realization
736+
AtRuleSet ..> OutputFormat: dependency
734737
RuleSet <|-- AtRuleSet: inheritance
735738
CSSList <|-- CSSBlockList: inheritance
736739
Renderable <|-- CSSElement: inheritance
740+
CSSFunction ..> OutputFormat: dependency
741+
CSSFunction ..> ParserState: dependency
737742
ValueList <|-- CSSFunction: inheritance
743+
CSSList ..> AtRuleBlockList: dependency
744+
CSSList ..> AtRuleSet: dependency
738745
CSSElement <|.. CSSList: realization
739746
CSSListItem <|.. CSSList: realization
747+
CSSList ..> CSSNamespace: dependency
740748
CSSList ..> Charset: dependency
741749
CSSList ..> Import: dependency
750+
CSSList ..> KeyFrame: dependency
751+
CSSList ..> OutputFormat: dependency
752+
CSSList ..> ParserState: dependency
742753
Positionable <|.. CSSList: realization
754+
CSSList ..> Selector: dependency
755+
CSSList ..> SourceException: dependency
756+
CSSList ..> UnexpectedTokenException: dependency
743757
Commentable <|-- CSSListItem: inheritance
744758
Renderable <|-- CSSListItem: inheritance
745759
AtRule <|.. CSSNamespace: realization
760+
CSSNamespace ..> OutputFormat: dependency
746761
Positionable <|.. CSSNamespace: realization
762+
CSSString ..> OutputFormat: dependency
763+
CSSString ..> ParserState: dependency
747764
PrimitiveValue <|-- CSSString: inheritance
765+
CSSString ..> SourceException: dependency
748766
CSSFunction <|-- CalcFunction: inheritance
767+
CalcFunction ..> CalcRuleValueList: dependency
768+
CalcFunction ..> ParserState: dependency
769+
CalcFunction ..> RuleValueList: dependency
770+
CalcFunction ..> UnexpectedTokenException: dependency
771+
CalcRuleValueList ..> OutputFormat: dependency
749772
RuleValueList <|-- CalcRuleValueList: inheritance
750773
AtRule <|.. Charset: realization
751774
Charset ..> CSSString: dependency
775+
Charset ..> OutputFormat: dependency
752776
Positionable <|.. Charset: realization
753777
CSSFunction <|-- Color: inheritance
778+
Color ..> OutputFormat: dependency
779+
Color ..> ParserState: dependency
780+
Color ..> Size: dependency
781+
Color ..> UnexpectedTokenException: dependency
782+
Comment ..> OutputFormat: dependency
754783
Positionable <|.. Comment: realization
755784
Renderable <|.. Comment: realization
785+
DeclarationBlock ..> KeyframeSelector: dependency
786+
DeclarationBlock ..> OutputException: dependency
787+
DeclarationBlock ..> OutputFormat: dependency
788+
DeclarationBlock ..> ParserState: dependency
756789
RuleSet <|-- DeclarationBlock: inheritance
757790
DeclarationBlock ..> Selector: dependency
791+
DeclarationBlock ..> UnexpectedTokenException: dependency
758792
CSSBlockList <|-- Document: inheritance
793+
Document ..> OutputFormat: dependency
794+
Document ..> ParserState: dependency
759795
AtRule <|.. Import: realization
796+
Import ..> OutputFormat: dependency
760797
Positionable <|.. Import: realization
798+
Import ..> URL: dependency
761799
AtRule <|.. KeyFrame: realization
762800
CSSList <|-- KeyFrame: inheritance
801+
KeyFrame ..> OutputFormat: dependency
763802
Selector <|-- KeyframeSelector: inheritance
803+
LineName ..> OutputFormat: dependency
804+
LineName ..> ParserState: dependency
764805
ValueList <|-- LineName: inheritance
765806
SourceException <|-- OutputException: inheritance
766807
OutputFormat ..> OutputFormatter: dependency
808+
OutputFormatter ..> Commentable: dependency
809+
OutputFormatter ..> InvalidArgumentException: dependency
767810
OutputFormatter ..> OutputFormat: dependency
811+
Parser ..> Document: dependency
768812
Parser ..> ParserState: dependency
813+
ParserState ..> Anchor: dependency
814+
ParserState ..> Comment: dependency
769815
ParserState ..> Settings: dependency
816+
ParserState ..> SourceException: dependency
817+
ParserState ..> UnexpectedEOFException: dependency
818+
ParserState ..> UnexpectedTokenException: dependency
770819
Value <|-- PrimitiveValue: inheritance
820+
Renderable ..> OutputFormat: dependency
771821
CSSElement <|.. Rule: realization
772822
Commentable <|.. Rule: realization
823+
Rule ..> OutputFormat: dependency
824+
Rule ..> ParserState: dependency
773825
Positionable <|.. Rule: realization
774826
Rule ..> RuleValueList: dependency
827+
RuleContainer ..> Rule: dependency
775828
CSSElement <|.. RuleSet: realization
776829
CSSListItem <|.. RuleSet: realization
830+
RuleSet ..> OutputFormat: dependency
831+
RuleSet ..> ParserState: dependency
777832
Positionable <|.. RuleSet: realization
778833
RuleSet ..> Rule: dependency
779834
RuleContainer <|.. RuleSet: realization
835+
RuleSet ..> UnexpectedValueException: dependency
780836
ValueList <|-- RuleValueList: inheritance
837+
Selector ..> OutputFormat: dependency
781838
Renderable <|.. Selector: realization
839+
Size ..> OutputFormat: dependency
840+
Size ..> ParserState: dependency
782841
PrimitiveValue <|-- Size: inheritance
783842
Exception <|-- SourceException: inheritance
784843
Positionable <|.. SourceException: realization
785844
URL ..> CSSString: dependency
786-
845+
URL ..> OutputFormat: dependency
846+
URL ..> ParserState: dependency
847+
PrimitiveValue <|-- URL: inheritance
787848
UnexpectedTokenException <|-- UnexpectedEOFException: inheritance
788849
SourceException <|-- UnexpectedTokenException: inheritance
789-
PrimitiveValue <|-- URL: inheritance
790-
Value <|-- ValueList: inheritance
791850
CSSElement <|.. Value: realization
851+
Value ..> CSSFunction: dependency
852+
Value ..> ParserState: dependency
792853
Positionable <|.. Value: realization
793-
CSSList ..> CSSList: dependency
794-
CSSList ..> Comment: dependency
795-
CSSList ..> RuleSet: dependency
796-
CSSNamespace ..> Comment: dependency
797-
Charset ..> Comment: dependency
798-
Import ..> Comment: dependency
799-
OutputFormat ..> OutputFormat: dependency
800-
Rule ..> Comment: dependency
801-
RuleSet ..> Comment: dependency
802-
ValueList ..> Value: dependency
854+
Value ..> RuleValueList: dependency
855+
Value ..> UnexpectedTokenException: dependency
856+
ValueList ..> OutputFormat: dependency
857+
Value <|-- ValueList: inheritance
858+
%% end of the generated part
803859
```
804860

805861
## API and deprecation policy

0 commit comments

Comments
 (0)