Skip to content

Commit 53757de

Browse files
Updated library
1 parent 77cc443 commit 53757de

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ scalacOptions ++= Seq(
1818
libraryDependencies ++= Seq(
1919
"org.scala-js" %%% "scalajs-dom" % "0.8.0",
2020
"com.github.japgolly.scalajs-react" %%% "core" % "0.8.1",
21-
"eu.unicredit" %%% "paths-scala-js" % "0.4.4"
21+
"eu.unicredit" %%% "paths-scala-js" % "0.4.5"
2222
)
2323

2424
jsDependencies ++= Seq(

src/main/scala/demo/components/bar.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ object bar {
2121
accessor = identity,
2222
width = 380,
2323
height = 300,
24-
gutter = 10
24+
gutter = 10,
25+
offset = (80, 50)
2526
)
2627
val groups = stats.values.length
2728
val middle = groups / 2
@@ -36,7 +37,7 @@ object bar {
3637
}
3738

3839
svg(width := 460, height := 400,
39-
g(transform := "translate(80,50)", rectangles)
40+
rectangles
4041
)
4142
})
4243
.build

0 commit comments

Comments
 (0)