// import React from 'react';
// import { MarkerType } from 'react-flow-renderer';

export const nodes = [
  {
    id: '1',
    sourcePosition: 'right',
    type: 'input',
    data: {
      label: '部件名称',
    },
    position: { x: 0, y: 0 },
  },
  {
    id: '2',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: {
      label: '地盒+折板+拉卡+公仔+盖板+皮壳+内围条+圆饼',
    },
    position: { x: 200, y: 100 },
  },
  {
    id: '3',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: {
      label: '金卡纸',
    },
    position: { x: 200, y: -100 },
    style: {
      background: '#D6D5E6',
      color: '#333',
      border: '1px solid #222138',
      width: 180,
    },
  },
  {
    id: '4',
    sourcePosition: 'right',
    targetPosition: 'left',
    position: { x: 200, y: 0 },
    data: {
      label: '垫片',
    },
  },
  {
    id: '5',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: {
      label: '地盒+折板+拉卡+公仔+盖板+皮壳+内围条',
    },
    position: { x: 400, y: 200 },
  },
  {
    id: '6',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: {
      label: '圆饼',
    },
    position: { x: 400, y: 100 },
  },
  {
    id: '7',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '圆饼面纸' },
    position: { x: 600, y: 0 },
  },
  {
    id: '8',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '圆饼灰板' },
    position: { x: 600, y: 100 },
  },
  {
    id: '9',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '地盒+折板+拉卡+公仔+盖板+皮壳' },
    position: { x: 600, y: 300 },
  },
  {
    id: '10',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '内围条' },
    position: { x: 600, y: 200 },
  },
  {
    id: '11',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '内围面纸' },
    position: { x: 800, y: 200 },
  },
  {
    id: '12',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '内围灰板' },
    position: { x: 800, y: 100 },
  },
  {
    id: '13',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '地盒+折板+拉卡+公仔+盖板' },
    position: { x: 800, y: 300 },
  },
  {
    id: '14',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '皮壳' },
    position: { x: 800, y: 400 },
  },
  {
    id: '15',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '皮壳面纸' },
    position: { x: 1000, y: 400 },
  },
  {
    id: '16',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '皮壳衬纸' },
    position: { x: 1000, y: 500 },
  },
  {
    id: '17',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '皮壳灰板' },
    position: { x: 1000, y: 600 },
  },
  {
    id: '18',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '折板+拉卡+公仔+盖板' },
    position: { x: 1000, y: 300 },
  },
  {
    id: '19',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '地盒' },
    position: { x: 1000, y: 200 },
  },
  {
    id: '20',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '地盒灰板' },
    position: { x: 1200, y: 100 },
  },
  {
    id: '21',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '地盒面纸' },
    position: { x: 1200, y: 200 },
  },
  {
    id: '22',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '折板+拉卡+公仔' },
    position: { x: 1200, y: 400 },
  },
  {
    id: '23',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '盖板' },
    position: { x: 1200, y: 300 },
  },
  {
    id: '24',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '盖板面纸' },
    position: { x: 1400, y: 300 },
  },
  {
    id: '25',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '盖板灰板' },
    position: { x: 1400, y: 200 },
  },
  {
    id: '26',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '拉卡+公仔' },
    position: { x: 1400, y: 400 },
  },
  {
    id: '27',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '折板' },
    position: { x: 1400, y: 500 },
  },
  {
    id: '28',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '折板面纸' },
    position: { x: 1600, y: 500 },
  },
  {
    id: '29',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '折板底纸' },
    position: { x: 1600, y: 600 },
  },
  {
    id: '30',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '折板衬纸' },
    position: { x: 1600, y: 700 },
  },
  {
    id: '31',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '公仔' },
    position: { x: 1600, y: 300 },
  },
  {
    id: '32',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '拉卡' },
    position: { x: 1600, y: 400 },
  },
  {
    id: '33',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '拉卡面纸' },
    position: { x: 1800, y: 400 },
  },
  {
    id: '34',
    sourcePosition: 'right',
    targetPosition: 'left',
    data: { label: '加强卡' },
    position: { x: 1800, y: 500 },
  },
];
export const edges = [
  { id: 'e1-2', source: '1', target: '2' },
  { id: 'e1-3', source: '1', target: '3' },
  { id: 'e1-3', source: '1', target: '4' },
  {
    id: 'e2-1',
    source: '2',
    target: '5',
    type: 'step',
    animated: true,
  },
  {
    id: 'e2-1',
    source: '2',
    target: '6',
    type: 'step',
    animated: true,
  },
  {
    id: 'e6-7',
    source: '6',
    target: '7',
    type: 'step',
    style: { stroke: '#f6ab6c' },
    animated: true,
  },
  {
    id: 'e6-8',
    source: '6',
    target: '8',
    type: 'step',
    style: { stroke: '#f6ab6c' },
    animated: true,
  },
  {
    id: 'e5-9',
    source: '5',
    target: '9',
    type: 'step',
    animated: true,
  },
  {
    id: 'e9-13',
    source: '9',
    target: '13',
    type: 'step',
    animated: true,
  },
  {
    id: 'e13-18',
    source: '13',
    target: '18',
    type: 'step',
    animated: true,
  },
  {
    id: 'e18-22',
    source: '18',
    target: '22',
    type: 'step',
    animated: true,
  },
  {
    id: 'e22-26',
    source: '22',
    target: '26',
    type: 'step',
    animated: true,
  },
  {
    id: 'e26-31',
    source: '26',
    target: '31',
    type: 'step',
    animated: true,
  },
  {
    id: 'e26-32',
    source: '26',
    target: '32',
    type: 'step',
    animated: true,
  },
  {
    id: 'e32-33',
    source: '32',
    target: '33',
    type: 'step',
    animated: true,
  },
  {
    id: 'e32-34',
    source: '32',
    target: '34',
    type: 'step',
    animated: true,
  },
  {
    id: 'e22-27',
    source: '22',
    target: '27',
    type: 'step',
    animated: true,
  },
  {
    id: 'e27-28',
    source: '27',
    target: '28',
    type: 'step',
    animated: true,
  },
  {
    id: 'e27-29',
    source: '27',
    target: '29',
    type: 'step',
    animated: true,
  },
  {
    id: 'e27-30',
    source: '27',
    target: '30',
    type: 'step',
    animated: true,
  },
  {
    id: 'e18-23',
    source: '18',
    target: '23',
    type: 'step',
    animated: true,
  },
  {
    id: 'e23-24',
    source: '23',
    target: '24',
    type: 'step',
    animated: true,
  },
  {
    id: 'e23-25',
    source: '23',
    target: '25',
    type: 'step',
    animated: true,
  },
  {
    id: 'e13-19',
    source: '13',
    target: '19',
    type: 'step',
    animated: true,
  },
  {
    id: 'e19-20',
    source: '19',
    target: '20',
    type: 'step',
    animated: true,
  },
  {
    id: 'e19-21',
    source: '19',
    target: '21',
    type: 'step',
    animated: true,
  },
  {
    id: 'e9-14',
    source: '9',
    target: '14',
    type: 'step',
    animated: true,
  },
  {
    id: 'e14-15',
    source: '14',
    target: '15',
    type: 'step',
    animated: true,
  },
  {
    id: 'e14-16',
    source: '14',
    target: '16',
    type: 'step',
    animated: true,
  },
  {
    id: 'e14-17',
    source: '14',
    target: '17',
    type: 'step',
    animated: true,
  },
  {
    id: 'e5-10',
    source: '5',
    target: '10',
    type: 'step',
    animated: true,
  },
  {
    id: 'e10-11',
    source: '10',
    target: '11',
    type: 'step',
    animated: true,
  },
  {
    id: 'e10-12',
    source: '10',
    target: '12',
    type: 'step',
    animated: true,
  },
];
