GenericGraph.defaultIcons.pattern.metamodel 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. {
  2. "types": {
  3. "__pGenericLinkLink": [
  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. }
  13. },
  14. {
  15. "name": "arrowHead",
  16. "type": "ENUM(circle-black,circle-black-large,circle-white,circle-white-large,diamond-black,diamond-black-large,diamond-white,diamond-white-large,triangle-black,triangle-black-large,triangle-white,triangle-white-large,arrow-black,arrow-black-large,arrow-empty,arrow-empty-large,custom)",
  17. "default": "custom"
  18. },
  19. {
  20. "name": "arrowTail",
  21. "type": "ENUM(circle-black,circle-black-large,circle-white,circle-white-large,diamond-black,diamond-black-large,diamond-white,diamond-white-large,triangle-black,triangle-black-large,triangle-white,triangle-white-large,arrow-black,arrow-black-large,arrow-empty,arrow-empty-large,custom)",
  22. "default": "arrow-black"
  23. },
  24. {
  25. "name": "typename",
  26. "type": "string",
  27. "default": "GenericLinkLink"
  28. },
  29. {
  30. "name": "position",
  31. "type": "list<double>",
  32. "default": [
  33. 541,
  34. 183
  35. ]
  36. },
  37. {
  38. "name": "orientation",
  39. "type": "double",
  40. "default": 0
  41. },
  42. {
  43. "name": "scale",
  44. "type": "list<double>",
  45. "default": [
  46. 1,
  47. 1
  48. ]
  49. },
  50. {
  51. "name": "mapper",
  52. "type": "code",
  53. "default": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  54. },
  55. {
  56. "name": "parser",
  57. "type": "code",
  58. "default": "/* mapping and parsing code is disabled by default because pattern attribute values are code */"
  59. },
  60. {
  61. "name": "$contents",
  62. "type": "map<string,*>",
  63. "default": {
  64. "nodes": {
  65. "__pLabelText": {
  66. "position": {
  67. "type": "list<double>",
  68. "value": [
  69. 0,
  70. 0
  71. ]
  72. },
  73. "orientation": {
  74. "type": "double",
  75. "value": 0
  76. },
  77. "scale": {
  78. "type": "list<double>",
  79. "value": [
  80. 1,
  81. 1
  82. ]
  83. },
  84. "textContent": {
  85. "type": "string",
  86. "value": "#"
  87. },
  88. "style": {
  89. "type": "map<string,string>",
  90. "value": {
  91. "stroke": "#6000ff",
  92. "fill": "#6000ff",
  93. "font-size": "15px",
  94. "opacity": "1"
  95. }
  96. },
  97. "mapper": {
  98. "type": "code",
  99. "value": "({'textContent':getAttr('__pLabel')})"
  100. },
  101. "parser": {
  102. "type": "code",
  103. "value": "({'__pLabel':getAttr('textContent')})"
  104. },
  105. "$type": "/Formalisms/__LanguageSyntax__/ConcreteSyntax/ConcreteSyntax/Text"
  106. }
  107. },
  108. "edges": []
  109. }
  110. },
  111. {
  112. "name": "$asuri",
  113. "type": "string",
  114. "default": "-1"
  115. },
  116. {
  117. "name": "$segments",
  118. "type": "map<string,list<string>>",
  119. "default": {}
  120. }
  121. ]
  122. },
  123. "constraints": [],
  124. "actions": [],
  125. "cardinalities": {
  126. "__pGenericLinkLink": []
  127. },
  128. "legalConnections": {},
  129. "connectorTypes": {},
  130. "types2parentTypes": {
  131. "__pGenericLinkLink": []
  132. }
  133. }