-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
29c09f7
commit 288a318
Showing
8 changed files
with
120 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package plotly.element | ||
|
||
sealed abstract class Alignment(val label: String) extends Product with Serializable | ||
|
||
object Alignment { | ||
case object Left extends Alignment("left") | ||
case object Right extends Alignment("right") | ||
case object Auto extends Alignment("auto") | ||
} |
11 changes: 11 additions & 0 deletions
11
core/shared/src/main/scala/plotly/element/ColorModel.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package plotly.element | ||
|
||
sealed abstract class ColorModel(val label: String) extends Product with Serializable | ||
|
||
object ColorModel { | ||
case object RGB extends ColorModel("rgb") | ||
case object RGBA extends ColorModel("rgba") | ||
case object RGBA256 extends ColorModel("rgba256") | ||
case object HSL extends ColorModel("hsl") | ||
case object HSLA extends ColorModel("hsla") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
core/shared/src/main/scala/plotly/element/HoverLabel.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package plotly.element | ||
|
||
import dataclass.data | ||
|
||
@data(optionSetters = true) class HoverLabel( | ||
bgcolor: Option[OneOrSeq[Color]] = None, | ||
bordercolor: Option[OneOrSeq[Color]] = None, | ||
font: Option[HoverLabelFont] = None, | ||
align: Option[OneOrSeq[Alignment]] = None, | ||
namelength: Option[OneOrSeq[Int]] = None, | ||
uirevision: Option[Element] = None | ||
) |
9 changes: 9 additions & 0 deletions
9
core/shared/src/main/scala/plotly/element/HoverLabelFont.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
package plotly.element | ||
|
||
import dataclass.data | ||
|
||
@data(optionSetters = true) class HoverLabelFont( | ||
family: Option[OneOrSeq[String]] = None, | ||
size: Option[OneOrSeq[Double]] = None, | ||
color: Option[OneOrSeq[Color]] = None | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters