UNPKG

butterfly-dag

Version:

一个基于数据驱动的节点式编排组件库,让你有方便快捷定制可视化流程图表

221 lines (215 loc) 4.3 kB
.butterflie-circle-endpoint { position: absolute; z-index: 100; width: 6px; height: 6px; border: 1px solid #999; border-radius: 50%; background: #fff; } .butterflie-circle-endpoint.linkable { background: green; } .butterflie-circle-endpoint.linkable.hover { background: orange; } .butterflies-link { fill: none; stroke: #BFBFBF; stroke-width: 1px; } .butterflies-link:hover { stroke: #F66902; } .butterflies-label { position: absolute; } .butterflies-arrow { fill: #BFBFBF; stroke: #BFBFBF; stroke-width: 1px; } .butterflies-arrow:hover { fill: #F66902; stroke: #F66902; } .butterflies-link-event-handler { stroke-width: 12px; fill: none; stroke: rgba(0, 0, 0, 0); } .butterfly-wrapper .group { position: absolute; border-radius: 9px; } .butterfly-wrapper .group .title { width: 100%; height: 30px; cursor: move; font-size: 12px; color: #FFF; line-height: 30px; padding-left: 12px; border-radius: 9px 9px 0 0; background: #F66902; } .butterfly-wrapper .group .container { width: 100%; height: calc(100% - 30px); background: rgba(246, 105, 2, 0.2); border-radius: 0 0 9px 9px; } .butterfly-wrapper .group .group-icon-resize { position: absolute; right: -4px; bottom: -8px; color: #666; cursor: se-resize; } .butterfly-wrapper { position: relative; width: 100%; height: 100%; z-index: 3; } .butterfly-svg { position: relative; pointer-events: auto!important; overflow: visible!important; } .butterfly-selected-canvas { position: absolute; top: 0; left: 0; z-index: 0; pointer-events: auto; opacity: 0.5; display: none; } .butterfly-selected-canvas.wrapper-up { z-index: 999; display: block; } .butterfly-gird-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; } .butterfly-guide-canvas-wrapper { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 2; } .butterfly-guide-canvas-wrapper .butterfly-guideline-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; } .butterfly-tooltip-container { position: absolute; z-index: 101; font-size: 12px; opacity: 0; } .butterfly-tooltip-container.in { transition: all 0.3s; opacity: 0.9; } .butterfly-tooltip-container.top { padding: 5px 0; margin-top: -3px; } .butterfly-tooltip-container.right { padding: 0 5px; margin-left: 3px; } .butterfly-tooltip-container.bottom { padding: 5px 0; margin-top: 3px; } .butterfly-tooltip-container.left { padding: 0 5px; margin-left: -3px; } .butterfly-tooltip-container.top .butterfly-tooltip-arrow { bottom: 0; left: 50%; margin-left: -5px; border-width: 5px 5px 0; border-top-color: #000; } .butterfly-tooltip-container.top-left .butterfly-tooltip-arrow { right: 5px; bottom: 0; margin-bottom: -5px; border-width: 5px 5px 0; border-top-color: #000; } .butterfly-tooltip-container.top-right .butterfly-tooltip-arrow { bottom: 0; left: 5px; margin-bottom: -5px; border-width: 5px 5px 0; border-top-color: #000; } .butterfly-tooltip-container.right .butterfly-tooltip-arrow { top: 50%; left: 0; margin-top: -5px; border-width: 5px 5px 5px 0; border-right-color: #000; } .butterfly-tooltip-container.left .butterfly-tooltip-arrow { top: 50%; right: 0; margin-top: -5px; border-width: 5px 0 5px 5px; border-left-color: #000; } .butterfly-tooltip-container.bottom .butterfly-tooltip-arrow { top: 0; left: 50%; margin-left: -5px; border-width: 0 5px 5px; border-bottom-color: #000; } .butterfly-tooltip-container.bottom-left .butterfly-tooltip-arrow { top: 0; right: 5px; margin-top: -5px; border-width: 0 5px 5px; border-bottom-color: #000; } .butterfly-tooltip-container.bottom-right .butterfly-tooltip-arrow { top: 0; left: 5px; margin-top: -5px; border-width: 0 5px 5px; border-bottom-color: #000; } .butterfly-tooltip-container .butterfly-tooltip-inner { max-width: 200px; padding: 3px 8px; color: #fff; text-align: center; background-color: #000; border-radius: 4px; } .butterfly-tooltip-container .butterfly-tooltip-arrow { position: absolute; width: 0; height: 0; border-color: transparent; border-style: solid; } @import '../static/butterfly.css';