-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
Copy pathindex-bundle.ts
36 lines (32 loc) · 985 Bytes
/
index-bundle.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* Sigma.js Bundle Endpoint
* ========================
*
* The library endpoint.
* Will be built so that it exports a global `Sigma` class, that also exposes
* useful classes as static properties.
* @module
*/
import EdgeCurveProgram from "@sigma/edge-curve";
import { createNodeBorderProgram } from "@sigma/node-border";
import { createNodeImageProgram } from "@sigma/node-image";
import { createNodePiechartProgram } from "@sigma/node-piechart";
import * as rendering from "./rendering";
import * as utils from "./utils";
import Camera from "./core/camera";
import MouseCaptor from "./core/captors/mouse";
import SigmaClass from "./sigma";
class Sigma extends SigmaClass {
static Camera = Camera;
static MouseCaptor = MouseCaptor;
static Sigma = SigmaClass;
static rendering = {
...rendering,
createNodeBorderProgram,
createNodeImageProgram,
createNodePiechartProgram,
EdgeCurveProgram,
};
static utils = utils;
}
export default Sigma;