All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jetbrains.kotlinx.kandy.letsplot.internal.LetsPlotMappingParameters.kt Maven / Gradle / Ivy

There is a newer version: 0.8.0-dev-57
Show newest version
/*
* Copyright 2020-2023 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/

package org.jetbrains.kotlinx.kandy.letsplot.internal

import org.jetbrains.kotlinx.kandy.ir.bindings.NonPositionalMappingParameters
import org.jetbrains.kotlinx.kandy.ir.bindings.NonPositionalMappingParametersContinuous
import org.jetbrains.kotlinx.kandy.ir.bindings.PositionalMappingParameters
import org.jetbrains.kotlinx.kandy.ir.bindings.PositionalMappingParametersContinuous
import org.jetbrains.kotlinx.kandy.ir.scale.*
import org.jetbrains.kotlinx.kandy.letsplot.scales.guide.model.Axis
import org.jetbrains.kotlinx.kandy.letsplot.scales.guide.model.Legend

/**
 * Lets-plot positional mapping parameters.
 *
 * @property DomainType the type of the domain values for the scale.
 * @property scale the positional scale used in the mapping.
 * @property axis configuration settings for the scale axis.
 */
public interface LetsPlotPositionalMappingParameters : PositionalMappingParameters {
    public val axis: Axis
}

/**
 * Lets-plot positional mapping parameters for continuous aes.
 *
 * @property DomainType the type of the domain values for the scale.
 * @property scale the positional scale used in this mapping.
 * @property axis configuration settings for the scale axis.
 */
public data class LetsPlotPositionalMappingParametersContinuous(
    override var scale: PositionalScale = PositionalDefaultScale(),
    public override val axis: Axis = Axis()
) : LetsPlotPositionalMappingParameters,
    PositionalMappingParametersContinuous

/**
 * Lets-plot non-positional mapping parameters.
 *
 * @property DomainType the type of the domain values for the scale.
 * @property RangeType the type of the range values for the scale.
 * @property scale the scale used in the mapping.
 * @property legend configuration settings for the scale legend.
 */
public interface LetsPlotNonPositionalMappingParameters
    : NonPositionalMappingParameters {
    public val legend: Legend
}

/**
 * Lets-plot non-positional mapping parameters for continuous aes.
 *
 * @property DomainType the type of the domain values for the scale.
 * @property RangeType the type of the range values for the scale.
 * @property scale the scale used in this mapping.
 * @property legend configuration settings for the scale legend.
 */
public data class LetsPlotNonPositionalMappingParametersCategorical(
    override var scale: NonPositionalCategoricalScaleBase =
        NonPositionalDefaultCategoricalScale(),
    public override val legend: Legend = Legend()
) : LetsPlotNonPositionalMappingParameters

/**
 * Lets-plot non-positional mapping parameters.
 *
 * @property DomainType the type of the domain values for the scale.
 * @property RangeType the type of the range values for the scale.
 * @property scale the scale used in this mapping.
 * @property legend configuration settings for the scale legend.
 */
public data class LetsPlotNonPositionalMappingParametersContinuous(
    override var scale: NonPositionalScale = NonPositionalDefaultScale(),
    public override val legend: Legend = Legend()
) : LetsPlotNonPositionalMappingParameters,
    NonPositionalMappingParametersContinuous




© 2015 - 2025 Weber Informatics LLC | Privacy Policy