ActionCode.defaultIcons.pattern.metamodel 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  1. {
  2. "types": {
  3. "__pCodeIcon": [
  4. {
  5. "name": "typename",
  6. "type": "string",
  7. "default": "CodeIcon"
  8. },
  9. {
  10. "name": "position",
  11. "type": "list<double>",
  12. "default": [
  13. 100,
  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": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  34. },
  35. {
  36. "name": "parser",
  37. "type": "code",
  38. "default": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  39. },
  40. {
  41. "name": "$contents",
  42. "type": "map<string,*>",
  43. "default": {
  44. "nodes": {
  45. "1": {
  46. "textContent": {
  47. "type": "string",
  48. "value": "</>"
  49. },
  50. "style": {
  51. "type": "map<string,string>",
  52. "value": {
  53. "stroke": "#000000",
  54. "stroke-dasharray": "",
  55. "fill": "#ffffff",
  56. "fill-opacity": 0.95,
  57. "font-size": "100px",
  58. "stroke-width": 1,
  59. "arrow-start": "none",
  60. "arrow-end": "none"
  61. }
  62. },
  63. "mapper": {
  64. "type": "code",
  65. "value": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  66. },
  67. "parser": {
  68. "type": "code",
  69. "value": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  70. },
  71. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text",
  72. "position": {
  73. "type": "list<double>",
  74. "value": [
  75. 1,
  76. 1
  77. ]
  78. },
  79. "orientation": {
  80. "type": "double",
  81. "value": 0
  82. },
  83. "scale": {
  84. "type": "list<double>",
  85. "value": [
  86. 1,
  87. 1
  88. ]
  89. }
  90. },
  91. "__pLabelText": {
  92. "position": {
  93. "type": "list<double>",
  94. "value": [
  95. 0,
  96. 0
  97. ]
  98. },
  99. "orientation": {
  100. "type": "double",
  101. "value": 0
  102. },
  103. "scale": {
  104. "type": "list<double>",
  105. "value": [
  106. 1,
  107. 1
  108. ]
  109. },
  110. "textContent": {
  111. "type": "string",
  112. "value": "#"
  113. },
  114. "style": {
  115. "type": "map<string,string>",
  116. "value": {
  117. "stroke": "#6000ff",
  118. "fill": "#6000ff",
  119. "font-size": "15px",
  120. "opacity": "1"
  121. }
  122. },
  123. "mapper": {
  124. "type": "code",
  125. "value": "({'textContent':getAttr('__pLabel')})"
  126. },
  127. "parser": {
  128. "type": "code",
  129. "value": "({'__pLabel':getAttr('textContent')})"
  130. },
  131. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text"
  132. }
  133. },
  134. "edges": []
  135. }
  136. },
  137. {
  138. "name": "$asuri",
  139. "type": "string",
  140. "default": "-1"
  141. }
  142. ]
  143. },
  144. "constraints": [],
  145. "actions": [],
  146. "cardinalities": {
  147. "__pCodeIcon": []
  148. },
  149. "legalConnections": {},
  150. "connectorTypes": {},
  151. "types2parentTypes": {
  152. "__pCodeIcon": []
  153. }
  154. }