StickyNote.defaultIcons.metamodel 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. {
  2. "types": {
  3. "NoteIcon": [
  4. {
  5. "name": "typename",
  6. "type": "string",
  7. "default": "NoteIcon"
  8. },
  9. {
  10. "name": "position",
  11. "type": "list<double>",
  12. "default": [
  13. 126,
  14. 101
  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": 300
  49. },
  50. "height": {
  51. "type": "double",
  52. "value": 300
  53. },
  54. "cornerRadius": {
  55. "type": "double",
  56. "value": 35
  57. },
  58. "style": {
  59. "type": "map<string,string>",
  60. "value": {
  61. "fill": "yellow",
  62. "fill-opacity": 0.75,
  63. "stroke-width": 2
  64. }
  65. },
  66. "mapper": {
  67. "type": "code",
  68. "value": "var style = {\"fill\": \"yellow\",\n \"fill-opacity\": 0.75,\n \"stroke-width\": 2};\nstyle['fill'] = getAttr('color');\n\n({'style':style})"
  69. },
  70. "parser": {
  71. "type": "code",
  72. "value": ""
  73. },
  74. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Rectangle",
  75. "position": {
  76. "type": "list<double>",
  77. "value": [
  78. 1,
  79. 0
  80. ]
  81. },
  82. "orientation": {
  83. "type": "double",
  84. "value": 0
  85. },
  86. "scale": {
  87. "type": "list<double>",
  88. "value": [
  89. 1,
  90. 1
  91. ]
  92. }
  93. },
  94. "2": {
  95. "textContent": {
  96. "type": "string",
  97. "value": "<coded>"
  98. },
  99. "style": {
  100. "type": "map<string,string>",
  101. "value": {
  102. "stroke": "#0000ff",
  103. "fill": "#ffffff",
  104. "fill-opacity": 0.75,
  105. "font-size": "18px",
  106. "stroke-width": 1
  107. }
  108. },
  109. "mapper": {
  110. "type": "code",
  111. "value": "({'textContent':getAttr('text')})"
  112. },
  113. "parser": {
  114. "type": "code",
  115. "value": "({'text':getAttr('textContent')})"
  116. },
  117. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  118. "position": {
  119. "type": "list<double>",
  120. "value": [
  121. 18,
  122. 15
  123. ]
  124. },
  125. "orientation": {
  126. "type": "double",
  127. "value": 0
  128. },
  129. "scale": {
  130. "type": "list<double>",
  131. "value": [
  132. 1,
  133. 1
  134. ]
  135. }
  136. },
  137. "3": {
  138. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Contain",
  139. "position": {
  140. "type": "list<double>",
  141. "value": [
  142. 27.384773832012115,
  143. 13.563654916150767
  144. ]
  145. },
  146. "orientation": {
  147. "type": "double",
  148. "value": 0
  149. },
  150. "scale": {
  151. "type": "list<double>",
  152. "value": [
  153. 1,
  154. 1
  155. ]
  156. },
  157. "link-style": {
  158. "type": "map<string,string>",
  159. "value": {
  160. "stroke": "#00ffff",
  161. "stroke-dasharray": "",
  162. "stroke-opacity": 0.1,
  163. "arrow-start": "none",
  164. "arrow-end": "classic-wide-long"
  165. }
  166. }
  167. }
  168. },
  169. "edges": [
  170. {
  171. "src": "1",
  172. "dest": "3"
  173. },
  174. {
  175. "src": "3",
  176. "dest": "2"
  177. }
  178. ]
  179. }
  180. },
  181. {
  182. "name": "$asuri",
  183. "type": "string",
  184. "default": "-1"
  185. }
  186. ]
  187. },
  188. "constraints": [],
  189. "actions": [],
  190. "cardinalities": {
  191. "NoteIcon": []
  192. },
  193. "legalConnections": {},
  194. "connectorTypes": {},
  195. "types2parentTypes": {
  196. "NoteIcon": []
  197. }
  198. }