Toolbar.buttons.model 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215
  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. 715,
  13. 144
  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": "export"
  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. },
  185. "edges": [],
  186. "metamodels": [
  187. "/Formalisms/__Utilities__/Buttons/Buttons.defaultIcons",
  188. "/Formalisms/ParallelDEVS/ParallelDEVS.defaultIcons"
  189. ]
  190. },
  191. "asm": {
  192. "nodes": {
  193. "0": {
  194. "name": {
  195. "type": "string",
  196. "value": "export"
  197. },
  198. "tooltip": {
  199. "type": "string",
  200. "value": "Export Model to PythonPDEVS Format"
  201. },
  202. "code": {
  203. "type": "code",
  204. "value": "_httpReq('POST',\n '/plugins/exporttoppdevs/exportmtoppdevs?wid='+_context.wid, \n\t {});"
  205. },
  206. "$type": "/Formalisms/__Utilities__/Buttons/Buttons/Button"
  207. }
  208. },
  209. "edges": [],
  210. "metamodels": [
  211. "/Formalisms/__Utilities__/Buttons/Buttons",
  212. "/Formalisms/ParallelDEVS/ParallelDEVS"
  213. ]
  214. }
  215. }