Edge.tsx 435 B

12345678910111213141516171819202122
  1. import { Edge } from "@antv/x6";
  2. import { LineType } from "@/enum";
  3. import { defaultData } from "@/config/data";
  4. export const BaseEdge: Edge.Properties = {
  5. router: "manhattan",
  6. attrs: {
  7. line: {
  8. stroke: "#323232",
  9. strokeDasharray: LineType.solid,
  10. strokeWidth: 2,
  11. sourceMarker: {
  12. name: "",
  13. },
  14. targetMarker: {
  15. name: "block",
  16. },
  17. },
  18. text: defaultData.text,
  19. },
  20. };