-
-
Notifications
You must be signed in to change notification settings - Fork 162
/
Copy pathLibrary.js
86 lines (77 loc) · 1.93 KB
/
Library.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
78
79
80
81
82
83
84
85
86
/////////////////////////////////
// Class Models
/////////////////////////////////
class MainForm {
constructor() {
this.nameLabel = null;
this.headerLabel = null;
this.messageList = null;
this.selection = null;
this.documentRoot = null;
this.focusedArtboard = null;
this.selectedArtboard = null;
this.allArtboards = false;
this.resultsLabel = null;
this.exportLabel = null;
this.mainDialogWidth = 380;
this.selectItems = [];
this.itemsDictionary = null;
this.nestedItems = {};
this.currentArtboard = null;
this.sortedAscendingTypes = [];
this.showIcon = true;
this.iconWidth = 12;
this.iconHeight = 12;
this.closeIconPath = "icons/Close Icon.png";
this.listHeight = 287;
this.submitButton = null;
this.isMac = false;
this.rows = {};
}
// Constants
static get ALL_TYPES() { return "all"; }
static get TOTAL_GROUPS() { return "TotalGroup"; }
static get TOTAL() { return "Total"; }
static get HEADER() { return "Header"; }
static get MAC_PLATFORM() { return "darwin"; }
/**
* Static getter setter
**/
static get debug () {
if (MainForm.hasOwnProperty("_debug")===false) {
MainForm._debug = null;
}
return MainForm._debug;
}
static set debug (value) {
MainForm._debug = value;
}
}
class AlertForm {
constructor() {
this.header = null;
this.message = null;
}
}
class Items {
constructor() {
this.areaTexts = 0;
this.artboards = 0;
this.booleanGroups = 0;
this.ellipses = 0;
this.graphicsNodes = 0;
this.groups = 0;
this.lines = 0;
this.linkedGraphics = 0;
this.paths = 0;
this.pointText = 0;
this.polygons = 0;
this.rectangles = 0;
this.repeatGrids = 0;
this.symbolInstances = 0;
this.texts = 0;
this.totalGroups = 0;
this.totals = 0;
}
}
module.exports = { MainForm, AlertForm, Items };