ButtonsMM.model 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. {
  2. "csm": {
  3. "nodes": {
  4. "0": {
  5. "typename": {
  6. "type": "string",
  7. "value": "ClassIcon"
  8. },
  9. "position": {
  10. "type": "list<double>",
  11. "value": [
  12. "515",
  13. "236"
  14. ]
  15. },
  16. "orientation": {
  17. "type": "double",
  18. "value": 0
  19. },
  20. "scale": {
  21. "type": "list<double>",
  22. "value": [
  23. 1,
  24. 1
  25. ]
  26. },
  27. "mapper": {
  28. "type": "code",
  29. "value": ""
  30. },
  31. "parser": {
  32. "type": "code",
  33. "value": ""
  34. },
  35. "$contents": {
  36. "type": "map<string,*>",
  37. "value": {
  38. "nodes": {
  39. "5": {
  40. "width": {
  41. "type": "double",
  42. "value": 200
  43. },
  44. "height": {
  45. "type": "double",
  46. "value": 125
  47. },
  48. "cornerRadius": {
  49. "type": "double",
  50. "value": 5
  51. },
  52. "style": {
  53. "type": "map<string,string>",
  54. "value": {
  55. "stroke": "#000000",
  56. "stroke-dasharray": "",
  57. "fill": "#ffffff",
  58. "fill-opacity": 0.75,
  59. "stroke-width": 2
  60. }
  61. },
  62. "mapper": {
  63. "type": "code",
  64. "value": ""
  65. },
  66. "parser": {
  67. "type": "code",
  68. "value": ""
  69. },
  70. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  71. "position": {
  72. "type": "list<double>",
  73. "value": [
  74. 0,
  75. 0
  76. ]
  77. },
  78. "orientation": {
  79. "type": "double",
  80. "value": 0
  81. },
  82. "scale": {
  83. "type": "list<double>",
  84. "value": [
  85. 1,
  86. 1
  87. ]
  88. }
  89. },
  90. "6": {
  91. "textContent": {
  92. "type": "string",
  93. "value": "Button"
  94. },
  95. "style": {
  96. "type": "map<string,string>",
  97. "value": {
  98. "stroke": "#000000",
  99. "stroke-dasharray": "",
  100. "fill": "#ffffff",
  101. "fill-opacity": 0.75,
  102. "font-size": "20px",
  103. "stroke-width": 1,
  104. "arrow-start": "none",
  105. "arrow-end": "none"
  106. }
  107. },
  108. "mapper": {
  109. "type": "code",
  110. "value": "({'textContent': getAttr('name')})"
  111. },
  112. "parser": {
  113. "type": "code",
  114. "value": "({'name': getAttr('textContent')})"
  115. },
  116. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  117. "position": {
  118. "type": "list<double>",
  119. "value": [
  120. 23,
  121. 2
  122. ]
  123. },
  124. "orientation": {
  125. "type": "double",
  126. "value": 0
  127. },
  128. "scale": {
  129. "type": "list<double>",
  130. "value": [
  131. 1,
  132. 1
  133. ]
  134. }
  135. },
  136. "7": {
  137. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  138. "position": {
  139. "type": "list<double>",
  140. "value": [
  141. 13.896110991026944,
  142. 3.0451514439171206
  143. ]
  144. },
  145. "orientation": {
  146. "type": "double",
  147. "value": 0
  148. },
  149. "scale": {
  150. "type": "list<double>",
  151. "value": [
  152. 1,
  153. 1
  154. ]
  155. },
  156. "link-style": {
  157. "type": "map<string,string>",
  158. "value": {
  159. "stroke": "#00ffff",
  160. "stroke-dasharray": "",
  161. "stroke-opacity": 0.1,
  162. "arrow-start": "none",
  163. "arrow-end": "classic-wide-long"
  164. }
  165. }
  166. },
  167. "17": {
  168. "segments": {
  169. "type": "string",
  170. "value": "m0,0l200,0"
  171. },
  172. "style": {
  173. "type": "map<string,string>",
  174. "value": {
  175. "stroke": "#000000",
  176. "stroke-dasharray": "",
  177. "fill": "#ffffff",
  178. "fill-opacity": 0.75,
  179. "font-size": "20px",
  180. "stroke-width": 2,
  181. "arrow-start": "none",
  182. "arrow-end": "none"
  183. }
  184. },
  185. "mapper": {
  186. "type": "code",
  187. "value": ""
  188. },
  189. "parser": {
  190. "type": "code",
  191. "value": ""
  192. },
  193. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  194. "position": {
  195. "type": "list<double>",
  196. "value": [
  197. 1,
  198. 26
  199. ]
  200. },
  201. "orientation": {
  202. "type": "double",
  203. "value": 0
  204. },
  205. "scale": {
  206. "type": "list<double>",
  207. "value": [
  208. 1,
  209. 1
  210. ]
  211. }
  212. },
  213. "18": {
  214. "textContent": {
  215. "type": "string",
  216. "value": "name\ntooltip\ncode"
  217. },
  218. "style": {
  219. "type": "map<string,string>",
  220. "value": {
  221. "stroke": "#000000",
  222. "stroke-dasharray": "",
  223. "fill": "#ffffff",
  224. "fill-opacity": 0.75,
  225. "font-size": "13px",
  226. "stroke-width": 1,
  227. "arrow-start": "none",
  228. "arrow-end": "none"
  229. }
  230. },
  231. "mapper": {
  232. "type": "code",
  233. "value": "var filenames = getAttr('attributes').map(\n\t\t\t\tfunction(attr)\n\t\t\t\t{\n\t\t\t\t\treturn attr['name'];\n\t\t\t\t});\n({'textContent': filenames.join('\\n')})"
  234. },
  235. "parser": {
  236. "type": "code",
  237. "value": ""
  238. },
  239. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  240. "position": {
  241. "type": "list<double>",
  242. "value": [
  243. 3,
  244. 25
  245. ]
  246. },
  247. "orientation": {
  248. "type": "double",
  249. "value": 0
  250. },
  251. "scale": {
  252. "type": "list<double>",
  253. "value": [
  254. 1,
  255. 1
  256. ]
  257. }
  258. },
  259. "19": {
  260. "width": {
  261. "type": "boolean",
  262. "value": true
  263. },
  264. "ratio": {
  265. "type": "double",
  266. "value": 1
  267. },
  268. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Span",
  269. "position": {
  270. "type": "list<double>",
  271. "value": [
  272. 168.09129891774523,
  273. 30.625911571363645
  274. ]
  275. },
  276. "orientation": {
  277. "type": "double",
  278. "value": 0
  279. },
  280. "scale": {
  281. "type": "list<double>",
  282. "value": [
  283. 1,
  284. 1
  285. ]
  286. },
  287. "link-style": {
  288. "type": "map<string,string>",
  289. "value": {
  290. "stroke": "#0000ff",
  291. "stroke-dasharray": "",
  292. "stroke-opacity": 1,
  293. "arrow-start": "none",
  294. "arrow-end": "classic-wide-long"
  295. }
  296. }
  297. },
  298. "20": {
  299. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  300. "position": {
  301. "type": "list<double>",
  302. "value": [
  303. 6.49899850809561,
  304. 18.998998508095553
  305. ]
  306. },
  307. "orientation": {
  308. "type": "double",
  309. "value": 0
  310. },
  311. "scale": {
  312. "type": "list<double>",
  313. "value": [
  314. 1,
  315. 1
  316. ]
  317. },
  318. "link-style": {
  319. "type": "map<string,string>",
  320. "value": {
  321. "stroke": "#00ffff",
  322. "stroke-dasharray": "",
  323. "stroke-opacity": 0.1,
  324. "arrow-start": "none",
  325. "arrow-end": "classic-wide-long"
  326. }
  327. }
  328. }
  329. },
  330. "edges": [
  331. {
  332. "src": "5",
  333. "dest": "7"
  334. },
  335. {
  336. "src": "7",
  337. "dest": "6"
  338. },
  339. {
  340. "src": "17",
  341. "dest": "19"
  342. },
  343. {
  344. "src": "19",
  345. "dest": "5"
  346. },
  347. {
  348. "src": "5",
  349. "dest": "20"
  350. },
  351. {
  352. "src": "20",
  353. "dest": "18"
  354. }
  355. ]
  356. }
  357. },
  358. "$asuri": {
  359. "type": "string",
  360. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class/0.instance"
  361. },
  362. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/ClassIcon"
  363. }
  364. },
  365. "edges": [],
  366. "metamodels": [
  367. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons"
  368. ]
  369. },
  370. "asm": {
  371. "nodes": {
  372. "0": {
  373. "name": {
  374. "type": "string",
  375. "value": "Button"
  376. },
  377. "attributes": {
  378. "type": "list<$ATTRIBUTE>",
  379. "value": [
  380. {
  381. "name": "name",
  382. "type": "string",
  383. "default": ""
  384. },
  385. {
  386. "name": "tooltip",
  387. "type": "string",
  388. "default": ""
  389. },
  390. {
  391. "name": "code",
  392. "type": "code",
  393. "default": ""
  394. }
  395. ]
  396. },
  397. "constraints": {
  398. "type": "list<$EVENT_HANDLER>",
  399. "value": []
  400. },
  401. "actions": {
  402. "type": "list<$EVENT_HANDLER>",
  403. "value": []
  404. },
  405. "cardinalities": {
  406. "type": "list<$CARDINALITY>",
  407. "value": []
  408. },
  409. "abstract": {
  410. "type": "boolean",
  411. "value": false
  412. },
  413. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class"
  414. }
  415. },
  416. "edges": [],
  417. "metamodels": [
  418. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram"
  419. ]
  420. }
  421. }