org.jetbrains.kotlinx.ggdsl.ir.scale.PositionalScale.kt Maven / Gradle / Ivy
package org.jetbrains.kotlinx.ggdsl.ir.scale
/**
* Positional scale interface. Positional scale is used in case
* of mapping to positional aesthetic attribute.
* It has an implicit range.
*
* @param DomainType the type of the domain.
*/
sealed interface PositionalScale : Scale
/**
* Positional continuous scale.
*
* @param DomainType the type of the domain.
* @param limits the limits of the domain.
*/
data class PositionalContinuousScale(
val limits: Pair? = null,
override val transform: PositionalTransform? = null,
) : ContinuousScale, PositionalScale
/**
* Positional categorical scale.
*
* @param DomainType the type of the domain.
* @param categories the list of the domain categories.
*/
data class PositionalCategoricalScale(
val categories: List? = null,
) : CategoricalScale, PositionalScale
© 2015 - 2025 Weber Informatics LLC | Privacy Policy