forked from spatialillusions/milsymbol
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
31 lines (27 loc) · 1.01 KB
/
index.js
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
/* ***************************************************************************************
Creating the base of milsymbol
******************************************************************************************
To import all and have the same functionality as ordinary milsymbol, do the following:
(Or just import the things that you need)
*/
import {
ms, // Base for milsymbol
app6b, // APP6-B
std2525b, // 2525B
std2525c, // 2525C
app6d, // APP6-D
std2525d, // 2525D
path2d // Pollyfill for Path2D in IE or node-canvas
} from "./index.esm.js";
ms.addIcons(app6b);
ms.addIcons(std2525b);
ms.addIcons(std2525c);
ms.addIcons(app6d);
ms.addIcons(std2525d);
ms.Path2D = path2d;
/* ***************************************************************************************
This draws the symbol octagon, can be good for debugging.
*************************************************************************************** */
//import debug from "./symbolfunctions/debug.js";
//ms.addSymbolPart(debug);
export default ms;