AttributedGenericGraph.defaultIcons.pattern.metamodel 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. {
  2. "types": {
  3. "__pAttributedGenericLinkLink": [
  4. {
  5. "name": "link-style",
  6. "type": "map<string,string>",
  7. "default": {
  8. "stroke": "#a000ff",
  9. "stroke-dasharray": ". ",
  10. "stroke-opacity": 1,
  11. "stroke-width": 1,
  12. "arrow-start": "none",
  13. "arrow-end": "classic-wide-long"
  14. }
  15. },
  16. {
  17. "name": "typename",
  18. "type": "string",
  19. "default": "AttributedGenericLinkLink"
  20. },
  21. {
  22. "name": "position",
  23. "type": "list<double>",
  24. "default": [
  25. 224,
  26. 150
  27. ]
  28. },
  29. {
  30. "name": "orientation",
  31. "type": "double",
  32. "default": 0
  33. },
  34. {
  35. "name": "scale",
  36. "type": "list<double>",
  37. "default": [
  38. 1,
  39. 1
  40. ]
  41. },
  42. {
  43. "name": "mapper",
  44. "type": "code",
  45. "default": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  46. },
  47. {
  48. "name": "parser",
  49. "type": "code",
  50. "default": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  51. },
  52. {
  53. "name": "$contents",
  54. "type": "map<string,*>",
  55. "default": {
  56. "nodes": {
  57. "__pLabelText": {
  58. "position": {
  59. "type": "list<double>",
  60. "value": [
  61. 0,
  62. 0
  63. ]
  64. },
  65. "orientation": {
  66. "type": "double",
  67. "value": 0
  68. },
  69. "scale": {
  70. "type": "list<double>",
  71. "value": [
  72. 1,
  73. 1
  74. ]
  75. },
  76. "textContent": {
  77. "type": "string",
  78. "value": "#"
  79. },
  80. "style": {
  81. "type": "map<string,string>",
  82. "value": {
  83. "stroke": "#6000ff",
  84. "fill": "#6000ff",
  85. "font-size": "15px",
  86. "opacity": "1"
  87. }
  88. },
  89. "mapper": {
  90. "type": "code",
  91. "value": "({'textContent':getAttr('__pLabel')})"
  92. },
  93. "parser": {
  94. "type": "code",
  95. "value": "({'__pLabel':getAttr('textContent')})"
  96. },
  97. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text"
  98. }
  99. },
  100. "edges": []
  101. }
  102. },
  103. {
  104. "name": "$asuri",
  105. "type": "string",
  106. "default": "-1"
  107. },
  108. {
  109. "name": "$segments",
  110. "type": "map<string,list<string>>",
  111. "default": {}
  112. }
  113. ]
  114. },
  115. "constraints": [],
  116. "actions": [],
  117. "cardinalities": {
  118. "__pAttributedGenericLinkLink": []
  119. },
  120. "legalConnections": {},
  121. "connectorTypes": {},
  122. "types2parentTypes": {
  123. "__pAttributedGenericLinkLink": []
  124. }
  125. }