grapher.css 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. .node path { stroke: #333; fill: none; stroke-width: 1px; }
  2. .node line { stroke: #333; fill: none; stroke-width: 1px; }
  3. .node-item path { stroke-width: 0; stroke: #000; fill: #fff; }
  4. .node-item text { font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "Ubuntu", "Droid Sans", sans-serif, "PingFang SC"; font-size: 11px; text-rendering: geometricPrecision; user-select: none; }
  5. .node-item-function path { fill: #fff; }
  6. .node-item-function text { fill: #000; }
  7. .node-item-function:hover { cursor: pointer; }
  8. .node-item-function:hover path { fill: #eee; }
  9. .node-item-type path { fill: #000; }
  10. .node-item-type text { fill: #fff; }
  11. .node-item-type:hover { cursor: pointer; }
  12. .node-item-type:hover path { fill: #fff; }
  13. .node-item-type:hover text { fill: #000; }
  14. .node-item-type-constant path { fill: #eee; }
  15. .node-item-type-constant text { fill: #000; }
  16. .node-item-type-constant:hover path { fill: #fff; }
  17. .node-item-type-control path { fill: #eee; }
  18. .node-item-type-control text { fill: #000; }
  19. .node-item-type-control:hover path { fill: #fff; }
  20. .node-item-type-layer path { fill: rgb(51, 85, 136); }
  21. .node-item-type-activation path { fill: rgb(112, 41, 33); }
  22. .node-item-type-pool path { fill: rgb(51, 85, 51); }
  23. .node-item-type-normalization path { fill: rgb(51, 85, 68); }
  24. .node-item-type-dropout path { fill: rgb(69, 71, 112); }
  25. .node-item-type-shape path { fill: rgb(108, 79, 71); }
  26. .node-item-type-tensor path { fill: rgb(89, 66, 59); }
  27. .node-item-type-transform path { fill: rgb(51, 85, 68); }
  28. .node-item-type-data path { fill: rgb(85, 85, 85); }
  29. .node-item-type-quantization path { fill: rgb(80, 40, 0); }
  30. .node-item-type-attention path { fill: rgb(120, 60, 0); }
  31. .node-item-input path { fill: #fff; }
  32. .node-item-input:hover { cursor: pointer; }
  33. .node-item-input:hover path { fill: #fff; }
  34. .node-item-constant path { fill: #eee; }
  35. .node-item-constant:hover { cursor: pointer; }
  36. .node-item-constant:hover path { fill: #fff; }
  37. .node-item-undefined path { fill: #f00; }
  38. .node-item-undefined:hover { cursor: pointer; }
  39. .node-item-undefined:hover path { fill: #fff; }
  40. .node-argument-list > path { fill: #fff; stroke-width: 0; stroke: #000; }
  41. .node-argument-list:hover { cursor: pointer; }
  42. .node-argument-list:hover > path { fill: #f6f6f6; }
  43. .node-argument > text { font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "Ubuntu", "Droid Sans", sans-serif, "PingFang SC"; font-size: 9px; font-weight: normal; text-rendering: geometricPrecision; user-select: none; }
  44. .node-argument > rect { fill: transparent; }
  45. .graph-item-input path { fill: #eee; }
  46. .graph-item-input:hover { cursor: pointer; }
  47. .graph-item-input:hover path { fill: #fff; }
  48. .graph-item-output path { fill: #eee; }
  49. .graph-item-output:hover { cursor: pointer; }
  50. .graph-item-output:hover path { fill: #fff; }
  51. #arrowhead { fill: #000; }
  52. #arrowhead-hover { fill: rgba(220, 0, 0, 0.9); }
  53. #arrowhead-select { fill: rgba(220, 0, 0, 0.9); }
  54. .edge-paths { pointer-events: none; }
  55. .edge-path { stroke: #000; stroke-width: 1px; fill: none; marker-end: url("#arrowhead"); }
  56. .edge-paths-hit-test { pointer-events: stroke; stroke-width: 0.5em; fill: none; stroke: #000; stroke-opacity: 0.001; }
  57. .select > .node.node-border { stroke: rgba(220, 0, 0, 0.9); stroke-width: 2px; }
  58. .select.edge-path { stroke: rgba(220, 0, 0, 0.9); stroke-width: 1px; marker-end: url("#arrowhead-select"); }
  59. .select.node-argument > rect { fill: transparent; stroke: rgba(220, 0, 0, 0.9); }
  60. .edge-label { font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "Ubuntu", "Droid Sans", sans-serif, "PingFang SC"; font-size: 10px; }
  61. .edge-path-control-dependency { stroke-dasharray: 3, 2; }
  62. .cluster rect { stroke: #000; fill: #000; fill-opacity: 0.02; stroke-opacity: 0.06; stroke-width: 1px; }
  63. @keyframes pulse { from { stroke-dashoffset: 100px; } to { stroke-dashoffset: 0; } }
  64. @media (prefers-color-scheme: dark) {
  65. .edge-path { stroke: #888; }
  66. .node path { stroke: #1d1d1d; }
  67. .node line { stroke: #1d1d1d; }
  68. .select > .node.node-border { stroke: rgba(192, 0, 0, 0.8); }
  69. .select.edge-path { stroke: rgba(192, 0, 0, 0.8); }
  70. .select.node-argument > rect { fill: transparent; stroke: rgba(192, 0, 0, 0.8); }
  71. #arrowhead { fill: #888; }
  72. #arrowhead-hover { fill: rgba(192, 0, 0, 0.8); }
  73. #arrowhead-select { fill: rgba(192, 0, 0, 0.8); }
  74. .edge-label { fill: #b2b2b2; }
  75. .node-item-function path { fill: #404040; }
  76. .node-item-function text { fill: #dfdfdfdf; }
  77. .node-item-function:hover { cursor: pointer; }
  78. .node-item-function:hover path { fill: #666666; }
  79. .node-item-type path { fill: #303030; }
  80. .node-item-type text { fill: #dfdfdf; }
  81. .node-item-type:hover { cursor: pointer; }
  82. .node-item-type:hover path { fill: #808080; }
  83. .node-item-type:hover text { fill: #dfdfdf; }
  84. .node-item path { stroke: #fff; }
  85. .node-item text { fill: #dfdfdf; }
  86. .node-argument > text { fill: #b2b2b2; }
  87. .node-argument-list > path { fill: #2d2d2d; }
  88. .node-argument-list:hover > path { fill: #303030; }
  89. .graph-item-input path { fill: #404040; }
  90. .graph-item-input:hover { cursor: pointer; }
  91. .graph-item-input:hover path { fill: #666666; }
  92. .graph-item-output path { fill: #404040; }
  93. .graph-item-output:hover { cursor: pointer; }
  94. .graph-item-output:hover path { fill: #666666; }
  95. .node-item-input path { fill: #404040; }
  96. .node-item-input:hover path { fill: #666666; }
  97. .node-item-constant path { fill: #4b4b4b; }
  98. .node-item-constant:hover path { fill: #666666; }
  99. .node-item-type-layer path { fill: rgba(51, 85, 136, 0.7); }
  100. .node-item-type-activation path { fill: rgba(75, 27, 22, 0.7); }
  101. .node-item-type-activation path { fill: rgba(75, 27, 22, 0.7); }
  102. .node-item-type-pool path { fill: rgba(51, 85, 51, 0.7); }
  103. .node-item-type-pool path { fill: rgba(51, 85, 51, 0.7); }
  104. .node-item-type-normalization path { fill: rgba(51, 85, 68, 0.7); }
  105. .node-item-type-dropout path { fill: rgba(69, 71, 112, 0.7); }
  106. .node-item-type-shape path { fill: rgba(108, 79, 71, 0.7); }
  107. .node-item-type-tensor path { fill: rgba(89, 66, 59, 0.7); }
  108. .node-item-type-transform path { fill: rgba(51, 85, 68, 0.7); }
  109. .node-item-type-data path { fill: rgba(85, 85, 85, 0.7); }
  110. .node-item-type-quantization path { fill: rgb(80, 40, 0, 0.7); }
  111. .node-item-type-attention path { fill: rgb(100, 50, 0, 0.7); }
  112. .node-item-type-custom path { fill: rgb(64, 64, 64, 0.7); }
  113. }