Skip to content

Commit

Permalink
[Release] 1.0.4
Browse files Browse the repository at this point in the history
- Add default values for controls
- Update licence name and link
  • Loading branch information
zTrap committed Mar 29, 2024
1 parent 5624b6e commit bd8d494
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The simple multiplatform helper for build [Bezier curves](https://en.wikipedia.o
## Install

```gradle
implementation 'ru.ztrap:beziercurve:1.0.3'
implementation 'ru.ztrap:beziercurve:1.0.4'
```

## Usage
Expand All @@ -19,8 +19,8 @@ val startScene = BezierScene(3f, 7f, 21f, 17f)
val endScene = BezierScene(6f, 6f, 18f, 18f)

val curve = BezierCurve(
startScene.left to startScene.centerY,
endScene.centerX to endScene.centerY
start = startScene.left to startScene.centerY,
end = endScene.centerX to endScene.centerY,
)
```

Expand Down
10 changes: 5 additions & 5 deletions convention-plugins/src/main/kotlin/PublishingInfo.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@ object PublishingInfo {
}

object License {
const val NAME = "the apache software license, version 2.0"
const val URL = "http://www.apache.org/licenses/license-2.0.txt"
const val NAME = "Apache-2.0 license"
const val URL = "https://www.apache.org/licenses/LICENSE-2.0"
const val DIST = "repo"
}

object Developer {
const val ID = "ztrap"
const val NAME = "peter gulko"
const val ID = "zTrap"
const val NAME = "Peter Gulko"
const val EMAIL = "ztrap.developer@gmail.com"
}

object Artifact {
const val ID = BASE_ARTIFACT_NAME
const val NAME = "Bezier curves creator"
const val DESCRIPTION = "The simple multiplatform helper for build Bezier curves"
const val VERSION = "1.0.3"
const val VERSION = "1.0.4"
}
}
4 changes: 2 additions & 2 deletions src/commonMain/kotlin/ru/ztrap/bezier/curve/BezierCurve.kt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ private val APPLICABLE_VALUES = 0f..1f
public data class BezierCurve(
val start: Point,
val end: Point,
val controls: List<Point>,
val controls: List<Point> = emptyList(),
) {

/**
Expand All @@ -18,7 +18,7 @@ public data class BezierCurve(
public constructor(
start: Pair<Float, Float>,
end: Pair<Float, Float>,
controls: List<Pair<Float, Float>>,
controls: List<Pair<Float, Float>> = emptyList(),
) : this(
start = Point(start.x, start.y),
end = Point(end.x, end.y),
Expand Down

0 comments on commit bd8d494

Please sign in to comment.