data3.js 919 Bytes
/*
 * @Date: 2025-03-12 14:36:57
 * @LastEditors: hookehuyr hookehuyr@gmail.com
 * @LastEditTime: 2025-03-12 15:22:29
 * @FilePath: /logic-flow2/src/views/edge/data3.js
 * @Description: 文件描述
 */
const data = {
  nodes: [
    {
      id: 'rect_1',
      type: 'rect',
      x: 150,
      y: 100,
      text: 'rect',
    },
    {
      id: 'circle_1',
      type: 'circle',
      x: 450,
      y: 300,
      text: 'circle',
    },
    {
      id: '3',
      type: 'ellipse',
      x: 500,
      y: 100,
      text: '椭圆',
    },
    {
      id: '4',
      type: 'polygon',
      x: 100,
      y: 250,
      text: '多边形',
    },
    {
      id: '5',
      type: 'diamond',
      x: 300,
      y: 250,
      text: '菱形',
    },
  ],
  edges: [
    {
      sourceNodeId: 'rect_1',
      targetNodeId: 'circle_1',
      type: 'custom-edge',
      text: '连线文本',
    },
  ],
};

export default data;