From 24f89e55890cbb58762ef01eddc5b6c80253d4a2 Mon Sep 17 00:00:00 2001 From: zhongl Date: Thu, 28 Aug 2025 13:46:34 +0800 Subject: [PATCH 1/2] chore: Bump mill to 1.0.4. --- .mill-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.mill-version b/.mill-version index 3eefcb9..ee90284 100644 --- a/.mill-version +++ b/.mill-version @@ -1 +1 @@ -1.0.0 +1.0.4 From 35759e181c8d8c6b9804edc6b6d7993240ef03e1 Mon Sep 17 00:00:00 2001 From: zhongl Date: Thu, 28 Aug 2025 13:57:19 +0800 Subject: [PATCH 2/2] Bump scala to 3.7.2 and scalajs to 1.19.0. --- build.mill | 4 ++-- src/plotly/CorrelatePlot.scala | 2 +- src/plotly/Registry.scala | 2 -- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/build.mill b/build.mill index e0c9ac4..c5519fe 100644 --- a/build.mill +++ b/build.mill @@ -11,8 +11,8 @@ import scalajslib.api.* import scalalib.* object `package` extends ScalaJSModule, ScalablyTyped: - def scalaVersion = "3.3.6" - def scalaJSVersion = "1.16.0" + def scalaVersion = "3.7.2" + def scalaJSVersion = "1.19.0" def moduleKind = ModuleKind.ESModule def mvnDeps = super.mvnDeps() ++ Seq(mvn"com.lihaoyi::sourcecode::0.4.2") diff --git a/src/plotly/CorrelatePlot.scala b/src/plotly/CorrelatePlot.scala index 3aa9a4b..4844ccf 100644 --- a/src/plotly/CorrelatePlot.scala +++ b/src/plotly/CorrelatePlot.scala @@ -39,7 +39,7 @@ object CorrelatePlot: i => val elected = secondaries.zipWithIndex.map: case (d, n) if n + 1 == i => d |> visible(true) - case (d, n) => d |> copy("name", "x", "yaxis") |> visible(legendonly) + case (d, _) => d |> copy("name", "x", "yaxis") |> visible(legendonly) f(primary :: elected, layout.setYaxis2(ys(i).setColorIndex(i))) end apply diff --git a/src/plotly/Registry.scala b/src/plotly/Registry.scala index 617c953..8ba5dd4 100644 --- a/src/plotly/Registry.scala +++ b/src/plotly/Registry.scala @@ -1,9 +1,7 @@ package plotly import scala.language.implicitConversions -import scala.scalajs.js -import typings.plotlyJs.mod.PlotlyHTMLElement import typings.plotlyJsDistMin.mod.* import convs.given