-
Notifications
You must be signed in to change notification settings - Fork 0
/
_classes.py
335 lines (258 loc) · 13.5 KB
/
_classes.py
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
# {'contentType': 'application/gliffy+json', 'version': '1.3', 'stage': '---', 'metadata': '---', 'embeddedResources': '---'}
class Root:
""" top level item """
contentType = False
version = False
stage = False
metadata = False
embeddedResources = False
class stage:
background = False
width = False
height = False
nodeIndex = False
autoFit = False
exportBorder = False
gridOn = False
snapToGrid = False
drawingGuidesOn = False
pageBreaksOn = False
printGridOn = False
printPaper = False
printShrinkToFit = False
printPortrait = False
maxWidth = False
maxHeight = False
themeData = False
imageCache = False
viewportType = False
fitBB = False
printModel = False
objects = False
layers = False
shapeStyles = False
lineStyles = False
textStyles = False
class metadata:
title = 'untitled'
revision = 0
exportBorder = False
loadPosition = 'default'
libraries = ['com.gliffy.libraries.venn.flat.default', 'com.gliffy.libraries.venn.radial.default',
'com.gliffy.libraries.venn.outline.default', 'com.gliffy.libraries.basic.basic_v1.default',
'com.gliffy.libraries.flowchart.flowchart_v1.default',
'com.gliffy.libraries.swimlanes.swimlanes_v1.default', 'com.gliffy.libraries.uml.uml_v2.class',
'com.gliffy.libraries.uml.uml_v2.sequence', 'com.gliffy.libraries.uml.uml_v2.activity',
'com.gliffy.libraries.erd.erd_v1.default', 'com.gliffy.libraries.ui.ui_v3.containers_content',
'com.gliffy.libraries.ui.ui_v3.forms_controls', 'com.gliffy.libraries.images']
autosaveDisabled = False
lastSerialized = 1543069191715
analyticsProduct = 'Online'
class embeddedResources:
index = False
resources = False
class objects:
""" object container """
x = 1300.0
y = 368.0
rotation = 0.0
id = 118
width = 300.0
height = 52.0
uid = 'com.gliffy.shape.basic.basic_v1.default.chevron_box_left'
order = 88
lockAspectRatio = False
lockShape = False
graphic = {'type': 'Shape', 'Shape': {'tid': 'com.gliffy.stencil.rectangle.no_fill_no_line_v1', 'strokeWidth': 2.0, 'strokeColor': '#000000', 'fillColor': '#ead1dc', 'gradient': False, 'dashStyle': None, 'dropShadow': False, 'state': 0, 'opacity': 1.0, 'shadowX': 0.0, 'shadowY': 0.0}}
linkMap = [{'url': 'https://confluence.corp.frontier.co.uk/display/ART/Setting+Up+a+New+Project#SettingUpaNewProject-Step3-SetupProjectDriveJunction', 'minX': 1383.0, 'minY': 387.0, 'maxX': 1535.0, 'maxY': 401.0}]
children = [{'x': 0.0, 'y': 0.0, 'rotation': 0.0, 'id': 119, 'width': 25.0, 'height': 52.0, 'uid': None, 'order': 90, 'lockAspectRatio': False, 'lockShape': False, 'constraints': {'constraints': [{'type': 'ConstWidthConstraint', 'ConstWidthConstraint': {'width': 25}}, {'type': 'PositionConstraint', 'PositionConstraint': {'nodeId': 118, 'px': 0.0, 'py': 0.0, 'xOffset': 0.0, 'yOffset': 0.0}}]}, 'graphic': {'type': 'Shape', 'Shape': {'tid': 'com.gliffy.stencil.partial_shapes.chevron_v1.chevron.chevron_nose_left', 'strokeWidth': 2.0, 'strokeColor': '#000000', 'fillColor': '#ead1dc', 'gradient': False, 'dashStyle': None, 'dropShadow': False, 'state': 0, 'opacity': 1.0, 'shadowX': 0.0, 'shadowY': 0.0}}, 'hidden': False, 'layerId': 'NAaDBq7u7L0g', 'flipHorizontal': False, 'flipVertical': False}, {'x': 25.0, 'y': 0.0, 'rotation': 0.0, 'id': 120, 'width': 275.0, 'height': 52.0, 'uid': None, 'order': 92, 'lockAspectRatio': False, 'lockShape': False, 'constraints': {'constraints': [{'type': 'WidthConstraint', 'WidthConstraint': {'isMin': False, 'widthInfo': [{'magnitude': 1, 'id': 118}], 'minWidth': 0.0, 'growParent': False, 'padding': -25.0}}]}, 'graphic': {'type': 'Shape', 'Shape': {'tid': 'com.gliffy.stencil.partial_shapes.chevron_v1.chevron.process_arrow_body_right', 'strokeWidth': 2.0, 'strokeColor': '#000000', 'fillColor': '#ead1dc', 'gradient': False, 'dashStyle': None, 'dropShadow': False, 'state': 0, 'opacity': 1.0, 'shadowX': 0.0, 'shadowY': 0.0}}, 'children': [{'x': 0.0, 'y': 0.0, 'rotation': 0.0, 'id': 121, 'width': 275.0, 'height': 20.0, 'uid': None, 'order': 95, 'lockAspectRatio': False, 'lockShape': False, 'constraints': {'constraints': [{'type': 'WidthConstraint', 'WidthConstraint': {'isMin': False, 'widthInfo': [{'magnitude': 1, 'id': 120}], 'minWidth': 0.0, 'growParent': False, 'padding': 0.0}}]}, 'graphic': {'type': 'Text', 'Text': {'overflow': 'none', 'paddingTop': 3, 'paddingRight': 10, 'paddingBottom': 3, 'paddingLeft': 2, 'outerPaddingTop': 6, 'outerPaddingRight': 6, 'outerPaddingBottom': 2, 'outerPaddingLeft': 6, 'type': 'fixed', 'lineTValue': None, 'linePerpValue': None, 'cardinalityType': None, 'html': '<p style="text-align:center;"><span style="font-size:12px;font-family:Arial;"><a href="https://confluence.corp.frontier.co.uk/display/ART/Setting+Up+a+New+Project#SettingUpaNewProject-Step3-SetupProjectDriveJunction" target="_blank" rel="nofollow">Setup Project Drive Junction</a><span style="text-decoration:none;"><br /></span></span></p>', 'tid': None, 'valign': 'middle', 'vposition': 'none', 'hposition': 'none'}}, 'hidden': False, 'layerId': 'NAaDBq7u7L0g', 'flipHorizontal': False, 'flipVertical': False}], 'hidden': False, 'layerId': 'NAaDBq7u7L0g', 'flipHorizontal': False, 'flipVertical': False}]
hidden = False
layerId = 'NAaDBq7u7L0g'
flipHorizontal = False
flipVertical = False
class imageCache:
pass
class constraints:
""" the connections """
constraints = list # ?
startConstraint = type
endConstraint = type
type = False
PositionConstraint = False
def __init__(self):
self.startConstraint = startConstraint()
self.endConstraint = endConstraint()
self.constraints = []
def version(self):
"""
('type', 'PositionConstraint')
('PositionConstraint', {'nodeId': 198, 'px': 0.0, 'py': 0.0, 'xOffset': 0.0, 'yOffset': 0.0})
('constraints', [])
('startConstraint', {'type': 'StartPositionConstraint', 'StartPositionConstraint': {'nodeId': 168, 'py': 0.5, 'px': 1.0}})
('endConstraint', {'type': 'EndPositionConstraint', 'EndPositionConstraint': {'nodeId': 174, 'py': 0.5, 'px': 0.0}})
"""
class constraint_container:
""" the connections """
type = False
layerId = "R6qDJNEC9I4L"
lockAspectRatio = False
lockShape = False
graphic = dict
constraints = dict
x = float
y = float
rotation = float
id = int
uid = "com.gliffy.shape.uml.uml_v2.use_case.generalization"
width = float
height = float
order = int # 46
class StartPositionConstraint:
nodeId = 105
py = 0.5
px = 1.0
class PositionConstraint:
nodeId = 152
px = 0.0
py = 0.0
xOffset = 0.0
yOffset = 0.0
class WidthConstraint:
isMin = False
widthInfo = [{'magnitude': 1, 'id': 152}]
minWidth = 0.0
growParent = False
padding = -25.0
class EndPositionConstraint:
nodeId = 251
py = 0.5
px = 0.0
class fitBB:
min = {'x': 20, 'y': 20}
max = {'x': 1602, 'y': 1137}
class lineStyles:
_global = {}
class Line:
strokeWidth = 2.0
strokeColor = '#000000'
fillColor = 'none'
dashStyle = None
hopType = None
startArrow = 0
endArrow = 0
startArrowRotation = 'auto'
endArrowRotation = 'auto'
interpolationType = 'linear'
cornerRadius = 10.0
controlPath = [[-4.009999000199969, -4.5], [12.660000666533335, -4.5], [29.33000033326664, -4.5], [46.0, -4.5]]
lockSegments = {}
ortho = True
class Shape:
tid = 'com.gliffy.stencil.partial_shapes.chevron_v1.chevron.process_arrow_body_right'
strokeWidth = 2.0
strokeColor = '#000000'
fillColor = '#ead1dc'
gradient = False
dashStyle = None
dropShadow = False
state = 0
opacity = 1.0
shadowX = 0.0
shadowY = 0.0
class Text:
overflow = 'none'
paddingTop = 3
paddingRight = 10
paddingBottom = 3
paddingLeft = 2
outerPaddingTop = 6
outerPaddingRight = 6
outerPaddingBottom = 2
outerPaddingLeft = 6
type = 'fixed'
lineTValue = None
linePerpValue = None
cardinalityType = None
html = '<p style="text-align:center;"><span style="font-size:12px;font-family:Arial;"><a href="https://confluence.corp.frontier.co.uk/display/ART/Setting+Up+a+New+Project#SettingUpaNewProject-Step3-SetupProjectDriveJunction" target="_blank" rel="nofollow">Setup Project Drive Junction</a><span style="text-decoration:none;"><br /></span></span></p>'
tid = None
valign = 'middle'
vposition = 'none'
hposition = 'none'
class linkMap:
url = 'https://confluence.corp.frontier.co.uk/display/ART/Setting+Up+a+New+Project#SettingUpaNewProject-Step3-SetupProjectDriveJunction'
minX = 1383.0
minY = 387.0
maxX = 1535.0
maxY = 401.0
class min:
x = 20
y = 20
class _global:
bold = True
italic = True
color = '#ffffff'
class lockSegments:
"""
"""
class printModel:
pageSize = 'a4'
portrait = False
fitToOnePage = False
displayPageBreaks = False
class children:
x = 25.0
y = 0.0
rotation = 0.0
id = 120
width = 275.0
height = 52.0
uid = None
order = 92
lockAspectRatio = False
lockShape = False
constraints = {'constraints': [{'type': 'WidthConstraint', 'WidthConstraint': {'isMin': False, 'widthInfo': [{'magnitude': 1, 'id': 118}], 'minWidth': 0.0, 'growParent': False, 'padding': -25.0}}]}
graphic = {'type': 'Shape', 'Shape': {'tid': 'com.gliffy.stencil.partial_shapes.chevron_v1.chevron.process_arrow_body_right', 'strokeWidth': 2.0, 'strokeColor': '#000000', 'fillColor': '#ead1dc', 'gradient': False, 'dashStyle': None, 'dropShadow': False, 'state': 0, 'opacity': 1.0, 'shadowX': 0.0, 'shadowY': 0.0}}
children = [{'x': 0.0, 'y': 0.0, 'rotation': 0.0, 'id': 121, 'width': 275.0, 'height': 20.0, 'uid': None, 'order': 95, 'lockAspectRatio': False, 'lockShape': False, 'constraints': {'constraints': [{'type': 'WidthConstraint', 'WidthConstraint': {'isMin': False, 'widthInfo': [{'magnitude': 1, 'id': 120}], 'minWidth': 0.0, 'growParent': False, 'padding': 0.0}}]}, 'graphic': {'type': 'Text', 'Text': {'overflow': 'none', 'paddingTop': 3, 'paddingRight': 10, 'paddingBottom': 3, 'paddingLeft': 2, 'outerPaddingTop': 6, 'outerPaddingRight': 6, 'outerPaddingBottom': 2, 'outerPaddingLeft': 6, 'type': 'fixed', 'lineTValue': None, 'linePerpValue': None, 'cardinalityType': None, 'html': '<p style="text-align:center;"><span style="font-size:12px;font-family:Arial;"><a href="https://confluence.corp.frontier.co.uk/display/ART/Setting+Up+a+New+Project#SettingUpaNewProject-Step3-SetupProjectDriveJunction" target="_blank" rel="nofollow">Setup Project Drive Junction</a><span style="text-decoration:none;"><br /></span></span></p>', 'tid': None, 'valign': 'middle', 'vposition': 'none', 'hposition': 'none'}}, 'hidden': False, 'layerId': 'NAaDBq7u7L0g', 'flipHorizontal': False, 'flipVertical': False}]
hidden = False
layerId = 'NAaDBq7u7L0g'
flipHorizontal = False
flipVertical = False
class ConstWidthConstraint:
width = 25
class shapeStyles:
"""
"""
class layers:
guid = 'NAaDBq7u7L0g'
order = 0
name = 'Layer 0'
active = True
locked = False
visible = True
nodeIndex = 244
class endConstraint:
type = 'EndPositionConstraint'
EndPositionConstraint = {'nodeId': 251, 'py': 0.5, 'px': 0.0}
class widthInfo:
magnitude = 1
id = 152
class startConstraint:
type = 'StartPositionConstraint'
StartPositionConstraint = {'nodeId': 105, 'py': 0.5, 'px': 1.0}
class graphic:
type = 'Text' # Line
Text = {'overflow': 'none', 'paddingTop': 3, 'paddingRight': 10, 'paddingBottom': 3, 'paddingLeft': 2, 'outerPaddingTop': 6, 'outerPaddingRight': 6, 'outerPaddingBottom': 2, 'outerPaddingLeft': 6, 'type': 'fixed', 'lineTValue': None, 'linePerpValue': None, 'cardinalityType': None, 'html': '<p style="text-align:center;"><span style="font-size:12px;font-family:Arial;"><a href="https://confluence.corp.frontier.co.uk/display/ART/Setting+Up+a+New+Project#SettingUpaNewProject-Step3-SetupProjectDriveJunction" target="_blank" rel="nofollow">Setup Project Drive Junction</a><span style="text-decoration:none;"><br /></span></span></p>', 'tid': None, 'valign': 'middle', 'vposition': 'none', 'hposition': 'none'}
Line = False
'''
"Line": {"strokeWidth": 1.0, "strokeColor": "#000000", "fillColor": "none",
"dashStyle": None, "startArrow": 0, "endArrow": 4,
"startArrowRotation": "auto", "endArrowRotation": "auto",
"interpolationType": "linear", "cornerRadius": None,
"controlPath": [[-8.0, -179.0], [166.0, -140.0]], "lockSegments": {},
"ortho": False}}, "linkMap": [], "children": [], "hidden": False,
'''
class textStyles:
_global = {'bold': True, 'italic': True, 'color': '#ffffff'}
class max:
x = 1602
y = 1137