AnnotationMM.model 58 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421
  1. {
  2. "csm": {
  3. "nodes": {
  4. "1": {
  5. "typename": {
  6. "type": "string",
  7. "value": "ClassIcon"
  8. },
  9. "position": {
  10. "type": "list<double>",
  11. "value": [
  12. 800,
  13. 126
  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": "$*"
  94. },
  95. "style": {
  96. "type": "map<string,string>",
  97. "value": {
  98. "stroke": "#000000",
  99. "fill": "#ffffff",
  100. "fill-opacity": 0.75,
  101. "font-size": "20px",
  102. "font-style": "normal"
  103. }
  104. },
  105. "mapper": {
  106. "type": "code",
  107. "value": "var style = \n {\n \"stroke\": \"#000000\",\n \"fill\": \"#ffffff\",\n \"fill-opacity\": 0.75,\n \"font-size\": \"20px\",\n \"font-style\": (getAttr('abstract') ? 'italic' : 'normal')\n };\n\n({'textContent': getAttr('name'), 'style':style})\n\n\n\n"
  108. },
  109. "parser": {
  110. "type": "code",
  111. "value": "({'name': getAttr('textContent')})"
  112. },
  113. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  114. "position": {
  115. "type": "list<double>",
  116. "value": [
  117. 23,
  118. 2
  119. ]
  120. },
  121. "orientation": {
  122. "type": "double",
  123. "value": 0
  124. },
  125. "scale": {
  126. "type": "list<double>",
  127. "value": [
  128. 1,
  129. 1
  130. ]
  131. }
  132. },
  133. "7": {
  134. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  135. "position": {
  136. "type": "list<double>",
  137. "value": [
  138. 13.896110991026944,
  139. 3.0451514439171206
  140. ]
  141. },
  142. "orientation": {
  143. "type": "double",
  144. "value": 0
  145. },
  146. "scale": {
  147. "type": "list<double>",
  148. "value": [
  149. 1,
  150. 1
  151. ]
  152. },
  153. "link-style": {
  154. "type": "map<string,string>",
  155. "value": {
  156. "stroke": "#00ffff",
  157. "stroke-dasharray": "",
  158. "stroke-opacity": 0.1,
  159. "arrow-start": "none",
  160. "arrow-end": "classic-wide-long"
  161. }
  162. }
  163. },
  164. "17": {
  165. "segments": {
  166. "type": "string",
  167. "value": "m0,0l200,0"
  168. },
  169. "style": {
  170. "type": "map<string,string>",
  171. "value": {
  172. "stroke": "#000000",
  173. "stroke-dasharray": "",
  174. "fill": "#ffffff",
  175. "fill-opacity": 0.75,
  176. "font-size": "20px",
  177. "stroke-width": 2,
  178. "arrow-start": "none",
  179. "arrow-end": "none"
  180. }
  181. },
  182. "mapper": {
  183. "type": "code",
  184. "value": ""
  185. },
  186. "parser": {
  187. "type": "code",
  188. "value": ""
  189. },
  190. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  191. "position": {
  192. "type": "list<double>",
  193. "value": [
  194. 1,
  195. 26
  196. ]
  197. },
  198. "orientation": {
  199. "type": "double",
  200. "value": 0
  201. },
  202. "scale": {
  203. "type": "list<double>",
  204. "value": [
  205. 1,
  206. 1
  207. ]
  208. }
  209. },
  210. "18": {
  211. "textContent": {
  212. "type": "string",
  213. "value": ""
  214. },
  215. "style": {
  216. "type": "map<string,string>",
  217. "value": {
  218. "stroke": "#000000",
  219. "stroke-dasharray": "",
  220. "fill": "#ffffff",
  221. "fill-opacity": 0.75,
  222. "font-size": "13px",
  223. "stroke-width": 1,
  224. "arrow-start": "none",
  225. "arrow-end": "none"
  226. }
  227. },
  228. "mapper": {
  229. "type": "code",
  230. "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')})"
  231. },
  232. "parser": {
  233. "type": "code",
  234. "value": ""
  235. },
  236. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  237. "position": {
  238. "type": "list<double>",
  239. "value": [
  240. 3,
  241. 25
  242. ]
  243. },
  244. "orientation": {
  245. "type": "double",
  246. "value": 0
  247. },
  248. "scale": {
  249. "type": "list<double>",
  250. "value": [
  251. 1,
  252. 1
  253. ]
  254. }
  255. },
  256. "19": {
  257. "width": {
  258. "type": "boolean",
  259. "value": true
  260. },
  261. "ratio": {
  262. "type": "double",
  263. "value": 1
  264. },
  265. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Span",
  266. "position": {
  267. "type": "list<double>",
  268. "value": [
  269. 168.09129891774523,
  270. 30.625911571363645
  271. ]
  272. },
  273. "orientation": {
  274. "type": "double",
  275. "value": 0
  276. },
  277. "scale": {
  278. "type": "list<double>",
  279. "value": [
  280. 1,
  281. 1
  282. ]
  283. },
  284. "link-style": {
  285. "type": "map<string,string>",
  286. "value": {
  287. "stroke": "#0000ff",
  288. "stroke-dasharray": "",
  289. "stroke-opacity": 1,
  290. "arrow-start": "none",
  291. "arrow-end": "classic-wide-long"
  292. }
  293. }
  294. },
  295. "20": {
  296. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  297. "position": {
  298. "type": "list<double>",
  299. "value": [
  300. 6.49899850809561,
  301. 18.998998508095553
  302. ]
  303. },
  304. "orientation": {
  305. "type": "double",
  306. "value": 0
  307. },
  308. "scale": {
  309. "type": "list<double>",
  310. "value": [
  311. 1,
  312. 1
  313. ]
  314. },
  315. "link-style": {
  316. "type": "map<string,string>",
  317. "value": {
  318. "stroke": "#00ffff",
  319. "stroke-dasharray": "",
  320. "stroke-opacity": 0.1,
  321. "arrow-start": "none",
  322. "arrow-end": "classic-wide-long"
  323. }
  324. }
  325. }
  326. },
  327. "edges": [
  328. {
  329. "src": "5",
  330. "dest": "7"
  331. },
  332. {
  333. "src": "7",
  334. "dest": "6"
  335. },
  336. {
  337. "src": "17",
  338. "dest": "19"
  339. },
  340. {
  341. "src": "19",
  342. "dest": "5"
  343. },
  344. {
  345. "src": "5",
  346. "dest": "20"
  347. },
  348. {
  349. "src": "20",
  350. "dest": "18"
  351. }
  352. ]
  353. }
  354. },
  355. "$asuri": {
  356. "type": "string",
  357. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class/1.instance"
  358. },
  359. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/ClassIcon"
  360. },
  361. "2": {
  362. "typename": {
  363. "type": "string",
  364. "value": "ClassIcon"
  365. },
  366. "position": {
  367. "type": "list<double>",
  368. "value": [
  369. 800,
  370. 351
  371. ]
  372. },
  373. "orientation": {
  374. "type": "double",
  375. "value": 0
  376. },
  377. "scale": {
  378. "type": "list<double>",
  379. "value": [
  380. 1,
  381. 1
  382. ]
  383. },
  384. "mapper": {
  385. "type": "code",
  386. "value": ""
  387. },
  388. "parser": {
  389. "type": "code",
  390. "value": ""
  391. },
  392. "$contents": {
  393. "type": "map<string,*>",
  394. "value": {
  395. "nodes": {
  396. "5": {
  397. "width": {
  398. "type": "double",
  399. "value": 200
  400. },
  401. "height": {
  402. "type": "double",
  403. "value": 125
  404. },
  405. "cornerRadius": {
  406. "type": "double",
  407. "value": 5
  408. },
  409. "style": {
  410. "type": "map<string,string>",
  411. "value": {
  412. "stroke": "#000000",
  413. "stroke-dasharray": "",
  414. "fill": "#ffffff",
  415. "fill-opacity": 0.75,
  416. "stroke-width": 2
  417. }
  418. },
  419. "mapper": {
  420. "type": "code",
  421. "value": ""
  422. },
  423. "parser": {
  424. "type": "code",
  425. "value": ""
  426. },
  427. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  428. "position": {
  429. "type": "list<double>",
  430. "value": [
  431. 0,
  432. 0
  433. ]
  434. },
  435. "orientation": {
  436. "type": "double",
  437. "value": 0
  438. },
  439. "scale": {
  440. "type": "list<double>",
  441. "value": [
  442. 1,
  443. 1
  444. ]
  445. }
  446. },
  447. "6": {
  448. "textContent": {
  449. "type": "string",
  450. "value": "Annotation"
  451. },
  452. "style": {
  453. "type": "map<string,string>",
  454. "value": {
  455. "stroke": "#000000",
  456. "fill": "#ffffff",
  457. "fill-opacity": 0.75,
  458. "font-size": "20px",
  459. "font-style": "normal"
  460. }
  461. },
  462. "mapper": {
  463. "type": "code",
  464. "value": "var style = \n {\n \"stroke\": \"#000000\",\n \"fill\": \"#ffffff\",\n \"fill-opacity\": 0.75,\n \"font-size\": \"20px\",\n \"font-style\": (getAttr('abstract') ? 'italic' : 'normal')\n };\n\n({'textContent': getAttr('name'), 'style':style})\n\n\n\n"
  465. },
  466. "parser": {
  467. "type": "code",
  468. "value": "({'name': getAttr('textContent')})"
  469. },
  470. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  471. "position": {
  472. "type": "list<double>",
  473. "value": [
  474. 23,
  475. 2
  476. ]
  477. },
  478. "orientation": {
  479. "type": "double",
  480. "value": 0
  481. },
  482. "scale": {
  483. "type": "list<double>",
  484. "value": [
  485. 1,
  486. 1
  487. ]
  488. }
  489. },
  490. "7": {
  491. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  492. "position": {
  493. "type": "list<double>",
  494. "value": [
  495. 13.896110991026944,
  496. 3.0451514439171206
  497. ]
  498. },
  499. "orientation": {
  500. "type": "double",
  501. "value": 0
  502. },
  503. "scale": {
  504. "type": "list<double>",
  505. "value": [
  506. 1,
  507. 1
  508. ]
  509. },
  510. "link-style": {
  511. "type": "map<string,string>",
  512. "value": {
  513. "stroke": "#00ffff",
  514. "stroke-dasharray": "",
  515. "stroke-opacity": 0.1,
  516. "arrow-start": "none",
  517. "arrow-end": "classic-wide-long"
  518. }
  519. }
  520. },
  521. "17": {
  522. "segments": {
  523. "type": "string",
  524. "value": "m0,0l200,0"
  525. },
  526. "style": {
  527. "type": "map<string,string>",
  528. "value": {
  529. "stroke": "#000000",
  530. "stroke-dasharray": "",
  531. "fill": "#ffffff",
  532. "fill-opacity": 0.75,
  533. "font-size": "20px",
  534. "stroke-width": 2,
  535. "arrow-start": "none",
  536. "arrow-end": "none"
  537. }
  538. },
  539. "mapper": {
  540. "type": "code",
  541. "value": ""
  542. },
  543. "parser": {
  544. "type": "code",
  545. "value": ""
  546. },
  547. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  548. "position": {
  549. "type": "list<double>",
  550. "value": [
  551. 1,
  552. 26
  553. ]
  554. },
  555. "orientation": {
  556. "type": "double",
  557. "value": 0
  558. },
  559. "scale": {
  560. "type": "list<double>",
  561. "value": [
  562. 1,
  563. 1
  564. ]
  565. }
  566. },
  567. "18": {
  568. "textContent": {
  569. "type": "string",
  570. "value": "text\nposition\ntextStyle"
  571. },
  572. "style": {
  573. "type": "map<string,string>",
  574. "value": {
  575. "stroke": "#000000",
  576. "stroke-dasharray": "",
  577. "fill": "#ffffff",
  578. "fill-opacity": 0.75,
  579. "font-size": "13px",
  580. "stroke-width": 1,
  581. "arrow-start": "none",
  582. "arrow-end": "none"
  583. }
  584. },
  585. "mapper": {
  586. "type": "code",
  587. "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')})"
  588. },
  589. "parser": {
  590. "type": "code",
  591. "value": ""
  592. },
  593. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  594. "position": {
  595. "type": "list<double>",
  596. "value": [
  597. 3,
  598. 25
  599. ]
  600. },
  601. "orientation": {
  602. "type": "double",
  603. "value": 0
  604. },
  605. "scale": {
  606. "type": "list<double>",
  607. "value": [
  608. 1,
  609. 1
  610. ]
  611. }
  612. },
  613. "19": {
  614. "width": {
  615. "type": "boolean",
  616. "value": true
  617. },
  618. "ratio": {
  619. "type": "double",
  620. "value": 1
  621. },
  622. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Span",
  623. "position": {
  624. "type": "list<double>",
  625. "value": [
  626. 168.09129891774523,
  627. 30.625911571363645
  628. ]
  629. },
  630. "orientation": {
  631. "type": "double",
  632. "value": 0
  633. },
  634. "scale": {
  635. "type": "list<double>",
  636. "value": [
  637. 1,
  638. 1
  639. ]
  640. },
  641. "link-style": {
  642. "type": "map<string,string>",
  643. "value": {
  644. "stroke": "#0000ff",
  645. "stroke-dasharray": "",
  646. "stroke-opacity": 1,
  647. "arrow-start": "none",
  648. "arrow-end": "classic-wide-long"
  649. }
  650. }
  651. },
  652. "20": {
  653. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  654. "position": {
  655. "type": "list<double>",
  656. "value": [
  657. 6.49899850809561,
  658. 18.998998508095553
  659. ]
  660. },
  661. "orientation": {
  662. "type": "double",
  663. "value": 0
  664. },
  665. "scale": {
  666. "type": "list<double>",
  667. "value": [
  668. 1,
  669. 1
  670. ]
  671. },
  672. "link-style": {
  673. "type": "map<string,string>",
  674. "value": {
  675. "stroke": "#00ffff",
  676. "stroke-dasharray": "",
  677. "stroke-opacity": 0.1,
  678. "arrow-start": "none",
  679. "arrow-end": "classic-wide-long"
  680. }
  681. }
  682. }
  683. },
  684. "edges": [
  685. {
  686. "src": "5",
  687. "dest": "7"
  688. },
  689. {
  690. "src": "7",
  691. "dest": "6"
  692. },
  693. {
  694. "src": "17",
  695. "dest": "19"
  696. },
  697. {
  698. "src": "19",
  699. "dest": "5"
  700. },
  701. {
  702. "src": "5",
  703. "dest": "20"
  704. },
  705. {
  706. "src": "20",
  707. "dest": "18"
  708. }
  709. ]
  710. }
  711. },
  712. "$asuri": {
  713. "type": "string",
  714. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class/2.instance"
  715. },
  716. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/ClassIcon"
  717. },
  718. "3": {
  719. "link-style": {
  720. "type": "map<string,string>",
  721. "value": {
  722. "stroke": "#000000",
  723. "stroke-dasharray": "",
  724. "stroke-opacity": 1,
  725. "stroke-width": 2,
  726. "arrow-start": "none",
  727. "arrow-end": "classic-wide-long"
  728. }
  729. },
  730. "typename": {
  731. "type": "string",
  732. "value": "AssociationLink"
  733. },
  734. "position": {
  735. "type": "list<double>",
  736. "value": [
  737. 891.4986725677577,
  738. 306.35000015662933
  739. ]
  740. },
  741. "orientation": {
  742. "type": "double",
  743. "value": 0
  744. },
  745. "scale": {
  746. "type": "list<double>",
  747. "value": [
  748. 1,
  749. 1
  750. ]
  751. },
  752. "mapper": {
  753. "type": "code",
  754. "value": ""
  755. },
  756. "parser": {
  757. "type": "code",
  758. "value": ""
  759. },
  760. "$contents": {
  761. "type": "map<string,*>",
  762. "value": {
  763. "nodes": {
  764. "15": {
  765. "textContent": {
  766. "type": "string",
  767. "value": "annotates"
  768. },
  769. "style": {
  770. "type": "map<string,string>",
  771. "value": {
  772. "stroke": "#000000",
  773. "stroke-dasharray": "",
  774. "fill": "#ffffff",
  775. "fill-opacity": 0.75,
  776. "font-size": "20px",
  777. "stroke-width": 1,
  778. "arrow-start": "none",
  779. "arrow-end": "none"
  780. }
  781. },
  782. "mapper": {
  783. "type": "code",
  784. "value": "({'textContent':getAttr('name')})"
  785. },
  786. "parser": {
  787. "type": "code",
  788. "value": "({'name':getAttr('textContent')})"
  789. },
  790. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  791. "position": {
  792. "type": "list<double>",
  793. "value": [
  794. 1,
  795. -19
  796. ]
  797. },
  798. "orientation": {
  799. "type": "double",
  800. "value": 0
  801. },
  802. "scale": {
  803. "type": "list<double>",
  804. "value": [
  805. 1,
  806. 1
  807. ]
  808. }
  809. }
  810. },
  811. "edges": []
  812. }
  813. },
  814. "$asuri": {
  815. "type": "string",
  816. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Association/3.instance"
  817. },
  818. "$segments": {
  819. "type": "map<string,list<string>>",
  820. "value": {
  821. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/ClassIcon/2.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/AssociationLink/3.instance": "M891,352L891.4986725677577,306.35000015662933",
  822. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/AssociationLink/3.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/ClassIcon/1.instance": "M891.4993374580782,306.42513276283773L891.000002348054,250.00026533009634"
  823. }
  824. },
  825. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/AssociationLink"
  826. },
  827. "5": {
  828. "typename": {
  829. "type": "string",
  830. "value": "ClassIcon"
  831. },
  832. "position": {
  833. "type": "list<double>",
  834. "value": [
  835. 750,
  836. 551
  837. ]
  838. },
  839. "orientation": {
  840. "type": "double",
  841. "value": 0
  842. },
  843. "scale": {
  844. "type": "list<double>",
  845. "value": [
  846. 1,
  847. 1
  848. ]
  849. },
  850. "mapper": {
  851. "type": "code",
  852. "value": ""
  853. },
  854. "parser": {
  855. "type": "code",
  856. "value": ""
  857. },
  858. "$contents": {
  859. "type": "map<string,*>",
  860. "value": {
  861. "nodes": {
  862. "5": {
  863. "width": {
  864. "type": "double",
  865. "value": 200
  866. },
  867. "height": {
  868. "type": "double",
  869. "value": 125
  870. },
  871. "cornerRadius": {
  872. "type": "double",
  873. "value": 5
  874. },
  875. "style": {
  876. "type": "map<string,string>",
  877. "value": {
  878. "stroke": "#000000",
  879. "stroke-dasharray": "",
  880. "fill": "#ffffff",
  881. "fill-opacity": 0.75,
  882. "stroke-width": 2
  883. }
  884. },
  885. "mapper": {
  886. "type": "code",
  887. "value": ""
  888. },
  889. "parser": {
  890. "type": "code",
  891. "value": ""
  892. },
  893. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  894. "position": {
  895. "type": "list<double>",
  896. "value": [
  897. 0,
  898. 0
  899. ]
  900. },
  901. "orientation": {
  902. "type": "double",
  903. "value": 0
  904. },
  905. "scale": {
  906. "type": "list<double>",
  907. "value": [
  908. 1,
  909. 1
  910. ]
  911. }
  912. },
  913. "6": {
  914. "textContent": {
  915. "type": "string",
  916. "value": "TextAnnotationBox"
  917. },
  918. "style": {
  919. "type": "map<string,string>",
  920. "value": {
  921. "stroke": "#000000",
  922. "fill": "#ffffff",
  923. "fill-opacity": 0.75,
  924. "font-size": "20px",
  925. "font-style": "normal"
  926. }
  927. },
  928. "mapper": {
  929. "type": "code",
  930. "value": "var style = \n {\n \"stroke\": \"#000000\",\n \"fill\": \"#ffffff\",\n \"fill-opacity\": 0.75,\n \"font-size\": \"20px\",\n \"font-style\": (getAttr('abstract') ? 'italic' : 'normal')\n };\n\n({'textContent': getAttr('name'), 'style':style})\n\n\n\n"
  931. },
  932. "parser": {
  933. "type": "code",
  934. "value": "({'name': getAttr('textContent')})"
  935. },
  936. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  937. "position": {
  938. "type": "list<double>",
  939. "value": [
  940. 23,
  941. 2
  942. ]
  943. },
  944. "orientation": {
  945. "type": "double",
  946. "value": 0
  947. },
  948. "scale": {
  949. "type": "list<double>",
  950. "value": [
  951. 1,
  952. 1
  953. ]
  954. }
  955. },
  956. "7": {
  957. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  958. "position": {
  959. "type": "list<double>",
  960. "value": [
  961. 13.896110991026944,
  962. 3.0451514439171206
  963. ]
  964. },
  965. "orientation": {
  966. "type": "double",
  967. "value": 0
  968. },
  969. "scale": {
  970. "type": "list<double>",
  971. "value": [
  972. 1,
  973. 1
  974. ]
  975. },
  976. "link-style": {
  977. "type": "map<string,string>",
  978. "value": {
  979. "stroke": "#00ffff",
  980. "stroke-dasharray": "",
  981. "stroke-opacity": 0.1,
  982. "arrow-start": "none",
  983. "arrow-end": "classic-wide-long"
  984. }
  985. }
  986. },
  987. "17": {
  988. "segments": {
  989. "type": "string",
  990. "value": "m0,0l200,0"
  991. },
  992. "style": {
  993. "type": "map<string,string>",
  994. "value": {
  995. "stroke": "#000000",
  996. "stroke-dasharray": "",
  997. "fill": "#ffffff",
  998. "fill-opacity": 0.75,
  999. "font-size": "20px",
  1000. "stroke-width": 2,
  1001. "arrow-start": "none",
  1002. "arrow-end": "none"
  1003. }
  1004. },
  1005. "mapper": {
  1006. "type": "code",
  1007. "value": ""
  1008. },
  1009. "parser": {
  1010. "type": "code",
  1011. "value": ""
  1012. },
  1013. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  1014. "position": {
  1015. "type": "list<double>",
  1016. "value": [
  1017. 1,
  1018. 26
  1019. ]
  1020. },
  1021. "orientation": {
  1022. "type": "double",
  1023. "value": 0
  1024. },
  1025. "scale": {
  1026. "type": "list<double>",
  1027. "value": [
  1028. 1,
  1029. 1
  1030. ]
  1031. }
  1032. },
  1033. "18": {
  1034. "textContent": {
  1035. "type": "string",
  1036. "value": "width\nheight\nstyle"
  1037. },
  1038. "style": {
  1039. "type": "map<string,string>",
  1040. "value": {
  1041. "stroke": "#000000",
  1042. "stroke-dasharray": "",
  1043. "fill": "#ffffff",
  1044. "fill-opacity": 0.75,
  1045. "font-size": "13px",
  1046. "stroke-width": 1,
  1047. "arrow-start": "none",
  1048. "arrow-end": "none"
  1049. }
  1050. },
  1051. "mapper": {
  1052. "type": "code",
  1053. "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')})"
  1054. },
  1055. "parser": {
  1056. "type": "code",
  1057. "value": ""
  1058. },
  1059. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  1060. "position": {
  1061. "type": "list<double>",
  1062. "value": [
  1063. 3,
  1064. 25
  1065. ]
  1066. },
  1067. "orientation": {
  1068. "type": "double",
  1069. "value": 0
  1070. },
  1071. "scale": {
  1072. "type": "list<double>",
  1073. "value": [
  1074. 1,
  1075. 1
  1076. ]
  1077. }
  1078. },
  1079. "19": {
  1080. "width": {
  1081. "type": "boolean",
  1082. "value": true
  1083. },
  1084. "ratio": {
  1085. "type": "double",
  1086. "value": 1
  1087. },
  1088. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Span",
  1089. "position": {
  1090. "type": "list<double>",
  1091. "value": [
  1092. 168.09129891774523,
  1093. 30.625911571363645
  1094. ]
  1095. },
  1096. "orientation": {
  1097. "type": "double",
  1098. "value": 0
  1099. },
  1100. "scale": {
  1101. "type": "list<double>",
  1102. "value": [
  1103. 1,
  1104. 1
  1105. ]
  1106. },
  1107. "link-style": {
  1108. "type": "map<string,string>",
  1109. "value": {
  1110. "stroke": "#0000ff",
  1111. "stroke-dasharray": "",
  1112. "stroke-opacity": 1,
  1113. "arrow-start": "none",
  1114. "arrow-end": "classic-wide-long"
  1115. }
  1116. }
  1117. },
  1118. "20": {
  1119. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  1120. "position": {
  1121. "type": "list<double>",
  1122. "value": [
  1123. 6.49899850809561,
  1124. 18.998998508095553
  1125. ]
  1126. },
  1127. "orientation": {
  1128. "type": "double",
  1129. "value": 0
  1130. },
  1131. "scale": {
  1132. "type": "list<double>",
  1133. "value": [
  1134. 1,
  1135. 1
  1136. ]
  1137. },
  1138. "link-style": {
  1139. "type": "map<string,string>",
  1140. "value": {
  1141. "stroke": "#00ffff",
  1142. "stroke-dasharray": "",
  1143. "stroke-opacity": 0.1,
  1144. "arrow-start": "none",
  1145. "arrow-end": "classic-wide-long"
  1146. }
  1147. }
  1148. }
  1149. },
  1150. "edges": [
  1151. {
  1152. "src": "5",
  1153. "dest": "7"
  1154. },
  1155. {
  1156. "src": "7",
  1157. "dest": "6"
  1158. },
  1159. {
  1160. "src": "17",
  1161. "dest": "19"
  1162. },
  1163. {
  1164. "src": "19",
  1165. "dest": "5"
  1166. },
  1167. {
  1168. "src": "5",
  1169. "dest": "20"
  1170. },
  1171. {
  1172. "src": "20",
  1173. "dest": "18"
  1174. }
  1175. ]
  1176. }
  1177. },
  1178. "$asuri": {
  1179. "type": "string",
  1180. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class/5.instance"
  1181. },
  1182. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/ClassIcon"
  1183. },
  1184. "6": {
  1185. "typename": {
  1186. "type": "string",
  1187. "value": "ClassIcon"
  1188. },
  1189. "position": {
  1190. "type": "list<double>",
  1191. "value": [
  1192. 976,
  1193. 551
  1194. ]
  1195. },
  1196. "orientation": {
  1197. "type": "double",
  1198. "value": 0
  1199. },
  1200. "scale": {
  1201. "type": "list<double>",
  1202. "value": [
  1203. 1,
  1204. 1
  1205. ]
  1206. },
  1207. "mapper": {
  1208. "type": "code",
  1209. "value": ""
  1210. },
  1211. "parser": {
  1212. "type": "code",
  1213. "value": ""
  1214. },
  1215. "$contents": {
  1216. "type": "map<string,*>",
  1217. "value": {
  1218. "nodes": {
  1219. "5": {
  1220. "width": {
  1221. "type": "double",
  1222. "value": 200
  1223. },
  1224. "height": {
  1225. "type": "double",
  1226. "value": 125
  1227. },
  1228. "cornerRadius": {
  1229. "type": "double",
  1230. "value": 5
  1231. },
  1232. "style": {
  1233. "type": "map<string,string>",
  1234. "value": {
  1235. "stroke": "#000000",
  1236. "stroke-dasharray": "",
  1237. "fill": "#ffffff",
  1238. "fill-opacity": 0.75,
  1239. "stroke-width": 2
  1240. }
  1241. },
  1242. "mapper": {
  1243. "type": "code",
  1244. "value": ""
  1245. },
  1246. "parser": {
  1247. "type": "code",
  1248. "value": ""
  1249. },
  1250. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  1251. "position": {
  1252. "type": "list<double>",
  1253. "value": [
  1254. 0,
  1255. 0
  1256. ]
  1257. },
  1258. "orientation": {
  1259. "type": "double",
  1260. "value": 0
  1261. },
  1262. "scale": {
  1263. "type": "list<double>",
  1264. "value": [
  1265. 1,
  1266. 1
  1267. ]
  1268. }
  1269. },
  1270. "6": {
  1271. "textContent": {
  1272. "type": "string",
  1273. "value": "TextAnnotationRound"
  1274. },
  1275. "style": {
  1276. "type": "map<string,string>",
  1277. "value": {
  1278. "stroke": "#000000",
  1279. "fill": "#ffffff",
  1280. "fill-opacity": 0.75,
  1281. "font-size": "20px",
  1282. "font-style": "normal"
  1283. }
  1284. },
  1285. "mapper": {
  1286. "type": "code",
  1287. "value": "var style = \n {\n \"stroke\": \"#000000\",\n \"fill\": \"#ffffff\",\n \"fill-opacity\": 0.75,\n \"font-size\": \"20px\",\n \"font-style\": (getAttr('abstract') ? 'italic' : 'normal')\n };\n\n({'textContent': getAttr('name'), 'style':style})\n\n\n\n"
  1288. },
  1289. "parser": {
  1290. "type": "code",
  1291. "value": "({'name': getAttr('textContent')})"
  1292. },
  1293. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  1294. "position": {
  1295. "type": "list<double>",
  1296. "value": [
  1297. 23,
  1298. 2
  1299. ]
  1300. },
  1301. "orientation": {
  1302. "type": "double",
  1303. "value": 0
  1304. },
  1305. "scale": {
  1306. "type": "list<double>",
  1307. "value": [
  1308. 1,
  1309. 1
  1310. ]
  1311. }
  1312. },
  1313. "7": {
  1314. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  1315. "position": {
  1316. "type": "list<double>",
  1317. "value": [
  1318. 13.896110991026944,
  1319. 3.0451514439171206
  1320. ]
  1321. },
  1322. "orientation": {
  1323. "type": "double",
  1324. "value": 0
  1325. },
  1326. "scale": {
  1327. "type": "list<double>",
  1328. "value": [
  1329. 1,
  1330. 1
  1331. ]
  1332. },
  1333. "link-style": {
  1334. "type": "map<string,string>",
  1335. "value": {
  1336. "stroke": "#00ffff",
  1337. "stroke-dasharray": "",
  1338. "stroke-opacity": 0.1,
  1339. "arrow-start": "none",
  1340. "arrow-end": "classic-wide-long"
  1341. }
  1342. }
  1343. },
  1344. "17": {
  1345. "segments": {
  1346. "type": "string",
  1347. "value": "m0,0l200,0"
  1348. },
  1349. "style": {
  1350. "type": "map<string,string>",
  1351. "value": {
  1352. "stroke": "#000000",
  1353. "stroke-dasharray": "",
  1354. "fill": "#ffffff",
  1355. "fill-opacity": 0.75,
  1356. "font-size": "20px",
  1357. "stroke-width": 2,
  1358. "arrow-start": "none",
  1359. "arrow-end": "none"
  1360. }
  1361. },
  1362. "mapper": {
  1363. "type": "code",
  1364. "value": ""
  1365. },
  1366. "parser": {
  1367. "type": "code",
  1368. "value": ""
  1369. },
  1370. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  1371. "position": {
  1372. "type": "list<double>",
  1373. "value": [
  1374. 1,
  1375. 26
  1376. ]
  1377. },
  1378. "orientation": {
  1379. "type": "double",
  1380. "value": 0
  1381. },
  1382. "scale": {
  1383. "type": "list<double>",
  1384. "value": [
  1385. 1,
  1386. 1
  1387. ]
  1388. }
  1389. },
  1390. "18": {
  1391. "textContent": {
  1392. "type": "string",
  1393. "value": "r\nstyle"
  1394. },
  1395. "style": {
  1396. "type": "map<string,string>",
  1397. "value": {
  1398. "stroke": "#000000",
  1399. "stroke-dasharray": "",
  1400. "fill": "#ffffff",
  1401. "fill-opacity": 0.75,
  1402. "font-size": "13px",
  1403. "stroke-width": 1,
  1404. "arrow-start": "none",
  1405. "arrow-end": "none"
  1406. }
  1407. },
  1408. "mapper": {
  1409. "type": "code",
  1410. "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')})"
  1411. },
  1412. "parser": {
  1413. "type": "code",
  1414. "value": ""
  1415. },
  1416. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  1417. "position": {
  1418. "type": "list<double>",
  1419. "value": [
  1420. 3,
  1421. 25
  1422. ]
  1423. },
  1424. "orientation": {
  1425. "type": "double",
  1426. "value": 0
  1427. },
  1428. "scale": {
  1429. "type": "list<double>",
  1430. "value": [
  1431. 1,
  1432. 1
  1433. ]
  1434. }
  1435. },
  1436. "19": {
  1437. "width": {
  1438. "type": "boolean",
  1439. "value": true
  1440. },
  1441. "ratio": {
  1442. "type": "double",
  1443. "value": 1
  1444. },
  1445. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Span",
  1446. "position": {
  1447. "type": "list<double>",
  1448. "value": [
  1449. 168.09129891774523,
  1450. 30.625911571363645
  1451. ]
  1452. },
  1453. "orientation": {
  1454. "type": "double",
  1455. "value": 0
  1456. },
  1457. "scale": {
  1458. "type": "list<double>",
  1459. "value": [
  1460. 1,
  1461. 1
  1462. ]
  1463. },
  1464. "link-style": {
  1465. "type": "map<string,string>",
  1466. "value": {
  1467. "stroke": "#0000ff",
  1468. "stroke-dasharray": "",
  1469. "stroke-opacity": 1,
  1470. "arrow-start": "none",
  1471. "arrow-end": "classic-wide-long"
  1472. }
  1473. }
  1474. },
  1475. "20": {
  1476. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  1477. "position": {
  1478. "type": "list<double>",
  1479. "value": [
  1480. 6.49899850809561,
  1481. 18.998998508095553
  1482. ]
  1483. },
  1484. "orientation": {
  1485. "type": "double",
  1486. "value": 0
  1487. },
  1488. "scale": {
  1489. "type": "list<double>",
  1490. "value": [
  1491. 1,
  1492. 1
  1493. ]
  1494. },
  1495. "link-style": {
  1496. "type": "map<string,string>",
  1497. "value": {
  1498. "stroke": "#00ffff",
  1499. "stroke-dasharray": "",
  1500. "stroke-opacity": 0.1,
  1501. "arrow-start": "none",
  1502. "arrow-end": "classic-wide-long"
  1503. }
  1504. }
  1505. }
  1506. },
  1507. "edges": [
  1508. {
  1509. "src": "5",
  1510. "dest": "7"
  1511. },
  1512. {
  1513. "src": "7",
  1514. "dest": "6"
  1515. },
  1516. {
  1517. "src": "17",
  1518. "dest": "19"
  1519. },
  1520. {
  1521. "src": "19",
  1522. "dest": "5"
  1523. },
  1524. {
  1525. "src": "5",
  1526. "dest": "20"
  1527. },
  1528. {
  1529. "src": "20",
  1530. "dest": "18"
  1531. }
  1532. ]
  1533. }
  1534. },
  1535. "$asuri": {
  1536. "type": "string",
  1537. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class/6.instance"
  1538. },
  1539. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/ClassIcon"
  1540. },
  1541. "7": {
  1542. "typename": {
  1543. "type": "string",
  1544. "value": "ClassIcon"
  1545. },
  1546. "position": {
  1547. "type": "list<double>",
  1548. "value": [
  1549. 1200,
  1550. 550
  1551. ]
  1552. },
  1553. "orientation": {
  1554. "type": "double",
  1555. "value": 0
  1556. },
  1557. "scale": {
  1558. "type": "list<double>",
  1559. "value": [
  1560. 1,
  1561. 1
  1562. ]
  1563. },
  1564. "mapper": {
  1565. "type": "code",
  1566. "value": ""
  1567. },
  1568. "parser": {
  1569. "type": "code",
  1570. "value": ""
  1571. },
  1572. "$contents": {
  1573. "type": "map<string,*>",
  1574. "value": {
  1575. "nodes": {
  1576. "5": {
  1577. "width": {
  1578. "type": "double",
  1579. "value": 200
  1580. },
  1581. "height": {
  1582. "type": "double",
  1583. "value": 125
  1584. },
  1585. "cornerRadius": {
  1586. "type": "double",
  1587. "value": 5
  1588. },
  1589. "style": {
  1590. "type": "map<string,string>",
  1591. "value": {
  1592. "stroke": "#000000",
  1593. "stroke-dasharray": "",
  1594. "fill": "#ffffff",
  1595. "fill-opacity": 0.75,
  1596. "stroke-width": 2
  1597. }
  1598. },
  1599. "mapper": {
  1600. "type": "code",
  1601. "value": ""
  1602. },
  1603. "parser": {
  1604. "type": "code",
  1605. "value": ""
  1606. },
  1607. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  1608. "position": {
  1609. "type": "list<double>",
  1610. "value": [
  1611. 0,
  1612. 0
  1613. ]
  1614. },
  1615. "orientation": {
  1616. "type": "double",
  1617. "value": 0
  1618. },
  1619. "scale": {
  1620. "type": "list<double>",
  1621. "value": [
  1622. 1,
  1623. 1
  1624. ]
  1625. }
  1626. },
  1627. "6": {
  1628. "textContent": {
  1629. "type": "string",
  1630. "value": "TextAnnotationRoundedBox"
  1631. },
  1632. "style": {
  1633. "type": "map<string,string>",
  1634. "value": {
  1635. "stroke": "#000000",
  1636. "fill": "#ffffff",
  1637. "fill-opacity": 0.75,
  1638. "font-size": "20px",
  1639. "font-style": "normal"
  1640. }
  1641. },
  1642. "mapper": {
  1643. "type": "code",
  1644. "value": "var style = \n {\n \"stroke\": \"#000000\",\n \"fill\": \"#ffffff\",\n \"fill-opacity\": 0.75,\n \"font-size\": \"20px\",\n \"font-style\": (getAttr('abstract') ? 'italic' : 'normal')\n };\n\n({'textContent': getAttr('name'), 'style':style})\n\n\n\n"
  1645. },
  1646. "parser": {
  1647. "type": "code",
  1648. "value": "({'name': getAttr('textContent')})"
  1649. },
  1650. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  1651. "position": {
  1652. "type": "list<double>",
  1653. "value": [
  1654. 23,
  1655. 2
  1656. ]
  1657. },
  1658. "orientation": {
  1659. "type": "double",
  1660. "value": 0
  1661. },
  1662. "scale": {
  1663. "type": "list<double>",
  1664. "value": [
  1665. 1,
  1666. 1
  1667. ]
  1668. }
  1669. },
  1670. "7": {
  1671. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  1672. "position": {
  1673. "type": "list<double>",
  1674. "value": [
  1675. 13.896110991026944,
  1676. 3.0451514439171206
  1677. ]
  1678. },
  1679. "orientation": {
  1680. "type": "double",
  1681. "value": 0
  1682. },
  1683. "scale": {
  1684. "type": "list<double>",
  1685. "value": [
  1686. 1,
  1687. 1
  1688. ]
  1689. },
  1690. "link-style": {
  1691. "type": "map<string,string>",
  1692. "value": {
  1693. "stroke": "#00ffff",
  1694. "stroke-dasharray": "",
  1695. "stroke-opacity": 0.1,
  1696. "arrow-start": "none",
  1697. "arrow-end": "classic-wide-long"
  1698. }
  1699. }
  1700. },
  1701. "17": {
  1702. "segments": {
  1703. "type": "string",
  1704. "value": "m0,0l200,0"
  1705. },
  1706. "style": {
  1707. "type": "map<string,string>",
  1708. "value": {
  1709. "stroke": "#000000",
  1710. "stroke-dasharray": "",
  1711. "fill": "#ffffff",
  1712. "fill-opacity": 0.75,
  1713. "font-size": "20px",
  1714. "stroke-width": 2,
  1715. "arrow-start": "none",
  1716. "arrow-end": "none"
  1717. }
  1718. },
  1719. "mapper": {
  1720. "type": "code",
  1721. "value": ""
  1722. },
  1723. "parser": {
  1724. "type": "code",
  1725. "value": ""
  1726. },
  1727. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Path",
  1728. "position": {
  1729. "type": "list<double>",
  1730. "value": [
  1731. 1,
  1732. 26
  1733. ]
  1734. },
  1735. "orientation": {
  1736. "type": "double",
  1737. "value": 0
  1738. },
  1739. "scale": {
  1740. "type": "list<double>",
  1741. "value": [
  1742. 1,
  1743. 1
  1744. ]
  1745. }
  1746. },
  1747. "18": {
  1748. "textContent": {
  1749. "type": "string",
  1750. "value": "width\nheight\nstyle"
  1751. },
  1752. "style": {
  1753. "type": "map<string,string>",
  1754. "value": {
  1755. "stroke": "#000000",
  1756. "stroke-dasharray": "",
  1757. "fill": "#ffffff",
  1758. "fill-opacity": 0.75,
  1759. "font-size": "13px",
  1760. "stroke-width": 1,
  1761. "arrow-start": "none",
  1762. "arrow-end": "none"
  1763. }
  1764. },
  1765. "mapper": {
  1766. "type": "code",
  1767. "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')})"
  1768. },
  1769. "parser": {
  1770. "type": "code",
  1771. "value": ""
  1772. },
  1773. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  1774. "position": {
  1775. "type": "list<double>",
  1776. "value": [
  1777. 3,
  1778. 25
  1779. ]
  1780. },
  1781. "orientation": {
  1782. "type": "double",
  1783. "value": 0
  1784. },
  1785. "scale": {
  1786. "type": "list<double>",
  1787. "value": [
  1788. 1,
  1789. 1
  1790. ]
  1791. }
  1792. },
  1793. "19": {
  1794. "width": {
  1795. "type": "boolean",
  1796. "value": true
  1797. },
  1798. "ratio": {
  1799. "type": "double",
  1800. "value": 1
  1801. },
  1802. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Span",
  1803. "position": {
  1804. "type": "list<double>",
  1805. "value": [
  1806. 168.09129891774523,
  1807. 30.625911571363645
  1808. ]
  1809. },
  1810. "orientation": {
  1811. "type": "double",
  1812. "value": 0
  1813. },
  1814. "scale": {
  1815. "type": "list<double>",
  1816. "value": [
  1817. 1,
  1818. 1
  1819. ]
  1820. },
  1821. "link-style": {
  1822. "type": "map<string,string>",
  1823. "value": {
  1824. "stroke": "#0000ff",
  1825. "stroke-dasharray": "",
  1826. "stroke-opacity": 1,
  1827. "arrow-start": "none",
  1828. "arrow-end": "classic-wide-long"
  1829. }
  1830. }
  1831. },
  1832. "20": {
  1833. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  1834. "position": {
  1835. "type": "list<double>",
  1836. "value": [
  1837. 6.49899850809561,
  1838. 18.998998508095553
  1839. ]
  1840. },
  1841. "orientation": {
  1842. "type": "double",
  1843. "value": 0
  1844. },
  1845. "scale": {
  1846. "type": "list<double>",
  1847. "value": [
  1848. 1,
  1849. 1
  1850. ]
  1851. },
  1852. "link-style": {
  1853. "type": "map<string,string>",
  1854. "value": {
  1855. "stroke": "#00ffff",
  1856. "stroke-dasharray": "",
  1857. "stroke-opacity": 0.1,
  1858. "arrow-start": "none",
  1859. "arrow-end": "classic-wide-long"
  1860. }
  1861. }
  1862. }
  1863. },
  1864. "edges": [
  1865. {
  1866. "src": "5",
  1867. "dest": "7"
  1868. },
  1869. {
  1870. "src": "7",
  1871. "dest": "6"
  1872. },
  1873. {
  1874. "src": "17",
  1875. "dest": "19"
  1876. },
  1877. {
  1878. "src": "19",
  1879. "dest": "5"
  1880. },
  1881. {
  1882. "src": "5",
  1883. "dest": "20"
  1884. },
  1885. {
  1886. "src": "20",
  1887. "dest": "18"
  1888. }
  1889. ]
  1890. }
  1891. },
  1892. "$asuri": {
  1893. "type": "string",
  1894. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class/7.instance"
  1895. },
  1896. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/ClassIcon"
  1897. },
  1898. "9": {
  1899. "link-style": {
  1900. "type": "map<string,string>",
  1901. "value": {
  1902. "stroke": "#000000",
  1903. "stroke-dasharray": "- ",
  1904. "stroke-opacity": 1,
  1905. "stroke-width": 2,
  1906. "arrow-start": "none",
  1907. "arrow-end": "classic-wide-long"
  1908. }
  1909. },
  1910. "typename": {
  1911. "type": "string",
  1912. "value": "InheritanceLink"
  1913. },
  1914. "position": {
  1915. "type": "list<double>",
  1916. "value": [
  1917. 881.5185392946355,
  1918. 513.3500002524934
  1919. ]
  1920. },
  1921. "orientation": {
  1922. "type": "double",
  1923. "value": 0
  1924. },
  1925. "scale": {
  1926. "type": "list<double>",
  1927. "value": [
  1928. 1,
  1929. 1
  1930. ]
  1931. },
  1932. "mapper": {
  1933. "type": "code",
  1934. "value": ""
  1935. },
  1936. "parser": {
  1937. "type": "code",
  1938. "value": ""
  1939. },
  1940. "$contents": {
  1941. "type": "map<string,*>",
  1942. "value": {
  1943. "nodes": {},
  1944. "edges": []
  1945. }
  1946. },
  1947. "$asuri": {
  1948. "type": "string",
  1949. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Inheritance/9.instance"
  1950. },
  1951. "$segments": {
  1952. "type": "map<string,list<string>>",
  1953. "value": {
  1954. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/ClassIcon/5.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/InheritanceLink/9.instance": "M876,547L881.5185392946355,513.3500002524934",
  1955. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/InheritanceLink/9.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/ClassIcon/2.instance": "M881.5092488283435,513.4251685706752L888,476"
  1956. }
  1957. },
  1958. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/InheritanceLink"
  1959. },
  1960. "10": {
  1961. "link-style": {
  1962. "type": "map<string,string>",
  1963. "value": {
  1964. "stroke": "#000000",
  1965. "stroke-dasharray": "- ",
  1966. "stroke-opacity": 1,
  1967. "stroke-width": 2,
  1968. "arrow-start": "none",
  1969. "arrow-end": "classic-wide-long"
  1970. }
  1971. },
  1972. "typename": {
  1973. "type": "string",
  1974. "value": "InheritanceLink"
  1975. },
  1976. "position": {
  1977. "type": "list<double>",
  1978. "value": [
  1979. 1007,
  1980. 512
  1981. ]
  1982. },
  1983. "orientation": {
  1984. "type": "double",
  1985. "value": 0
  1986. },
  1987. "scale": {
  1988. "type": "list<double>",
  1989. "value": [
  1990. 1,
  1991. 1
  1992. ]
  1993. },
  1994. "mapper": {
  1995. "type": "code",
  1996. "value": ""
  1997. },
  1998. "parser": {
  1999. "type": "code",
  2000. "value": ""
  2001. },
  2002. "$contents": {
  2003. "type": "map<string,*>",
  2004. "value": {
  2005. "nodes": {},
  2006. "edges": []
  2007. }
  2008. },
  2009. "$asuri": {
  2010. "type": "string",
  2011. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Inheritance/10.instance"
  2012. },
  2013. "$segments": {
  2014. "type": "map<string,list<string>>",
  2015. "value": {
  2016. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/ClassIcon/6.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/InheritanceLink/10.instance": "M1067,549L1007,512",
  2017. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/InheritanceLink/10.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/ClassIcon/2.instance": "M1006.8707749325295,511.92311926365676L944,474"
  2018. }
  2019. },
  2020. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/InheritanceLink"
  2021. },
  2022. "11": {
  2023. "link-style": {
  2024. "type": "map<string,string>",
  2025. "value": {
  2026. "stroke": "#000000",
  2027. "stroke-dasharray": "- ",
  2028. "stroke-opacity": 1,
  2029. "stroke-width": 2,
  2030. "arrow-start": "none",
  2031. "arrow-end": "classic-wide-long"
  2032. }
  2033. },
  2034. "typename": {
  2035. "type": "string",
  2036. "value": "InheritanceLink"
  2037. },
  2038. "position": {
  2039. "type": "list<double>",
  2040. "value": [
  2041. 1139,
  2042. 515.5
  2043. ]
  2044. },
  2045. "orientation": {
  2046. "type": "double",
  2047. "value": 0
  2048. },
  2049. "scale": {
  2050. "type": "list<double>",
  2051. "value": [
  2052. 1,
  2053. 1
  2054. ]
  2055. },
  2056. "mapper": {
  2057. "type": "code",
  2058. "value": ""
  2059. },
  2060. "parser": {
  2061. "type": "code",
  2062. "value": ""
  2063. },
  2064. "$contents": {
  2065. "type": "map<string,*>",
  2066. "value": {
  2067. "nodes": {},
  2068. "edges": []
  2069. }
  2070. },
  2071. "$asuri": {
  2072. "type": "string",
  2073. "value": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Inheritance/11.instance"
  2074. },
  2075. "$segments": {
  2076. "type": "map<string,list<string>>",
  2077. "value": {
  2078. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/ClassIcon/7.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/InheritanceLink/11.instance": "M1260,550L1139,515.5",
  2079. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/InheritanceLink/11.instance--/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/ClassIcon/2.instance": "M1138.927806014096,515.4804570420323L994,476"
  2080. }
  2081. },
  2082. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons/InheritanceLink"
  2083. }
  2084. },
  2085. "edges": [],
  2086. "metamodels": [
  2087. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram.defaultIcons"
  2088. ]
  2089. },
  2090. "asm": {
  2091. "nodes": {
  2092. "1": {
  2093. "name": {
  2094. "type": "string",
  2095. "value": "$*"
  2096. },
  2097. "attributes": {
  2098. "type": "list<$ATTRIBUTE>",
  2099. "value": []
  2100. },
  2101. "constraints": {
  2102. "type": "list<$EVENT_HANDLER>",
  2103. "value": []
  2104. },
  2105. "actions": {
  2106. "type": "list<$EVENT_HANDLER>",
  2107. "value": []
  2108. },
  2109. "cardinalities": {
  2110. "type": "list<$CARDINALITY>",
  2111. "value": []
  2112. },
  2113. "abstract": {
  2114. "type": "boolean",
  2115. "value": false
  2116. },
  2117. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class"
  2118. },
  2119. "2": {
  2120. "name": {
  2121. "type": "string",
  2122. "value": "Annotation"
  2123. },
  2124. "attributes": {
  2125. "type": "list<$ATTRIBUTE>",
  2126. "value": [
  2127. {
  2128. "name": "text",
  2129. "type": "code",
  2130. "default": "Your Annotation Text"
  2131. },
  2132. {
  2133. "name": "position",
  2134. "type": "list<int>",
  2135. "default": "[0,0]"
  2136. },
  2137. {
  2138. "name": "textStyle",
  2139. "type": "map<string,string>",
  2140. "default": {
  2141. "stroke": "#000000",
  2142. "stroke-dasharray": "",
  2143. "fill": "#000000",
  2144. "fill-opacity": 0,
  2145. "font-size": "17px",
  2146. "stroke-width": 1,
  2147. "arrow-start": "none",
  2148. "arrow-end": "none",
  2149. "font-family": "Courier New"
  2150. }
  2151. }
  2152. ]
  2153. },
  2154. "constraints": {
  2155. "type": "list<$EVENT_HANDLER>",
  2156. "value": []
  2157. },
  2158. "actions": {
  2159. "type": "list<$EVENT_HANDLER>",
  2160. "value": []
  2161. },
  2162. "cardinalities": {
  2163. "type": "list<$CARDINALITY>",
  2164. "value": []
  2165. },
  2166. "abstract": {
  2167. "type": "boolean",
  2168. "value": false
  2169. },
  2170. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class"
  2171. },
  2172. "3": {
  2173. "name": {
  2174. "type": "string",
  2175. "value": "annotates"
  2176. },
  2177. "attributes": {
  2178. "type": "list<$ATTRIBUTE>",
  2179. "value": []
  2180. },
  2181. "constraints": {
  2182. "type": "list<$EVENT_HANDLER>",
  2183. "value": []
  2184. },
  2185. "actions": {
  2186. "type": "list<$EVENT_HANDLER>",
  2187. "value": []
  2188. },
  2189. "cardinalities": {
  2190. "type": "list<$CARDINALITY>",
  2191. "value": []
  2192. },
  2193. "linktype": {
  2194. "type": "ENUM(visual,containment)",
  2195. "value": "visual"
  2196. },
  2197. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Association"
  2198. },
  2199. "5": {
  2200. "name": {
  2201. "type": "string",
  2202. "value": "TextAnnotationBox"
  2203. },
  2204. "attributes": {
  2205. "type": "list<$ATTRIBUTE>",
  2206. "value": [
  2207. {
  2208. "name": "width",
  2209. "type": "double",
  2210. "default": 100
  2211. },
  2212. {
  2213. "name": "height",
  2214. "type": "double",
  2215. "default": 100
  2216. },
  2217. {
  2218. "name": "style",
  2219. "type": "map<string, string>",
  2220. "default": {
  2221. "stroke": "#04B404",
  2222. "stroke-dasharray": "",
  2223. "fill": "#F2F2F2",
  2224. "fill-opacity": 0.75,
  2225. "font-size": "20px",
  2226. "stroke-width": 2.5,
  2227. "arrow-start": "none",
  2228. "arrow-end": "none"
  2229. }
  2230. }
  2231. ]
  2232. },
  2233. "constraints": {
  2234. "type": "list<$EVENT_HANDLER>",
  2235. "value": []
  2236. },
  2237. "actions": {
  2238. "type": "list<$EVENT_HANDLER>",
  2239. "value": [
  2240. {
  2241. "name": "resizeToText",
  2242. "event": "post-edit",
  2243. "code": "/*newline*/var text = getAttr('text').replace(/\\n/g, ' '), /*newline*/ strLen = text.length, /*newline*/ fontSize = getAttr('textStyle')['font-size'], /*newline*/ strPix = parseInt(fontSize.substring(0,fontSize.indexOf('p'))), /*newline*/ strWidth = strPix * strLen; /*newline*/if (strWidth > 0) { /*newline*/ var strLenSqrt = Math.ceil(Math.sqrt(strLen)), /*newline*/ i = strLenSqrt, /*newline*/ oldIdx = 0, /*newline*/ longestLine = strLenSqrt, /*newline*/ nrOfLines = 0; /*newline*/ while (i < strLen) { /*newline*/ var idx = text.indexOf(' ', i); /*newline*/ if (idx > -1) { /*newline*/ text = text.slice(0,idx) + '\\n' + text.slice(idx).replace(/^ /g, ''); /*newline*/ if (idx - oldIdx > longestLine) { /*newline*/ longestLine = idx - oldIdx /*newline*/ } /*newline*/ i = idx + strLenSqrt; /*newline*/ oldIdx = idx; /*newline*/ nrOfLines += 1; /*newline*/ } else { /*newline*/ i = strLen; /*newline*/ } /*newline*/ } /*newline*/ setAttr('text', text); /*newline*/ var width = longestLine * (strPix - 5) + 35; /*newline*/ setAttr('width', width); /*newline*/ setAttr('height', (nrOfLines * (strPix + 5)) + 40); /*newline*/}"
  2244. },
  2245. {
  2246. "name": "",
  2247. "event": "ENUM( pre-connect , pre-create , pre-disconnect , pre-delete , pre-edit , post-connect , post-create , post-disconnect , post-delete , post-edit )",
  2248. "code": ""
  2249. }
  2250. ]
  2251. },
  2252. "cardinalities": {
  2253. "type": "list<$CARDINALITY>",
  2254. "value": []
  2255. },
  2256. "abstract": {
  2257. "type": "boolean",
  2258. "value": false
  2259. },
  2260. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class"
  2261. },
  2262. "6": {
  2263. "name": {
  2264. "type": "string",
  2265. "value": "TextAnnotationRound"
  2266. },
  2267. "attributes": {
  2268. "type": "list<$ATTRIBUTE>",
  2269. "value": [
  2270. {
  2271. "name": "r",
  2272. "type": "double",
  2273. "default": 50
  2274. },
  2275. {
  2276. "name": "style",
  2277. "type": "map<int,int>",
  2278. "default": {
  2279. "stroke": "#04B404",
  2280. "stroke-dasharray": "",
  2281. "fill": "#F2F2F2",
  2282. "fill-opacity": 0.75,
  2283. "font-size": "20px",
  2284. "stroke-width": 2.5,
  2285. "arrow-start": "none",
  2286. "arrow-end": "none"
  2287. }
  2288. }
  2289. ]
  2290. },
  2291. "constraints": {
  2292. "type": "list<$EVENT_HANDLER>",
  2293. "value": []
  2294. },
  2295. "actions": {
  2296. "type": "list<$EVENT_HANDLER>",
  2297. "value": [
  2298. {
  2299. "name": "resizeToText",
  2300. "event": "post-edit",
  2301. "code": "/*newline*/var text = getAttr('text').replace(/\\n/g, ' '), /*newline*/ strLen = text.length, /*newline*/ fontSize = getAttr('textStyle')['font-size'], /*newline*/ strPix = parseInt(fontSize.substring(0,fontSize.indexOf('p'))), /*newline*/ strWidth = strPix * strLen; /*newline*/if (strWidth > 0) { /*newline*/ var strLenSqrt = Math.ceil(Math.sqrt(strLen)), /*newline*/ i = strLenSqrt; /*newline*/ while (i < strLen) { /*newline*/ var idx = text.indexOf(' ', i); /*newline*/ if (idx > -1) { /*newline*/ text = text.slice(0,idx) + '\\n' + text.slice(idx).replace(/^ /g, ''); /*newline*/ i = idx + strLenSqrt; /*newline*/ } else { /*newline*/ i = strLen; /*newline*/ } /*newline*/ } /*newline*/ setAttr('text', text); /*newline*/ var width = strLenSqrt * (strPix - 5) + 35; /*newline*/ setAttr('r', width / 2); /*newline*/}"
  2302. }
  2303. ]
  2304. },
  2305. "cardinalities": {
  2306. "type": "list<$CARDINALITY>",
  2307. "value": []
  2308. },
  2309. "abstract": {
  2310. "type": "boolean",
  2311. "value": false
  2312. },
  2313. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class"
  2314. },
  2315. "7": {
  2316. "name": {
  2317. "type": "string",
  2318. "value": "TextAnnotationRoundedBox"
  2319. },
  2320. "attributes": {
  2321. "type": "list<$ATTRIBUTE>",
  2322. "value": [
  2323. {
  2324. "name": "width",
  2325. "type": "double",
  2326. "default": 100
  2327. },
  2328. {
  2329. "name": "height",
  2330. "type": "int",
  2331. "default": 100
  2332. },
  2333. {
  2334. "name": "style",
  2335. "type": "map<int,int>",
  2336. "default": {
  2337. "stroke": "#04B404",
  2338. "stroke-dasharray": "",
  2339. "fill": "#F2F2F2",
  2340. "fill-opacity": 0.75,
  2341. "font-size": "20px",
  2342. "stroke-width": 2.5,
  2343. "arrow-start": "none",
  2344. "arrow-end": "none"
  2345. }
  2346. }
  2347. ]
  2348. },
  2349. "constraints": {
  2350. "type": "list<$EVENT_HANDLER>",
  2351. "value": []
  2352. },
  2353. "actions": {
  2354. "type": "list<$EVENT_HANDLER>",
  2355. "value": [
  2356. {
  2357. "name": "resizeToText",
  2358. "event": "post-edit",
  2359. "code": "/*newline*/var text = getAttr('text').replace(/\\n/g, ' '), /*newline*/ strLen = text.length, /*newline*/ fontSize = getAttr('textStyle')['font-size'], /*newline*/ strPix = parseInt(fontSize.substring(0,fontSize.indexOf('p'))), /*newline*/ strWidth = strPix * strLen; /*newline*/if (strWidth > 0) { /*newline*/ var strLenSqrt = Math.ceil(Math.sqrt(strLen)), /*newline*/ i = strLenSqrt, /*newline*/ oldIdx = 0, /*newline*/ longestLine = strLenSqrt, /*newline*/ nrOfLines = 0; /*newline*/ while (i < strLen) { /*newline*/ var idx = text.indexOf(' ', i); /*newline*/ if (idx > -1) { /*newline*/ text = text.slice(0,idx) + '\\n' + text.slice(idx).replace(/^ /g, ''); /*newline*/ if (idx - oldIdx > longestLine) { /*newline*/ longestLine = idx - oldIdx /*newline*/ } /*newline*/ i = idx + strLenSqrt; /*newline*/ oldIdx = idx; /*newline*/ nrOfLines += 1; /*newline*/ } else { /*newline*/ i = strLen; /*newline*/ } /*newline*/ } /*newline*/ setAttr('text', text); /*newline*/ var width = longestLine * (strPix - 5) + 35; /*newline*/ setAttr('width', width); /*newline*/ setAttr('height', nrOfLines * (strPix + 5) + 40); /*newline*/}"
  2360. }
  2361. ]
  2362. },
  2363. "cardinalities": {
  2364. "type": "list<$CARDINALITY>",
  2365. "value": []
  2366. },
  2367. "abstract": {
  2368. "type": "boolean",
  2369. "value": false
  2370. },
  2371. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Class"
  2372. },
  2373. "9": {
  2374. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Inheritance"
  2375. },
  2376. "10": {
  2377. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Inheritance"
  2378. },
  2379. "11": {
  2380. "$type": "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram/Inheritance"
  2381. }
  2382. },
  2383. "edges": [
  2384. {
  2385. "src": "2",
  2386. "dest": "3"
  2387. },
  2388. {
  2389. "src": "3",
  2390. "dest": "1"
  2391. },
  2392. {
  2393. "src": "5",
  2394. "dest": "9"
  2395. },
  2396. {
  2397. "src": "9",
  2398. "dest": "2"
  2399. },
  2400. {
  2401. "src": "6",
  2402. "dest": "10"
  2403. },
  2404. {
  2405. "src": "10",
  2406. "dest": "2"
  2407. },
  2408. {
  2409. "src": "7",
  2410. "dest": "11"
  2411. },
  2412. {
  2413. "src": "11",
  2414. "dest": "2"
  2415. }
  2416. ],
  2417. "metamodels": [
  2418. "/Formalisms/__LanguageSyntax__/SimpleClassDiagram/SimpleClassDiagram"
  2419. ]
  2420. }
  2421. }