A scala.js facade against the interact.js library.
Add the library to your project:
libraryDependencies += "com.github.busti" %%% "scalajs-interactjs" % "1.1.4"
Add interact.js to your javascript dependencies:
jsDependencies ++= Seq(
"org.webjars.npm" % "interactjs" % "1.3.3" / "1.3.3/dist/interact.js"
)
Import the library in your code:
import org.scalajs.interactjs._
Initialize an interactable using an element, or selector string:
interact("#myElement").draggable(???)
interact(element).resizeable(???)
All methods are fully documented using the official documentation.