Package-level declarations

Types

Link copied to clipboard
data class XY(val x: Float, val y: Float) : Vector2D<Float>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class XYViewPoint(val focus: XY, val zoom: Float = 1.0f) : ViewPoint<XY>

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun FeatureGroup<XY>.arc(center: Pair<Double, Double>, radius: Float, startAngle: Angle, arcLength: Angle, id: String? = null): FeatureRef<XY, ArcFeature<XY>>
Link copied to clipboard
fun FeatureGroup<XY>.background(width: Float, height: Float, offset: XY = XY(0f, 0f), id: String? = null, painter: @Composable () -> Painter): FeatureRef<XY, ScalableImageFeature<XY>>
Link copied to clipboard
fun FeatureGroup<XY>.circle(centerCoordinates: Pair<Number, Number>, size: Dp = 5.dp, id: String? = null): FeatureRef<XY, CircleFeature<XY>>
Link copied to clipboard
fun Rectangle<XY>.computeViewPoint(canvasSize: DpSize = defaultCanvasSize): ViewPoint<XY>
Link copied to clipboard
fun FeatureGroup<XY>.draw(position: Pair<Number, Number>, id: String? = null, draw: DrawScope.() -> Unit): FeatureRef<XY, DrawFeature<XY>>
Link copied to clipboard
fun FeatureGroup<XY>.image(position: Pair<Number, Number>, image: ImageVector, size: DpSize = DpSize(image.defaultWidth, image.defaultHeight), id: String? = null): FeatureRef<XY, VectorIconFeature<XY>>
Link copied to clipboard
fun FeatureGroup<XY>.line(aCoordinates: Pair<Number, Number>, bCoordinates: Pair<Number, Number>, id: String? = null): FeatureRef<XY, LineFeature<XY>>
Link copied to clipboard
fun FeatureGroup<XY>.pixelMap(rectangle: Rectangle<XY>, xSize: Float, ySize: Float, id: String? = null, builder: (XY) -> Color?): FeatureRef<XY, PixelMapFeature<XY>>
Link copied to clipboard
fun CoordinateSpace<XY>.Rectangle(center: XY, height: Float, width: Float): Rectangle<XY>
Link copied to clipboard
fun FeatureGroup<XY>.rectanglePolygon(rectangle: Rectangle<XY>, attributes: Attributes = Attributes.EMPTY, id: String? = null): FeatureRef<XY, PolygonFeature<XY>>
fun FeatureGroup<XY>.rectanglePolygon(left: Number, right: Number, bottom: Number, top: Number, attributes: Attributes = Attributes.EMPTY, id: String? = null): FeatureRef<XY, PolygonFeature<XY>>
Link copied to clipboard
@Composable
fun SchemeView(state: XYCanvasState, features: FeatureGroup<XY>, modifier: Modifier = Modifier.fillMaxSize())

@Composable
fun SchemeView(features: FeatureGroup<XY>, initialViewPoint: ViewPoint<XY>? = null, initialRectangle: Rectangle<XY>? = null, config: ViewConfig<XY> = ViewConfig(), modifier: Modifier = Modifier.fillMaxSize())

A builder for a Scheme with static features.

@Composable
fun SchemeView(initialViewPoint: ViewPoint<XY>? = null, initialRectangle: Rectangle<XY>? = null, config: ViewConfig<XY> = ViewConfig(), modifier: Modifier = Modifier.fillMaxSize(), buildFeatures: FeatureGroup<XY>.() -> Unit = {})

Draw a scheme using convenient parameters. If neither initialViewPoint, noe initialRectangle is defined, use map features to infer view region.

Link copied to clipboard
fun FeatureGroup<XY>.text(position: Pair<Number, Number>, text: String, id: String? = null): FeatureRef<XY, TextFeature<XY>>
Link copied to clipboard
fun XY(x: Number, y: Number): XY