0
54%
MIT
Tiny SVG utilities

bs-svg-attachment

Tiny utility functions for SVG DOM mainly in Buckle Script / Reason.

Features

  • Simple, easy.
  • No dirty DOM. No append some extra attributes.

Installaion

SVG attachment depents on types of bs-webapi.

npm install bs-svg-attachment bs-webapi

Then add them to bs-dependencies in your bsconfig.json.

{
  "name": "some",
  "source": "src",
  "bs-dependencies": [
    "bs-svg-attachment",
    "bs-webapi"
  ]
}

Modules

  • Svg Functions for one element
  • SvgSet Functions for element set