forked from spatialillusions/milsymbol
-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.esm.js
77 lines (69 loc) · 2.5 KB
/
index.esm.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/* ***************************************************************************************
ES6 version of milsymbol
*************************************************************************************** */
export { ms } from "./src/milsymbol.js";
export { app6b, std2525b, std2525c } from "./src/lettersidc.js";
export {
space as letterspace,
air as letterair,
ground as letterground,
equipment as letterequipment,
installations as letterinstallations,
sea as lettersea,
subsurface as lettersubsurface,
sof as lettersof,
signalsIntelligence as lettersignalsIntelligence,
stabilityoperations as letterstabilityoperations,
emergencymanagementsymbols as letteremergencymanagementsymbols,
std2525bextra as letterstd2525bextra,
tacticalpoints2525 as lettertacticalpoints2525,
tacticalpointsapp6 as lettertacticalpointsapp6
} from "./src/lettersidc.js";
export { app6d, std2525d } from "./src/numbersidc.js";
export {
air as numberair,
airmissile as numberairmissile,
space as numberspace,
spacemissile as numberspacemissile,
landunit as numberlandunit,
landcivilian as numberlandcivilian,
landequipment as numberlandequipment,
landinstallation as numberlandinstallation,
sea as numbersea,
subsurface as numbersubsurface,
minewarfare as numberminewarfare,
activites as numberactivites,
signalsintelligence as numbersignalsintelligence,
cyberspace as numbercyberspace,
dismountedindividual as numberdismountedindividual,
tacticalpoints as numbertacticalpoints
} from "./src/numbersidc.js";
export { default as path2d } from "./src/ms/path2d.js";
/* ***************************************************************************************
ES6 version 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;
******************************************************************************************
Minimal version only supporting number based SIDC for land equipment:
import {
ms,
numberlandequipment
} from "./index.esm.js";
ms.addIcons(numberlandequipment);
*/