index.css 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. .lf-graph {
  2. position: relative;
  3. width: 100%;
  4. height: 100%;
  5. z-index: 0;
  6. background: #ffffff;
  7. user-select: none;
  8. }
  9. .lf-element-text {
  10. cursor: text;
  11. }
  12. .lf-text-disabled {
  13. pointer-events: none;
  14. }
  15. .lf-text-draggable {
  16. cursor: move;
  17. }
  18. .lf-node-anchor {
  19. cursor: crosshair;
  20. }
  21. .lf-node-anchor-hover {
  22. visibility: hidden;
  23. }
  24. .lf-anchor:hover .lf-node-anchor-hover {
  25. visibility: visible;
  26. }
  27. .lf-edge.pointer-none {
  28. pointer-events: none;
  29. }
  30. .lf-edge-append {
  31. cursor: pointer;
  32. }
  33. .lf-edge-animation {
  34. stroke-dashoffset: 100%;
  35. animation: lf_animate_dash 5s linear infinite;
  36. }
  37. @keyframes lf_animate_dash {
  38. to {
  39. stroke-dashoffset: 0;
  40. }
  41. }
  42. /* node */
  43. .lf-node-not-allow {
  44. cursor: not-allowed;
  45. }
  46. .lf-polyline-append-ns-resize {
  47. cursor: ns-resize;
  48. }
  49. .lf-polyline-append-ew-resize {
  50. cursor: ew-resize;
  51. }
  52. .lf-dragging {
  53. cursor: grabbing;
  54. }
  55. .lf-drag-able {
  56. cursor: default;
  57. }
  58. .lf-bezier-adjust-anchor {
  59. cursor: pointer;
  60. }
  61. /* background */
  62. .lf-background,
  63. .lf-grid {
  64. position: absolute;
  65. left: 0px;
  66. top: 0px;
  67. right: 0;
  68. bottom: 0;
  69. z-index: -1;
  70. }
  71. .lf-background-area {
  72. width: 100%;
  73. height: 100%;
  74. }
  75. /* html-overlay */
  76. .lf-html-overlay {
  77. position: absolute;
  78. top: 0;
  79. left: 0;
  80. right: 0;
  81. bottom: 0;
  82. z-index: 1;
  83. pointer-events: none;
  84. overflow: hidden;
  85. user-select: none;
  86. }
  87. .lf-html-overlay__transform > * {
  88. pointer-events: all;
  89. }
  90. .lf-text-editable {
  91. pointer-events: all;
  92. }
  93. .lf-text-input {
  94. text-align: center;
  95. outline: none;
  96. position: absolute;
  97. border: 1px solid #edefed;
  98. box-sizing: border-box;
  99. line-height: 1.2;
  100. border-radius: 3px;
  101. resize: none;
  102. padding: 5px;
  103. min-height: 20px;
  104. min-width: 100px;
  105. white-space: pre;
  106. background: #fff;
  107. transform: translate(-50%, -50%);
  108. }
  109. .lf-get-text-height {
  110. display: inline-block;
  111. word-break: break-all;
  112. /* 为了跟输入效果保持一致,设置透明边框占位 */
  113. border: 1px solid transparent;
  114. box-sizing: border-box;
  115. }
  116. .lf-node-text-auto-wrap {
  117. box-sizing: border-box;
  118. display: flex;
  119. justify-content: center;
  120. align-items: center;
  121. /* border: 1px solid transparent; */
  122. }
  123. .lf-node-text-auto-wrap-content {
  124. line-height: 1.2;
  125. background: transparent;
  126. text-align: center;
  127. word-break: break-all;
  128. width: 100%;
  129. }
  130. .lf-node-text-ellipsis-content {
  131. line-height: 1.2;
  132. background: transparent;
  133. text-align: center;
  134. white-space: nowrap;
  135. /* overflow: hidden;
  136. text-overflow: ellipsis; */
  137. width: 100%;
  138. }
  139. .lf-node-text-ellipsis-content>div{
  140. text-overflow: ellipsis;
  141. overflow: hidden;
  142. }
  143. /* tool-overlay */
  144. .lf-tool-overlay {
  145. position: absolute;
  146. top: 0;
  147. left: 0;
  148. right: 0;
  149. bottom: 0;
  150. z-index: 2;
  151. pointer-events: none;
  152. overflow: hidden;
  153. }
  154. .lf-tool-overlay > * {
  155. pointer-events: all;
  156. }
  157. /* modification-overlay */
  158. .modification-overlay {
  159. position: absolute;
  160. top: 0;
  161. left: 0;
  162. right: 0;
  163. bottom: 0;
  164. z-index: 1;
  165. pointer-events: none;
  166. overflow: hidden;
  167. }
  168. .modification-overlay > * {
  169. pointer-events: all;
  170. }
  171. .lf-outline,.lf-snapline {
  172. pointer-events: none;
  173. }
  174. .lf-keyboard-tips {
  175. float: right;
  176. }
  177. .lf-node-select-decorate {
  178. transform: translate(-50%, -50%);
  179. pointer-events: none;
  180. border: 1px dashed #343435;
  181. position: absolute;
  182. }
  183. .lf-multiple-select {
  184. position: absolute;
  185. border: 2px dashed rgba(24, 125, 255, 0.8);
  186. box-shadow: 0px 0px 3px 0px rgba(24, 125, 255, 0.5);
  187. cursor: move;
  188. }
  189. .lf-edge-adjust-point {
  190. cursor: move;
  191. }