diff --git a/CHANGELOG.md b/CHANGELOG.md index fb58383f..3dc18040 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] +## [0.5.2] + +### Changed +- Update Compose to version 1.6.0-beta01. +- Update Kotlin to version 1.9.22 + ## [0.5.1] ### Fixed diff --git a/README.md b/README.md index 3a610250..358991cf 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ [![Maven Central](https://img.shields.io/maven-central/v/io.github.koalaplot/koalaplot-core?color=278ec7)](https://central.sonatype.com/artifact/io.github.koalaplot/koalaplot-core) -[![Kotlin](https://img.shields.io/badge/kotlin-1.9.21-278ec7.svg?logo=kotlin)](http://kotlinlang.org) +[![Kotlin](https://img.shields.io/badge/kotlin-1.9.22-278ec7.svg?logo=kotlin)](http://kotlinlang.org) [![Dokka docs](https://img.shields.io/badge/docs-dokka-278ec7)](https://koalaplot.github.io/koalaplot-core/api/0.5.1/) [![License MIT](https://img.shields.io/badge/license-MIT-278ec7.svg)](https://github.com/KoalaPlot/koalaplot-core/tree/main/LICENSE.txt) @@ -75,7 +75,7 @@ repositories { ```kotlin dependencies { - implementation("io.github.koalaplot:koalaplot-core:0.5.1") + implementation("io.github.koalaplot:koalaplot-core:0.5.2") } ``` @@ -107,8 +107,8 @@ the [samples](https://koalaplot.github.io/koalaplot-samples). # Documentation -- [Latest build](https://koalaplot.github.io/koalaplot-core/api/0.5.1) -- [Release 0.5.1](https://koalaplot.github.io/koalaplot-core/api/0.5.1) +- [Latest build](https://koalaplot.github.io/koalaplot-core/api/0.5.2) +- [Release 0.5.2](https://koalaplot.github.io/koalaplot-core/api/0.5.2) Also see the [sample repository](https://github.com/KoalaPlot/koalaplot-samples) for code examples. diff --git a/build.gradle.kts b/build.gradle.kts index a4ac2b37..18afaf68 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -26,7 +26,7 @@ dependencies { } group = "io.github.koalaplot" -version = "0.5.1" +version = "0.5.2" kotlin { explicitApi() @@ -69,7 +69,7 @@ kotlin { } named("jvmMain") { - dependsOn(commonMain) + // dependsOn(commonMain) dependencies { @@ -89,10 +89,10 @@ kotlin { val iosArm64Main by getting val iosSimulatorArm64Main by getting create("iosMain") { - dependsOn(commonMain) - iosX64Main.dependsOn(this) - iosArm64Main.dependsOn(this) - iosSimulatorArm64Main.dependsOn(this) + // dependsOn(commonMain) +// iosX64Main.dependsOn(this) +// iosArm64Main.dependsOn(this) +// iosSimulatorArm64Main.dependsOn(this) dependencies { } } diff --git a/src/commonMain/kotlin/io/github/koalaplot/core/polar/PolarGraph.kt b/src/commonMain/kotlin/io/github/koalaplot/core/polar/PolarGraph.kt index 940baf71..0901e1cb 100644 --- a/src/commonMain/kotlin/io/github/koalaplot/core/polar/PolarGraph.kt +++ b/src/commonMain/kotlin/io/github/koalaplot/core/polar/PolarGraph.kt @@ -171,8 +171,8 @@ public fun PolarGraph( } /** - * Transforms [inputAngle] to start at 3 O'Clock and increment counter-clockwise like - * the normal mathematical convention. + * Transforms [inputAngle] based on the [AngularAxisModel] settings to be in the coordinate system of the screen where + * 0-degrees is at the 3 O'Clock position and angles increment clockwise. */ private fun AngularAxisModel.toPolarAngle(inputAngle: AngularValue): AngularValue { val sign = if (angleDirection == AngularAxisModel.AngleDirection.CLOCKWISE) { @@ -199,7 +199,7 @@ private fun polarToCartesianPlot( radialAxisModel: FloatRadialAxisModel, size: Size ): Offset { - // Transform the angle to where 0 is at the 12 O'Clock position. + // Transform the angle to screen coordinates. val theta = angularAxisModel.toPolarAngle(angularAxisModel.computeOffset(point.theta)) val r = min(size.width / 2, size.height / 2) * radialAxisModel.computeOffset(point.r) diff --git a/versions.properties b/versions.properties index 0a37ca0a..097d1f54 100644 --- a/versions.properties +++ b/versions.properties @@ -10,13 +10,16 @@ ## unused plugin.android=8.1.1 -version.kotlin=1.9.21 +version.kotlin=1.9.22 ## # available=2.0.0-Beta1 +## # available=2.0.0-Beta2 +## # available=2.0.0-Beta3 version.kotlinx.coroutines=1.7.3 ## # available=1.8.0-RC +## # available=1.8.0-RC2 -plugin.org.jetbrains.compose=1.6.0-alpha01 +plugin.org.jetbrains.compose=1.6.0-beta01 version.org.jetbrains.dokka..dokka-base=1.9.10