@antv/x6
Version:
JavaScript diagramming library that uses SVG and HTML for rendering.
182 lines (181 loc) • 3.37 kB
CSS
.x6-graph {
position: relative;
outline: none;
}
.x6-graph-background,
.x6-graph-grid,
.x6-graph-svg {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
}
.x6-graph-background-stage,
.x6-graph-grid-stage,
.x6-graph-svg-stage {
user-select: none;
}
.x6-graph.x6-graph-pannable {
cursor: grab;
cursor: -moz-grab;
cursor: -webkit-grab;
}
.x6-graph.x6-graph-panning {
cursor: grabbing;
cursor: -moz-grabbing;
cursor: -webkit-grabbing;
user-select: none;
}
.x6-node {
cursor: move;
/* stylelint-disable-next-line */
}
.x6-node.x6-node-immovable {
cursor: default;
}
.x6-node * {
-webkit-user-drag: none;
}
.x6-node .scalable * {
vector-effect: non-scaling-stroke;
}
.x6-node [magnet='true'] {
cursor: crosshair;
transition: opacity 0.3s;
}
.x6-node [magnet='true']:hover {
opacity: 0.7;
}
.x6-node foreignObject {
display: block;
overflow: visible;
background-color: transparent;
}
.x6-node foreignObject > body {
position: static;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
overflow: visible;
background-color: transparent;
}
.x6-edge .source-marker,
.x6-edge .target-marker {
vector-effect: non-scaling-stroke;
}
.x6-edge .connection {
stroke-linejoin: round;
fill: none;
}
.x6-edge .connection-wrap {
cursor: move;
opacity: 0;
fill: none;
stroke: #000;
stroke-width: 15;
stroke-linecap: round;
stroke-linejoin: round;
}
.x6-edge .connection-wrap:hover {
opacity: 0.4;
stroke-opacity: 0.4;
}
.x6-edge .vertices {
cursor: move;
opacity: 0;
}
.x6-edge .vertices .vertex {
fill: #1abc9c;
}
.x6-edge .vertices .vertex :hover {
fill: #34495e;
stroke: none;
}
.x6-edge .vertices .vertex-remove {
cursor: pointer;
fill: #fff;
}
.x6-edge .vertices .vertex-remove-area {
cursor: pointer;
opacity: 0.1;
}
.x6-edge .vertices .vertex-group:hover .vertex-remove-area {
opacity: 1;
}
.x6-edge .arrowheads {
cursor: move;
opacity: 0;
}
.x6-edge .arrowheads .arrowhead {
fill: #1abc9c;
}
.x6-edge .arrowheads .arrowhead :hover {
fill: #f39c12;
stroke: none;
}
.x6-edge .tools {
cursor: pointer;
opacity: 0;
}
.x6-edge .tools .tool-options {
display: none;
}
.x6-edge .tools .tool-remove circle {
fill: #f00;
}
.x6-edge .tools .tool-remove path {
fill: #fff;
}
.x6-edge:hover .vertices,
.x6-edge:hover .arrowheads,
.x6-edge:hover .tools {
opacity: 1;
}
.x6-highlight-opacity {
opacity: 0.3;
}
.x6-widget-minimap {
position: relative;
display: table-cell;
box-sizing: border-box;
overflow: hidden;
text-align: center;
vertical-align: middle;
background-color: #fff;
user-select: none;
}
.x6-widget-minimap .x6-graph {
display: inline-block;
box-shadow: 0 0 4px 0 #eee;
cursor: pointer;
}
.x6-widget-minimap .x6-graph > svg {
pointer-events: none;
shape-rendering: optimizeSpeed;
}
.x6-widget-minimap .x6-graph .x6-node * {
/* stylelint-disable-next-line */
vector-effect: initial;
}
.x6-widget-minimap-viewport {
position: absolute;
box-sizing: content-box ;
margin: -2px 0 0 -2px;
border: 2px solid #31d0c6;
cursor: move;
}
.x6-widget-minimap-viewport-zoom {
position: absolute;
right: 0;
bottom: 0;
box-sizing: border-box;
width: 12px;
height: 12px;
margin: 0 -6px -6px 0;
background-color: #fff;
border: 2px solid #31d0c6;
border-radius: 50%;
cursor: nwse-resize;
}