R/fabric_dependency.R

Defines functions fabric_dependency

Documented in fabric_dependency

#' Create an HTML dependency for fabric.js
#'
#' @rdname html-dependencies
#' @export
#'
#'


fabric_dependency <- function() {
  htmltools::htmlDependency(
    name = "fabric",
    version = "3.6.3",
    package = "fabricerin",
    src = c(
      file = "fabric",
      href = "https://cdnjs.cloudflare.com/ajax/libs/fabric.js/3.6.3/"
    ),
    script = "fabric.min.js",
    all_files = FALSE
  )
}

Try the fabricerin package in your browser

Any scripts or data that you put into this service are public.

fabricerin documentation built on Aug. 15, 2020, 1:06 a.m.