Skip to content

Commit 9498f75

Browse files
authored
Merge pull request #78 from mipt-npm/dev
0.4.2
2 parents c19525d + 0f14699 commit 9498f75

File tree

24 files changed

+204
-80
lines changed

24 files changed

+204
-80
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1616

1717
### Fixed
1818

19+
### Security
20+
21+
## [0.4.2]
22+
23+
### Added
24+
- `automargin` property to `Axis` according to https://plotly.com/python/reference/layout/xaxis/#layout-xaxis-automargin
25+
26+
### Fixed
27+
- Remove unnecessary `kotlinx-css` dependency.
28+
- Added compatibility mode for legacy notebooks. Use `Plotly.jupyter.notebook()` call to enable legacy mode.
29+
1930
### Security
2031
## [0.4.0]
2132
### Added

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@
77

88
## Artifact details
99

10-
**TBD**
10+
[![Maven Central](https://img.shields.io/maven-central/v/space.kscience/plotlykt-core.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22space.kscience%22%20AND%20a:%22plotlykt-core%22)
11+
12+
Dev builds and intermediate artifacts are available via `https://repo.kotlin.link` maven repository.
1113

1214
## Compatibility note
13-
The current `0.4.0` version of the library is compatible with kotlin 1.4 with JS-IR and kotlinx-serialization 1.1.0. The JVM part requires JVM 11 to run.
15+
The current `0.4.2` version of the library is compatible with kotlin 1.4 with JS-IR and kotlinx-serialization 1.1.0. The JVM part requires **JVM 11** to run.
1416

1517
# TL;DR
1618
See [examples](./examples/src/main/kotlin).
@@ -53,8 +55,8 @@ The examples of the notebooks are shown in [notebooks](./examples/notebooks) dir
5355

5456
```kotlin
5557
@file:Repository("https://repo.kotlin.link")
56-
@file:DependsOn("space.kscience:plotlykt-jupyter:0.4.0")
57-
//@file:DependsOn("space.kscience:plotlykt-server:0.4.0") // Use this one for sever integration.
58+
@file:DependsOn("space.kscience:plotlykt-jupyter:0.4.2")
59+
//@file:DependsOn("space.kscience:plotlykt-server:0.4.2") // Use this one for sever integration.
5860
```
5961

6062
The module `plotly` allows rendering static plots in Jupyter. Jupyter lab is currently supported. Jupyter notebook (classic) is able to render only `PlotlyPage` objects, so one must convert plots to pages to be able to use notebook (see [demo notebook](./notebooks/plotlykt-demo-classic.ipynb)).
@@ -90,7 +92,7 @@ repositories {
9092
}
9193

9294
dependencies {
93-
implementation("space.kscience:plotlykt-server:0.4.0")
95+
implementation("space.kscience:plotlykt-server:0.4.2")
9496
}
9597
```
9698

build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ val dataforgeVersion by extra("0.4.0")
88

99
allprojects {
1010
group = "space.kscience"
11-
version = "0.4.0"
11+
version = "0.4.2"
1212

1313
repositories {
1414
maven("https://repo.kotlin.link")

docs/templates/README-TEMPLATE.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77

88
## Artifact details
99

10-
**TBD**
10+
[![Maven Central](https://img.shields.io/maven-central/v/space.kscience/plotlykt-core.svg?label=Maven%20Central)](https://search.maven.org/search?q=g:%22space.kscience%22%20AND%20a:%22plotlykt-core%22)
11+
12+
Dev builds and intermediate artifacts are available via `https://repo.kotlin.link` maven repository.
1113

1214
## Compatibility note
1315
The current `$version` version of the library is compatible with kotlin 1.4 with JS-IR and kotlinx-serialization 1.1.0. The JVM part requires JVM 11 to run.

examples/build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ dependencies {
1818

1919
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
2020
kotlinOptions.jvmTarget = "11"
21+
kotlinOptions.freeCompilerArgs += "-Xopt-in=kotlin.RequiresOptIn"
2122
}
2223

2324
// A workaround for https://youtrack.jetbrains.com/issue/KT-44101

examples/src/main/kotlin/customPage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ fun main() {
1818
val trace2 = Trace(x1, y2) { name = "cos" }
1919

2020
Plotly.fragment { container ->
21-
val plot = plot(renderer = container) {
21+
plot(renderer = container) {
2222
traces(trace1, trace2)
2323
layout {
2424
title = "The plot above"

fx-demo/build.gradle.kts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ repositories {
1515
}
1616

1717
dependencies {
18-
implementation("org.jetbrains.kotlin:kotlin-stdlib-jdk8")
19-
implementation("no.tornado:tornadofx:1.7.19")
2018
implementation(project(":plotlykt-server"))
19+
implementation("no.tornado:tornadofx:1.7.19")
2120
implementation("ch.qos.logback:logback-classic:1.2.3")
2221
}
2322

gradle/wrapper/gradle-wrapper.jar

293 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

gradlew

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ fi
130130
if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then
131131
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
132132
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
133-
133+
134134
JAVACMD=`cygpath --unix "$JAVACMD"`
135135

136136
# We build the pattern for arguments to be converted via cygpath

0 commit comments

Comments
 (0)