@elexis-eu/xonomy
TypeScript icon, indicating that this package has built-in type declarations

1.3.1 • Public • Published

Xonomy

This is a Typescript port of Xonomy. Available on NPM as @elexis-eu/xonomy

Usage:

In a bundled project (rollup, webpack, etc.)

import Xonomy from 'xonomy';

const x = new Xonomy();
// now use x as you would normally.

In browser:

Add the following lines to your html:

<link rel="stylesheet" href="distr/xonomy.css">
<script src="dist/xonomy.umd.js">

This will set window.Xonomy to the Xonomy constructor. Create an instance of the Xonomy editor as follows:

const x = new Xonomy();

The x Xonomy instance can now be used as described in the xonomy manual. Note that the document was written when Xonomy used a global instance, and so uses Xonomy.someFunction() for nearly every function, but in this version you should use the x instance instead.

Package Sidebar

Install

npm i @elexis-eu/xonomy

Weekly Downloads

0

Version

1.3.1

License

MIT

Unpacked Size

207 kB

Total Files

19

Last publish

Collaborators

  • kcmertens