Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve border line type experience #1106

Merged
merged 8 commits into from
May 24, 2024
Next Next commit
Improve linetype experience (LPK-220).
  • Loading branch information
ASmirnov-HORIS committed May 8, 2024
commit 7de207e18f5030430b012c013acc0966fb97b5d7
1 change: 1 addition & 0 deletions future_changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@

- Livemap: improve "tiles" documentation [[#1093](https://github.com/JetBrains/lets-plot/issues/1093)].
- Undesired vertical scroller when displaying `gggrid` in Jupyter notebook.
- Improve border line type experience [[LPK-220](https://github.com/JetBrains/lets-plot-kotlin/issues/220)].
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ enum class NamedLineType(val code: Int, private val myDashArray: List<Double>?)
override val isSolid: Boolean
get() = true
},
DASHED(2, listOf(4.3, 4.3)),
DOTTED(3, listOf(1.0, 3.2)),
DASHED(2, listOf(4.0, 4.0)),
DOTTED(3, listOf(1.0, 3.0)),
@Suppress("SpellCheckingInspection")
DOTDASH(4, listOf(1.0, 3.2, 4.3, 3.2)),
DOTDASH(4, listOf(1.0, 3.0, 4.0, 3.0)),
@Suppress("SpellCheckingInspection")
LONGDASH(5, listOf(7.4, 3.2)),
LONGDASH(5, listOf(7.0, 3.0)),
@Suppress("SpellCheckingInspection")
TWODASH(6, listOf(2.4, 2.4, 6.4, 2.4));
TWODASH(6, listOf(2.0, 2.0, 6.0, 2.0));

override val isSolid: Boolean
get() = false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class PathConverterTest {

matcher!!
.strokeWidth(eq(1.1))
.lineDash(vectorEq(listOf(4.73, 4.73)))
.lineDash(vectorEq(listOf(4.4, 4.4)))

assertMapObject()
}
Expand All @@ -61,7 +61,7 @@ class PathConverterTest {

matcher!!
.strokeWidth(eq(4.4))
.lineDash(vectorEq(listOf(18.92, 18.92)))
.lineDash(vectorEq(listOf(17.6, 17.6)))

assertMapObject()
}
Expand Down