Skip to content

API Index

Charming offers a set of utilities for working with SVG and Canvas, which can be used either together or independently.

Charming DOM

Create and manipulate DOM elements.

  • cm.svg — SVG via tagged template literal.
  • cm.html — HTML via tagged template literal.
  • cm.attr — get, set, or remove attributes (including styles and events) on a node.

Charming Canvas

Set up a 2D canvas and draw shapes.

Charming Path

Build SVG path strings for common shapes.