修改部分规则模块删除无用前端 新增前端界面
This commit is contained in:
47
modeler/src/views/ai/builder/line.ts
Normal file
47
modeler/src/views/ai/builder/line.ts
Normal file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* This file is part of the kernelstudio package.
|
||||
*
|
||||
* (c) 2014-2026 zlin <admin@kernelstudio.com>
|
||||
*
|
||||
* 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,
|
||||
},
|
||||
],
|
||||
],
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user