All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.outr.CanvgImplicits.scala Maven / Gradle / Ivy

There is a newer version: 1.4.0_2
Show newest version
package com.outr

import org.scalajs.dom.raw.CanvasRenderingContext2D

import scala.language.implicitConversions
import scala.scalajs.js
import scala.scalajs.js.annotation.JSGlobal

object CanvgImplicits {
  implicit def context2CanvgContext(context: CanvasRenderingContext2D): CanvgContext = context.asInstanceOf[CanvgContext]
}

@js.native
@JSGlobal
class CanvgContext(context: CanvasRenderingContext2D) extends js.Object {
  def drawSvg(svg: String,
              x: Double,
              y: Double,
              width: Double,
              height: Double,
              options: CanvgOptions = js.native): Unit = js.native
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy