Skip to content

Commit f25f894

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 12567dc commit f25f894

File tree

1 file changed

+101
-45
lines changed

1 file changed

+101
-45
lines changed

README.md

Lines changed: 101 additions & 45 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
747-
748-
RuleSet <|-- DeclarationBlock: inheritance
749-
Positionable <|.. RuleSet: realization
750-
CSSElement <|.. RuleSet: realization
751-
CSSListItem <|.. RuleSet: realization
752-
RuleContainer <|.. RuleSet: realization
753-
Renderable <|.. Selector: realization
754-
Selector <|-- KeyframeSelector: inheritance
755-
Positionable <|.. Charset: realization
762+
CSSString ..> OutputFormat: dependency
763+
CSSString ..> ParserState: dependency
764+
PrimitiveValue <|-- CSSString: inheritance
765+
CSSString ..> SourceException: dependency
766+
CSSFunction <|-- CalcFunction: inheritance
767+
CalcFunction ..> CalcRuleValueList: dependency
768+
CalcFunction ..> ParserState: dependency
769+
CalcFunction ..> RuleValueList: dependency
770+
CalcFunction ..> UnexpectedTokenException: dependency
771+
CalcRuleValueList ..> OutputFormat: dependency
772+
RuleValueList <|-- CalcRuleValueList: inheritance
756773
AtRule <|.. Charset: realization
757-
Positionable <|.. Import: realization
758-
AtRule <|.. Import: realization
759-
CSSElement <|.. Rule: realization
760-
Positionable <|.. Rule: realization
761-
Commentable <|.. Rule: realization
762-
SourceException <|-- OutputException: inheritance
763-
UnexpectedTokenException <|-- UnexpectedEOFException: inheritance
764-
Exception <|-- SourceException: inheritance
765-
Positionable <|.. SourceException: realization
766-
SourceException <|-- UnexpectedTokenException: inheritance
767-
CSSBlockList <|-- Document: inheritance
768-
CSSList <|-- KeyFrame: inheritance
769-
AtRule <|.. KeyFrame: realization
774+
Charset ..> CSSString: dependency
775+
Charset ..> OutputFormat: dependency
776+
Positionable <|.. Charset: realization
770777
CSSFunction <|-- Color: inheritance
771-
PrimitiveValue <|-- URL: inheritance
772-
RuleValueList <|-- CalcRuleValueList: inheritance
773-
Value <|-- ValueList: inheritance
774-
CSSFunction <|-- CalcFunction: inheritance
775-
ValueList <|-- LineName: inheritance
776-
CSSElement <|.. Value: realization
777-
Positionable <|.. Value: realization
778-
PrimitiveValue <|-- Size: inheritance
779-
PrimitiveValue <|-- CSSString: inheritance
780-
Value <|-- PrimitiveValue: inheritance
781-
ValueList <|-- RuleValueList: inheritance
782-
Renderable <|.. Comment: realization
778+
Color ..> OutputFormat: dependency
779+
Color ..> ParserState: dependency
780+
Color ..> Size: dependency
781+
Color ..> UnexpectedTokenException: dependency
782+
Comment ..> OutputFormat: dependency
783783
Positionable <|.. Comment: realization
784-
CSSList ..> CSSList: dependency
785-
CSSList ..> Comment: dependency
786-
CSSList ..> RuleSet: dependency
787-
CSSNamespace ..> Comment: dependency
788-
Charset ..> Comment: dependency
789-
Charset ..> CSSString: dependency
784+
Renderable <|.. Comment: realization
785+
DeclarationBlock ..> KeyframeSelector: dependency
786+
DeclarationBlock ..> OutputException: dependency
787+
DeclarationBlock ..> OutputFormat: dependency
788+
DeclarationBlock ..> ParserState: dependency
789+
RuleSet <|-- DeclarationBlock: inheritance
790790
DeclarationBlock ..> Selector: dependency
791-
Import ..> Comment: dependency
792-
OutputFormat ..> OutputFormat: dependency
791+
DeclarationBlock ..> UnexpectedTokenException: dependency
792+
CSSBlockList <|-- Document: inheritance
793+
Document ..> OutputFormat: dependency
794+
Document ..> ParserState: dependency
795+
AtRule <|.. Import: realization
796+
Import ..> OutputFormat: dependency
797+
Positionable <|.. Import: realization
798+
Import ..> URL: dependency
799+
AtRule <|.. KeyFrame: realization
800+
CSSList <|-- KeyFrame: inheritance
801+
KeyFrame ..> OutputFormat: dependency
802+
Selector <|-- KeyframeSelector: inheritance
803+
LineName ..> OutputFormat: dependency
804+
LineName ..> ParserState: dependency
805+
ValueList <|-- LineName: inheritance
806+
SourceException <|-- OutputException: inheritance
793807
OutputFormat ..> OutputFormatter: dependency
808+
OutputFormatter ..> Commentable: dependency
809+
OutputFormatter ..> InvalidArgumentException: dependency
794810
OutputFormatter ..> OutputFormat: dependency
811+
Parser ..> Document: dependency
795812
Parser ..> ParserState: dependency
813+
ParserState ..> Anchor: dependency
814+
ParserState ..> Comment: dependency
796815
ParserState ..> Settings: dependency
797-
Rule ..> Comment: dependency
816+
ParserState ..> SourceException: dependency
817+
ParserState ..> UnexpectedEOFException: dependency
818+
ParserState ..> UnexpectedTokenException: dependency
819+
Value <|-- PrimitiveValue: inheritance
820+
Renderable ..> OutputFormat: dependency
821+
CSSElement <|.. Rule: realization
822+
Commentable <|.. Rule: realization
823+
Rule ..> OutputFormat: dependency
824+
Rule ..> ParserState: dependency
825+
Positionable <|.. Rule: realization
798826
Rule ..> RuleValueList: dependency
799-
RuleSet ..> Comment: dependency
827+
RuleContainer ..> Rule: dependency
828+
CSSElement <|.. RuleSet: realization
829+
CSSListItem <|.. RuleSet: realization
830+
RuleSet ..> OutputFormat: dependency
831+
RuleSet ..> ParserState: dependency
832+
Positionable <|.. RuleSet: realization
800833
RuleSet ..> Rule: dependency
834+
RuleContainer <|.. RuleSet: realization
835+
RuleSet ..> UnexpectedValueException: dependency
836+
ValueList <|-- RuleValueList: inheritance
837+
Selector ..> OutputFormat: dependency
838+
Renderable <|.. Selector: realization
839+
Size ..> OutputFormat: dependency
840+
Size ..> ParserState: dependency
841+
PrimitiveValue <|-- Size: inheritance
842+
Exception <|-- SourceException: inheritance
843+
Positionable <|.. SourceException: realization
801844
URL ..> CSSString: dependency
802-
ValueList ..> Value: dependency
845+
URL ..> OutputFormat: dependency
846+
URL ..> ParserState: dependency
847+
PrimitiveValue <|-- URL: inheritance
848+
UnexpectedTokenException <|-- UnexpectedEOFException: inheritance
849+
SourceException <|-- UnexpectedTokenException: inheritance
850+
CSSElement <|.. Value: realization
851+
Value ..> CSSFunction: dependency
852+
Value ..> ParserState: dependency
853+
Positionable <|.. Value: realization
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)