Skip to content

Commit

Permalink
Removed more long lines
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jan 24, 2025
1 parent 8ef9569 commit c687ac1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
17 changes: 13 additions & 4 deletions src/core/cataclysm.PropertyDef.scala
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,15 @@ object PropertyDef:
erased given backgroundOrigin: ("backgroundOrigin" is PropertyDef[Text]) = ###
erased given backgroundPosition: ("backgroundPosition" is PropertyDef[Text]) = ###
erased given backgroundPosition2: ("backgroundPosition" is PropertyDef[Dimension]) = ###
erased given backgroundPosition3: ("backgroundPosition" is PropertyDef[(Dimension, Dimension)]) = ###

erased given backgroundPosition3: ("backgroundPosition" is PropertyDef[(Dimension, Dimension)]) =
###

erased given backgroundRepeat: ("backgroundRepeat" is PropertyDef[Text]) = ###
erased given backgroundRepeat2: ("backgroundRepeat" is PropertyDef[BackgroundRepeat]) = ###

erased given backgroundRepeat3: ("backgroundRepeat" is PropertyDef[(BackgroundRepeat, BackgroundRepeat)]) =
erased given backgroundRepeat3: ("backgroundRepeat" is PropertyDef
[(BackgroundRepeat, BackgroundRepeat)]) =
###

erased given backgroundSize: ("backgroundSize" is PropertyDef[Text]) = ###
Expand Down Expand Up @@ -298,10 +302,15 @@ object PropertyDef:
erased given textCombineUpright: ("textCombineUpright" is PropertyDef[Text]) = ###
erased given textDecoration1: ("textDecoration" is PropertyDef[TextDecorationLine]) = ###

erased given textDecoration2: ("textDecoration" is PropertyDef[(TextDecorationLine, Text, TextDecorationStyle)]) =
erased given textDecoration2: ("textDecoration" is PropertyDef
[(TextDecorationLine,
Text,
TextDecorationStyle)]) =
###

erased given textDecorationColor1: [ColorType] => (erased ColorType is Chromatic) => ("textDecorationColor" is PropertyDef[ColorType]) = ###
erased given textDecorationColor1: [ColorType] => (erased ColorType is Chromatic)
=> ("textDecorationColor" is PropertyDef[ColorType]) = ###

erased given textDecorationColor2: ("textDecorationColor" is PropertyDef[Transparent.type]) = ###
erased given textDecorationLine: ("textDecorationLine" is PropertyDef[TextDecorationLine]) = ###

Expand Down
7 changes: 6 additions & 1 deletion src/core/cataclysm.ShowProperty.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ object ShowProperty:
given [PropertyType: ShowProperty, PropertyType2: ShowProperty, PropertyType3: ShowProperty]
: ShowProperty[(PropertyType, PropertyType2, PropertyType3)] =

tuple => List(PropertyType.show(tuple(0)), PropertyType2.show(tuple(1)), PropertyType3.show(tuple(2))).join(t" ")
tuple =>
List
(PropertyType.show(tuple(0)),
PropertyType2.show(tuple(1)),
PropertyType3.show(tuple(2)))
. join(t" ")

given [PropertyType: ShowProperty, PropertyType2: ShowProperty, PropertyType3: ShowProperty, PropertyType4: ShowProperty]
: ShowProperty[(PropertyType, PropertyType2, PropertyType3, PropertyType4)] = tuple =>
Expand Down

0 comments on commit c687ac1

Please sign in to comment.