Installation
Simple and easy to follow
I2Djs source code is written using ES6 Modules. It provides bundles to support different JS environments - ESM and UMD formats.
Source Code:
You can download the source code of I2Djs from the gitHub Repository.
i2d.js - UMD syntax.
i2d.esm.js [ i2d.esm.min.js ] - ES6 module standards.
Also, it provides minified versions for all the above-mentioned formats.
<script> Tag:
To use directly in the browser
<script src= 'https://raw.githubusercontent.com/I2Djs/I2Djs/master/dist/i2d.js'></script>
npm package:
I2Djs npm package can be installed using the below cmd.
$ npm install i2djs --save
ES6 module Importing.
Import modules into the namespace.
import * as i2d from 'i2djs'
Import individual modules:
import {canvasLayer} from 'i2djs';
import {svgLayer} from 'i2djs';
import {webglLayer} from 'i2djs';
import {pdfLayer} from 'i2djs';
import {behaviour} from 'i2djs';
import {path} from 'i2djs';
import {geometry} from 'i2djs';
import {color} from 'i2djs';
import {queue} from 'i2djs';
import {chain} from 'i2djs';
Last updated