/* * This file is part of the kernelstudio package. * * (c) 2014-2026 zlin * * For the full copyright and license information, please view the LICENSE file * that was distributed with this source code. */ import { Shape } from '@antv/x6'; export const createLineOptions = (): any => { return { markup: [ { tagName: 'circle', selector: 'marker', attrs: { stroke: 'none', r: 3, }, }, ...Shape.Edge.getMarkup() as any, ], attrs: { line: { stroke: '#5da0df', strokeWidth: 2, strokeDasharray: ' ', strokeDashoffset: 0, }, marker: { fill: '#5da0df', atConnectionRatio: 0, }, }, animation: [ [ { 'attrs/marker/atConnectionRatio': 1 }, { duration: 2000, iterations: Infinity, }, ], ], } }