From 99f4651779d6e8d8024d8e60eae16f4de7fa931a Mon Sep 17 00:00:00 2001
From: king <18310653075@163.com>
Date: 星期二, 27 六月 2023 18:47:26 +0800
Subject: [PATCH] 2023-06-27

---
 src/menu/components/chart/antv-X6/index.jsx |  142 ----------------------------------------------
 1 files changed, 2 insertions(+), 140 deletions(-)

diff --git a/src/menu/components/chart/antv-X6/index.jsx b/src/menu/components/chart/antv-X6/index.jsx
index 0cfcbf6..9f923b2 100644
--- a/src/menu/components/chart/antv-X6/index.jsx
+++ b/src/menu/components/chart/antv-X6/index.jsx
@@ -1,8 +1,8 @@
 import React, {Component} from 'react'
 import PropTypes from 'prop-types'
 import { is, fromJS } from 'immutable'
-import { Popover, Tooltip } from 'antd'
-import { ToolOutlined, DeleteOutlined, FontColorsOutlined, VerticalAlignTopOutlined, VerticalAlignBottomOutlined, SaveOutlined, ZoomInOutlined, ZoomOutOutlined, OneToOneOutlined, DownloadOutlined } from '@ant-design/icons'
+import { Popover } from 'antd'
+import { ToolOutlined, DeleteOutlined, FontColorsOutlined } from '@ant-design/icons'
 import { Graph, Shape } from '@antv/x6'
 
 import MKEmitter from '@/utils/events.js'
@@ -17,70 +17,6 @@
 const ChartCompileForm = asyncIconComponent(() => import('./chartcompile'))
 const CopyComponent = asyncIconComponent(() => import('@/menu/components/share/copycomponent'))
 const NormalHeader = asyncComponent(() => import('@/menu/components/share/normalheader'))
-
-// #region 鍒濆鍖栧浘褰�
-const groups = {
-  top: {
-    position: 'top',
-    attrs: {
-      circle: {
-        r: 4,
-        magnet: true,
-        stroke: 'var(--mk-sys-color)',
-        strokeWidth: 1,
-        fill: '#fff',
-        style: {
-          visibility: 'hidden'
-        }
-      }
-    }
-  },
-  right: {
-    position: 'right',
-    attrs: {
-      circle: {
-        r: 4,
-        magnet: true,
-        stroke: 'var(--mk-sys-color)',
-        strokeWidth: 1,
-        fill: '#fff',
-        style: {
-          visibility: 'hidden'
-        }
-      }
-    }
-  },
-  bottom: {
-    position: 'bottom',
-    attrs: {
-      circle: {
-        r: 4,
-        magnet: true,
-        stroke: 'var(--mk-sys-color)',
-        strokeWidth: 1,
-        fill: '#fff',
-        style: {
-          visibility: 'hidden'
-        }
-      }
-    }
-  },
-  left: {
-    position: 'left',
-    attrs: {
-      circle: {
-        r: 4,
-        magnet: true,
-        stroke: 'var(--mk-sys-color)',
-        strokeWidth: 1,
-        fill: '#fff',
-        style: {
-          visibility: 'hidden'
-        }
-      }
-    }
-  }
-}
 
 Graph.registerNode(
   'lane',
@@ -145,15 +81,6 @@
         fontSize: 12,
         fill: '#262626'
       }
-    },
-    ports: {
-      groups,
-      items: [
-        { group: 'top' },
-        { group: 'right' },
-        { group: 'bottom' },
-        { group: 'left' }
-      ]
     }
   },
   true
@@ -175,15 +102,6 @@
         fontSize: 12,
         fill: '#262626'
       }
-    },
-    ports: {
-      groups,
-      items: [
-        { group: 'top' },
-        { group: 'right' },
-        { group: 'bottom' },
-        { group: 'left' }
-      ]
     }
   },
   true
@@ -205,15 +123,6 @@
         fontSize: 12,
         fill: '#262626'
       }
-    },
-    ports: {
-      groups,
-      items: [
-        { group: 'top' },
-        { group: 'right' },
-        { group: 'bottom' },
-        { group: 'left' }
-      ]
     }
   },
   true
@@ -235,15 +144,6 @@
         fontSize: 12,
         fill: '#262626'
       }
-    },
-    ports: {
-      groups,
-      items: [
-        { group: 'top' },
-        { group: 'right' },
-        { group: 'bottom' },
-        { group: 'left' }
-      ]
     }
   },
   true
@@ -267,15 +167,6 @@
         fontSize: 12,
         fill: '#262626'
       }
-    },
-    ports: {
-      groups,
-      items: [
-        { group: 'top' },
-        { group: 'right' },
-        { group: 'bottom' },
-        { group: 'left' }
-      ]
     }
   },
   true
@@ -423,7 +314,6 @@
         max: 2
       },
       autoResize: true,
-      panning: true,
       background: {
         color: card.plot.backgroundColor || 'transparent'
       },
@@ -501,7 +391,6 @@
         max: 2
       },
       autoResize: true,
-      panning: true,
       background: { color: '#ffffff' },
       mousewheel: {
         enabled: true,
@@ -646,33 +535,6 @@
           <ToolOutlined/>
         </Popover>
         <NormalHeader config={card} updateComponent={this.updateComponent}/>
-        <div className="mk-toolbar">
-          <div className="left-tool">
-            {card.plot.subtype === 'xflow' ? <Tooltip title="缃墠">
-              <VerticalAlignTopOutlined/>
-            </Tooltip> : null}
-            {card.plot.subtype === 'xflow' ? <Tooltip title="缃悗">
-              <VerticalAlignBottomOutlined/>
-            </Tooltip> : null}
-            <Tooltip title="淇濆瓨">
-              <SaveOutlined/>
-            </Tooltip>
-            {card.plot.export === 'png' ? <Tooltip title="瀵煎嚭鍥剧墖">
-              <DownloadOutlined/>
-            </Tooltip> : null}
-          </div>
-          <div className="right-tool">
-            <Tooltip title="鏀惧ぇ">
-              <ZoomInOutlined/>
-            </Tooltip>
-            <Tooltip title="缂╁皬">
-              <ZoomOutOutlined/>
-            </Tooltip>
-            <Tooltip title="1:1">
-              <OneToOneOutlined/>
-            </Tooltip>
-          </div>
-        </div>
         <div className="canvas" style={{width: '100%', minHeight: card.plot.height, height: card.plot.height}} id={card.uuid + 'canvas'}>
           <div id={card.uuid + 'container'} className="mk-container"></div>
         </div>

--
Gitblit v1.8.0