Buttons.defaultIcons.metamodel 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. {
  2. "types": {
  3. "ButtonIcon": [
  4. {
  5. "name": "typename",
  6. "type": "string",
  7. "default": "ButtonIcon"
  8. },
  9. {
  10. "name": "position",
  11. "type": "list<double>",
  12. "default": [
  13. 0,
  14. 0
  15. ]
  16. },
  17. {
  18. "name": "orientation",
  19. "type": "double",
  20. "default": 0
  21. },
  22. {
  23. "name": "scale",
  24. "type": "list<double>",
  25. "default": [
  26. 1,
  27. 1
  28. ]
  29. },
  30. {
  31. "name": "mapper",
  32. "type": "code",
  33. "default": ""
  34. },
  35. {
  36. "name": "parser",
  37. "type": "code",
  38. "default": ""
  39. },
  40. {
  41. "name": "$contents",
  42. "type": "map<string,*>",
  43. "default": {
  44. "nodes": {
  45. "1": {
  46. "width": {
  47. "type": "double",
  48. "value": "120"
  49. },
  50. "height": {
  51. "type": "double",
  52. "value": "50"
  53. },
  54. "cornerRadius": {
  55. "type": "double",
  56. "value": "25"
  57. },
  58. "style": {
  59. "type": "map<string,string>",
  60. "value": {
  61. "stroke": "#af0000",
  62. "stroke-dasharray": "",
  63. "fill": "#000000",
  64. "fill-opacity": 0.05,
  65. "stroke-width": 2
  66. }
  67. },
  68. "mapper": {
  69. "type": "code",
  70. "value": ""
  71. },
  72. "parser": {
  73. "type": "code",
  74. "value": ""
  75. },
  76. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  77. "position": {
  78. "type": "list<double>",
  79. "value": [
  80. 0,
  81. 0
  82. ]
  83. },
  84. "orientation": {
  85. "type": "double",
  86. "value": 0
  87. },
  88. "scale": {
  89. "type": "list<double>",
  90. "value": [
  91. 1,
  92. 1
  93. ]
  94. }
  95. },
  96. "2": {
  97. "textContent": {
  98. "type": "string",
  99. "value": "<coded>"
  100. },
  101. "style": {
  102. "type": "map<string,string>",
  103. "value": {
  104. "stroke": "#000000",
  105. "stroke-dasharray": "",
  106. "fill": "#ffffff",
  107. "fill-opacity": 0.75,
  108. "font-size": "13px",
  109. "stroke-width": 1
  110. }
  111. },
  112. "mapper": {
  113. "type": "code",
  114. "value": "({\"textContent\":getAttr(\"name\")})"
  115. },
  116. "parser": {
  117. "type": "code",
  118. "value": "({\"name\":getAttr(\"textContent\")})"
  119. },
  120. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  121. "position": {
  122. "type": "list<double>",
  123. "value": [
  124. 10,
  125. 13
  126. ]
  127. },
  128. "orientation": {
  129. "type": "double",
  130. "value": 0
  131. },
  132. "scale": {
  133. "type": "list<double>",
  134. "value": [
  135. 1,
  136. 1
  137. ]
  138. }
  139. },
  140. "3": {
  141. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  142. "position": {
  143. "type": "list<double>",
  144. "value": [
  145. 17.74899850809561,
  146. 12.998998508095553
  147. ]
  148. },
  149. "orientation": {
  150. "type": "double",
  151. "value": 0
  152. },
  153. "scale": {
  154. "type": "list<double>",
  155. "value": [
  156. 1,
  157. 1
  158. ]
  159. },
  160. "link-style": {
  161. "type": "map<string,string>",
  162. "value": {
  163. "stroke": "#00ffff",
  164. "stroke-dasharray": "",
  165. "stroke-opacity": 0.1,
  166. "arrow-start": "none",
  167. "arrow-end": "classic-wide-long"
  168. }
  169. }
  170. }
  171. },
  172. "edges": [
  173. {
  174. "src": "1",
  175. "dest": 3
  176. },
  177. {
  178. "src": 3,
  179. "dest": "2"
  180. }
  181. ]
  182. }
  183. },
  184. {
  185. "name": "$asuri",
  186. "type": "string",
  187. "default": "-1"
  188. }
  189. ]
  190. },
  191. "constraints": [],
  192. "actions": [],
  193. "cardinalities": {
  194. "ButtonIcon": []
  195. },
  196. "legalConnections": {},
  197. "connectorTypes": {},
  198. "types2parentTypes": {
  199. "ButtonIcon": []
  200. }
  201. }