canvasom-inspector
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

canvasom-inspector

A simple inspector for canvasom.

Introduction

This lib provides a simple interface to inspect your canvas object model powered by canvasom:

const { Inspector } = CI; // UMD global

// create an inspector
const canvasInspector = new Inspector({
    target: CANVAS_NODE_TO_INSPECT,
});

// append the element to the document
document.body.appendChild(canvasInspector.element);

canvasInspector.show();

canvasInspector.update(ANOTHER_NODE); // change target

Links

Package Sidebar

Install

npm i canvasom-inspector

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

23.8 kB

Total Files

13

Last publish

Collaborators

  • 3h