Skip to content

Commit bc4b994

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 67d3d39 commit bc4b994

File tree

1 file changed

+118
-67
lines changed

1 file changed

+118
-67
lines changed

README.md

Lines changed: 118 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -619,11 +619,10 @@ 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
625-
%% Start of the part originally generated from the PHP code using tasuku43/mermaid-class-diagram
626-
627626
class Anchor {
628627
}
629628
class AtRule {
@@ -728,83 +727,135 @@ classDiagram
728727
<<abstract>>
729728
}
730729
731-
RuleSet <|-- DeclarationBlock: inheritance
730+
Anchor ..> ParserState: dependency
731+
CSSListItem <|-- AtRule: inheritance
732+
AtRule <|.. AtRuleBlockList: realization
733+
CSSBlockList <|-- AtRuleBlockList: inheritance
734+
AtRuleBlockList ..> OutputFormat: dependency
735+
AtRule <|.. AtRuleSet: realization
736+
AtRuleSet ..> OutputFormat: dependency
737+
RuleSet <|-- AtRuleSet: inheritance
738+
CSSList <|-- CSSBlockList: inheritance
732739
Renderable <|-- CSSElement: inheritance
733-
Renderable <|-- CSSListItem: inheritance
740+
CSSFunction ..> OutputFormat: dependency
741+
CSSFunction ..> ParserState: dependency
742+
ValueList <|-- CSSFunction: inheritance
743+
CSSList ..> AtRuleBlockList: dependency
744+
CSSList ..> AtRuleSet: dependency
745+
CSSElement <|.. CSSList: realization
746+
CSSListItem <|.. CSSList: realization
747+
CSSList ..> CSSNamespace: dependency
748+
CSSList ..> Charset: dependency
749+
CSSList ..> Import: dependency
750+
CSSList ..> KeyFrame: dependency
751+
CSSList ..> OutputFormat: dependency
752+
CSSList ..> ParserState: dependency
753+
Positionable <|.. CSSList: realization
754+
CSSList ..> Selector: dependency
755+
CSSList ..> SourceException: dependency
756+
CSSList ..> UnexpectedTokenException: dependency
734757
Commentable <|-- CSSListItem: inheritance
735-
Positionable <|.. RuleSet: realization
736-
CSSElement <|.. RuleSet: realization
737-
CSSListItem <|.. RuleSet: realization
738-
RuleContainer <|.. RuleSet: realization
739-
RuleSet <|-- AtRuleSet: inheritance
740-
AtRule <|.. AtRuleSet: realization
741-
Renderable <|.. Selector: realization
742-
Selector <|-- KeyframeSelector: inheritance
743-
CSSListItem <|-- AtRule: inheritance
744-
Positionable <|.. Charset: realization
758+
Renderable <|-- CSSListItem: inheritance
759+
AtRule <|.. CSSNamespace: realization
760+
CSSNamespace ..> OutputFormat: dependency
761+
Positionable <|.. CSSNamespace: 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
745773
AtRule <|.. Charset: realization
746-
Positionable <|.. Import: realization
774+
Charset ..> CSSString: dependency
775+
Charset ..> OutputFormat: dependency
776+
Positionable <|.. Charset: realization
777+
CSSFunction <|-- Color: inheritance
778+
Color ..> OutputFormat: dependency
779+
Color ..> ParserState: dependency
780+
Color ..> Size: dependency
781+
Color ..> UnexpectedTokenException: dependency
782+
Comment ..> OutputFormat: dependency
783+
Positionable <|.. Comment: realization
784+
Renderable <|.. Comment: realization
785+
DeclarationBlock ..> KeyframeSelector: dependency
786+
DeclarationBlock ..> OutputException: dependency
787+
DeclarationBlock ..> OutputFormat: dependency
788+
DeclarationBlock ..> ParserState: dependency
789+
RuleSet <|-- DeclarationBlock: inheritance
790+
DeclarationBlock ..> Selector: dependency
791+
DeclarationBlock ..> UnexpectedTokenException: dependency
792+
CSSBlockList <|-- Document: inheritance
793+
Document ..> OutputFormat: dependency
794+
Document ..> ParserState: dependency
747795
AtRule <|.. Import: realization
748-
Positionable <|.. CSSNamespace: realization
749-
AtRule <|.. CSSNamespace: 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
807+
OutputFormat ..> OutputFormatter: dependency
808+
OutputFormatter ..> Commentable: dependency
809+
OutputFormatter ..> InvalidArgumentException: dependency
810+
OutputFormatter ..> OutputFormat: dependency
811+
Parser ..> Document: dependency
812+
Parser ..> ParserState: dependency
813+
ParserState ..> Anchor: dependency
814+
ParserState ..> Comment: dependency
815+
ParserState ..> Settings: dependency
816+
ParserState ..> SourceException: dependency
817+
ParserState ..> UnexpectedEOFException: dependency
818+
ParserState ..> UnexpectedTokenException: dependency
819+
Value <|-- PrimitiveValue: inheritance
820+
Renderable ..> OutputFormat: dependency
750821
CSSElement <|.. Rule: realization
751-
Positionable <|.. Rule: realization
752822
Commentable <|.. Rule: realization
753-
SourceException <|-- OutputException: inheritance
754-
UnexpectedTokenException <|-- UnexpectedEOFException: inheritance
823+
Rule ..> OutputFormat: dependency
824+
Rule ..> ParserState: dependency
825+
Positionable <|.. Rule: realization
826+
Rule ..> RuleValueList: 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
833+
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
755842
Exception <|-- SourceException: inheritance
756843
Positionable <|.. SourceException: realization
757-
SourceException <|-- UnexpectedTokenException: inheritance
758-
CSSList <|-- CSSBlockList: inheritance
759-
CSSBlockList <|-- Document: inheritance
760-
CSSElement <|.. CSSList: realization
761-
Positionable <|.. CSSList: realization
762-
CSSListItem <|.. CSSList: realization
763-
CSSList <|-- KeyFrame: inheritance
764-
AtRule <|.. KeyFrame: realization
765-
CSSBlockList <|-- AtRuleBlockList: inheritance
766-
AtRule <|.. AtRuleBlockList: realization
767-
CSSFunction <|-- Color: inheritance
844+
URL ..> CSSString: dependency
845+
URL ..> OutputFormat: dependency
846+
URL ..> ParserState: dependency
768847
PrimitiveValue <|-- URL: inheritance
769-
RuleValueList <|-- CalcRuleValueList: inheritance
770-
Value <|-- ValueList: inheritance
771-
CSSFunction <|-- CalcFunction: inheritance
772-
ValueList <|-- LineName: inheritance
848+
UnexpectedTokenException <|-- UnexpectedEOFException: inheritance
849+
SourceException <|-- UnexpectedTokenException: inheritance
773850
CSSElement <|.. Value: realization
851+
Value ..> CSSFunction: dependency
852+
Value ..> ParserState: dependency
774853
Positionable <|.. Value: realization
775-
PrimitiveValue <|-- Size: inheritance
776-
PrimitiveValue <|-- CSSString: inheritance
777-
Value <|-- PrimitiveValue: inheritance
778-
ValueList <|-- CSSFunction: inheritance
779-
ValueList <|-- RuleValueList: inheritance
780-
Renderable <|.. Comment: realization
781-
Positionable <|.. Comment: realization
782-
854+
Value ..> RuleValueList: dependency
855+
Value ..> UnexpectedTokenException: dependency
856+
ValueList ..> OutputFormat: dependency
857+
Value <|-- ValueList: inheritance
783858
%% end of the generated part
784-
785-
786-
Anchor --> "1" ParserState: parserState
787-
CSSList --> "*" CSSList: contents
788-
CSSList --> "*" Charset: contents
789-
CSSList --> "*" Comment: comments
790-
CSSList --> "*" Import: contents
791-
CSSList --> "*" RuleSet: contents
792-
CSSNamespace --> "*" Comment: comments
793-
Charset --> "*" Comment: comments
794-
Charset --> "1" CSSString: charset
795-
DeclarationBlock --> "*" Selector: selectors
796-
Import --> "*" Comment: comments
797-
OutputFormat --> "1" OutputFormat: nextLevelFormat
798-
OutputFormat --> "1" OutputFormatter: outputFormatter
799-
OutputFormatter --> "1" OutputFormat: outputFormat
800-
Parser --> "1" ParserState: parserState
801-
ParserState --> "1" Settings: parserSettings
802-
Rule --> "*" Comment: comments
803-
Rule --> "1" RuleValueList: value
804-
RuleSet --> "*" Comment: comments
805-
RuleSet --> "*" Rule: rules
806-
URL --> "1" CSSString: url
807-
ValueList --> "*" Value: components
808859
```
809860

810861
## API and deprecation policy

0 commit comments

Comments
 (0)