ModelVerse.buttons.model 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408
  1. {
  2. "csm": {
  3. "nodes": {
  4. "0": {
  5. "typename": {
  6. "type": "string",
  7. "value": "ButtonIcon"
  8. },
  9. "position": {
  10. "type": "list<double>",
  11. "value": [
  12. 499,
  13. 271
  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. "1": {
  40. "width": {
  41. "type": "double",
  42. "value": "120"
  43. },
  44. "height": {
  45. "type": "double",
  46. "value": "50"
  47. },
  48. "cornerRadius": {
  49. "type": "double",
  50. "value": "25"
  51. },
  52. "style": {
  53. "type": "map<string,string>",
  54. "value": {
  55. "stroke": "#af0000",
  56. "stroke-dasharray": "",
  57. "fill": "#000000",
  58. "fill-opacity": 0.05,
  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. "2": {
  91. "textContent": {
  92. "type": "string",
  93. "value": "connectMV"
  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": "13px",
  103. "stroke-width": 1
  104. }
  105. },
  106. "mapper": {
  107. "type": "code",
  108. "value": "({\"textContent\":getAttr(\"name\")})"
  109. },
  110. "parser": {
  111. "type": "code",
  112. "value": "({\"name\":getAttr(\"textContent\")})"
  113. },
  114. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  115. "position": {
  116. "type": "list<double>",
  117. "value": [
  118. 10,
  119. 13
  120. ]
  121. },
  122. "orientation": {
  123. "type": "double",
  124. "value": 0
  125. },
  126. "scale": {
  127. "type": "list<double>",
  128. "value": [
  129. 1,
  130. 1
  131. ]
  132. }
  133. },
  134. "3": {
  135. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  136. "position": {
  137. "type": "list<double>",
  138. "value": [
  139. 17.74899850809561,
  140. 12.998998508095553
  141. ]
  142. },
  143. "orientation": {
  144. "type": "double",
  145. "value": 0
  146. },
  147. "scale": {
  148. "type": "list<double>",
  149. "value": [
  150. 1,
  151. 1
  152. ]
  153. },
  154. "link-style": {
  155. "type": "map<string,string>",
  156. "value": {
  157. "stroke": "#00ffff",
  158. "stroke-dasharray": "",
  159. "stroke-opacity": 0.1,
  160. "arrow-start": "none",
  161. "arrow-end": "classic-wide-long"
  162. }
  163. }
  164. }
  165. },
  166. "edges": [
  167. {
  168. "src": "1",
  169. "dest": 3
  170. },
  171. {
  172. "src": 3,
  173. "dest": "2"
  174. }
  175. ]
  176. }
  177. },
  178. "$asuri": {
  179. "type": "string",
  180. "value": "/Formalisms/__Utilities__/Buttons/Buttons/Button/0.instance"
  181. },
  182. "$type": "/Formalisms/__Utilities__/Buttons/Buttons.defaultIcons/ButtonIcon"
  183. },
  184. "1": {
  185. "typename": {
  186. "type": "string",
  187. "value": "ButtonIcon"
  188. },
  189. "position": {
  190. "type": "list<double>",
  191. "value": [
  192. 708,
  193. 315
  194. ]
  195. },
  196. "orientation": {
  197. "type": "double",
  198. "value": 0
  199. },
  200. "scale": {
  201. "type": "list<double>",
  202. "value": [
  203. 1,
  204. 1
  205. ]
  206. },
  207. "mapper": {
  208. "type": "code",
  209. "value": ""
  210. },
  211. "parser": {
  212. "type": "code",
  213. "value": ""
  214. },
  215. "$contents": {
  216. "type": "map<string,*>",
  217. "value": {
  218. "nodes": {
  219. "1": {
  220. "width": {
  221. "type": "double",
  222. "value": "120"
  223. },
  224. "height": {
  225. "type": "double",
  226. "value": "50"
  227. },
  228. "cornerRadius": {
  229. "type": "double",
  230. "value": "25"
  231. },
  232. "style": {
  233. "type": "map<string,string>",
  234. "value": {
  235. "stroke": "#af0000",
  236. "stroke-dasharray": "",
  237. "fill": "#000000",
  238. "fill-opacity": 0.05,
  239. "stroke-width": 2
  240. }
  241. },
  242. "mapper": {
  243. "type": "code",
  244. "value": ""
  245. },
  246. "parser": {
  247. "type": "code",
  248. "value": ""
  249. },
  250. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  251. "position": {
  252. "type": "list<double>",
  253. "value": [
  254. 0,
  255. 0
  256. ]
  257. },
  258. "orientation": {
  259. "type": "double",
  260. "value": 0
  261. },
  262. "scale": {
  263. "type": "list<double>",
  264. "value": [
  265. 1,
  266. 1
  267. ]
  268. }
  269. },
  270. "2": {
  271. "textContent": {
  272. "type": "string",
  273. "value": "dumpModel"
  274. },
  275. "style": {
  276. "type": "map<string,string>",
  277. "value": {
  278. "stroke": "#000000",
  279. "stroke-dasharray": "",
  280. "fill": "#ffffff",
  281. "fill-opacity": 0.75,
  282. "font-size": "13px",
  283. "stroke-width": 1
  284. }
  285. },
  286. "mapper": {
  287. "type": "code",
  288. "value": "({\"textContent\":getAttr(\"name\")})"
  289. },
  290. "parser": {
  291. "type": "code",
  292. "value": "({\"name\":getAttr(\"textContent\")})"
  293. },
  294. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  295. "position": {
  296. "type": "list<double>",
  297. "value": [
  298. 10,
  299. 13
  300. ]
  301. },
  302. "orientation": {
  303. "type": "double",
  304. "value": 0
  305. },
  306. "scale": {
  307. "type": "list<double>",
  308. "value": [
  309. 1,
  310. 1
  311. ]
  312. }
  313. },
  314. "3": {
  315. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  316. "position": {
  317. "type": "list<double>",
  318. "value": [
  319. 17.74899850809561,
  320. 12.998998508095553
  321. ]
  322. },
  323. "orientation": {
  324. "type": "double",
  325. "value": 0
  326. },
  327. "scale": {
  328. "type": "list<double>",
  329. "value": [
  330. 1,
  331. 1
  332. ]
  333. },
  334. "link-style": {
  335. "type": "map<string,string>",
  336. "value": {
  337. "stroke": "#00ffff",
  338. "stroke-dasharray": "",
  339. "stroke-opacity": 0.1,
  340. "arrow-start": "none",
  341. "arrow-end": "classic-wide-long"
  342. }
  343. }
  344. }
  345. },
  346. "edges": [
  347. {
  348. "src": "1",
  349. "dest": 3
  350. },
  351. {
  352. "src": 3,
  353. "dest": "2"
  354. }
  355. ]
  356. }
  357. },
  358. "$asuri": {
  359. "type": "string",
  360. "value": "/Formalisms/__Utilities__/Buttons/Buttons/Button/1.instance"
  361. },
  362. "$type": "/Formalisms/__Utilities__/Buttons/Buttons.defaultIcons/ButtonIcon"
  363. }
  364. },
  365. "edges": [],
  366. "metamodels": [
  367. "/Formalisms/__Utilities__/Buttons/Buttons.defaultIcons"
  368. ]
  369. },
  370. "asm": {
  371. "nodes": {
  372. "0": {
  373. "name": {
  374. "type": "string",
  375. "value": "connectMV"
  376. },
  377. "tooltip": {
  378. "type": "string",
  379. "value": "Connect to the ModelVerse"
  380. },
  381. "code": {
  382. "type": "code",
  383. "value": "new ModelVerseConnector();\nModelVerseConnector.connect();"
  384. },
  385. "$type": "/Formalisms/__Utilities__/Buttons/Buttons/Button"
  386. },
  387. "1": {
  388. "name": {
  389. "type": "string",
  390. "value": "dumpModel"
  391. },
  392. "tooltip": {
  393. "type": "string",
  394. "value": ""
  395. },
  396. "code": {
  397. "type": "code",
  398. "value": "ModelVerseConnector.dump_model()"
  399. },
  400. "$type": "/Formalisms/__Utilities__/Buttons/Buttons/Button"
  401. }
  402. },
  403. "edges": [],
  404. "metamodels": [
  405. "/Formalisms/__Utilities__/Buttons/Buttons"
  406. ]
  407. }
  408. }