Kaynağa Gözat

fix: 修改初始线条

wanggaokun 2 hafta önce
ebeveyn
işleme
add9fb7767

BIN
src/assets/graph/images/grid.gif


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 25
src/assets/graph/style/general-shap.css


BIN
src/assets/images/404.png


BIN
src/assets/images/add.png


+ 0 - 43
src/types/mxgraph.d.ts

@@ -1,43 +0,0 @@
-export interface PaletteShape {
-  index: number
-  idSeed: number
-  type: string
-  id: string
-  title: string
-  class: string
-  width: number
-  height: number
-  style: Record<string, any>
-  icon?: string
-  iconColor?: string
-}
-export interface CellGeometry {
-  width: number
-  height: number
-}
-interface MxCellGeometry {
-  x: number
-  y: number
-  width: number
-  height: number
-}
-
-interface MxCell {
-  id: string
-  value?: string
-  title?: string
-  parent?: MxCell
-  geometry?: MxCellGeometry
-  vertex?: boolean
-  edge?: boolean
-  isGroup?: boolean
-  style?: string
-  [key: string]: any
-}
-interface GraphData {
-  cells: {
-    nodes: MxCell[]
-    groups: MxCell[]
-  }
-  edges: MxCell[]
-}

+ 8 - 27
src/views/graph/index.ts

@@ -91,38 +91,19 @@ export default class FlowGraph {
         anchor: 'center', // 指定被连接的节点的锚点
         createEdge() {
           // X6 的 Shape 命名空间中内置 Edge、DoubleEdge、ShadowEdge 三种边
-          return new Shape.DoubleEdge({
+          return new Shape.Edge({
             attrs: {
-              // line: {
-              //   // stroke: '#5F95FF',
-              //   // strokeWidth: 4,
-              //   // targetMarker: {
-              //   //   name: 'classic',
-              //   //   size: 8,
-              //   // },
-              //   stroke: '#1890ff',
-              //   strokeDasharray: 5,
-              //   targetMarker: null,//block classic diamond cross async path circle circlePlus ellipse
-              //   style: {
-              //     animation: 'ant-line 30s infinite linear',
-              //   },
-              // },
               line: {
-                strokeWidth: 4,
-                stroke: '#cfe7f2',
-                strokeDasharray: 0,
-                style: {
-                  animation: 'ant-line 0s infinite linear'
-                },
-                targetMarker: null // 去掉箭头
-              },
-              outline: {
-                stroke: '#456d89',
-                strokeWidth: 7
+                stroke: '#5F95FF',
+                strokeWidth: 1,
+                targetMarker: {
+                  name: 'classic',
+                  size: 8
+                }
               }
             },
             router: {
-              name: 'metro'
+              name: 'manhattan'
             }
           })
         },

Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor