@nocobase/plugin-graph-collection-manager 0.9.2-alpha.2 → 0.9.2-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -43,7 +43,7 @@ const GraphCollectionProvider = _react().default.memo(props => {
43
43
  t = _useGCMTranslation.t;
44
44
  const items = (0, _react().useContext)(_client().SettingsCenterContext);
45
45
  items['collection-manager']['tabs']['graph'] = {
46
- title: t("Graphical interface"),
46
+ title: t('Graphical interface'),
47
47
  component: _GraphCollectionShortcut.GraphCollectionPane
48
48
  };
49
49
  return _react().default.createElement(_client().SettingsCenterProvider, {
@@ -101,7 +101,7 @@ const LINE_HEIGHT = 40;
101
101
  const NODE_WIDTH = 250;
102
102
  let targetGraph;
103
103
  let targetNode;
104
- let dir = 'TB'; // LR RL TB BT 横排
104
+ const dir = 'TB'; // LR RL TB BT 横排
105
105
  var DirectionType;
106
106
  exports.DirectionType = DirectionType;
107
107
  (function (DirectionType) {
@@ -390,7 +390,7 @@ const handelResetLayout = () => {
390
390
  const yNodes = nodeWithEdges.filter(v => {
391
391
  return Math.abs(targetGraph.getCellById(v).position().y - maxY) < 50;
392
392
  });
393
- let referenceNode = (_targetGraph$getCell = targetGraph.getCell((0, _lodash().maxBy)(yNodes, k => targetGraph.getCellById(k).position().x))) === null || _targetGraph$getCell === void 0 ? void 0 : _targetGraph$getCell.position();
393
+ const referenceNode = (_targetGraph$getCell = targetGraph.getCell((0, _lodash().maxBy)(yNodes, k => targetGraph.getCellById(k).position().x))) === null || _targetGraph$getCell === void 0 ? void 0 : _targetGraph$getCell.position();
394
394
  num = Math.round(maxX / 320) || 1;
395
395
  alternateNum = Math.floor((4500 - (maxX + 100 - referenceNode.x)) / 280);
396
396
  rawEntity = getGridData(num, rawNodes);
@@ -453,7 +453,7 @@ const handelResetLayout = () => {
453
453
  };
454
454
  const GraphDrawPage = _react2().default.memo(() => {
455
455
  var _targetGraph7;
456
- let options = (0, _react2().useContext)(_react().SchemaOptionsContext);
456
+ const options = (0, _react2().useContext)(_react().SchemaOptionsContext);
457
457
  const ctx = (0, _react2().useContext)(_client().CollectionManagerContext);
458
458
  const api = (0, _client().useAPIClient)();
459
459
  const compile = (0, _client().useCompile)();
@@ -991,7 +991,7 @@ const GraphDrawPage = _react2().default.memo(() => {
991
991
  const node = targetGraph.getCellById(key);
992
992
  targetGraph.cacheCollection[key] = true;
993
993
  const connectedEdges = targetGraph.getConnectedEdges(node);
994
- let visibleEdges = connectedEdges.filter(v => {
994
+ const visibleEdges = connectedEdges.filter(v => {
995
995
  var _v$store$data;
996
996
  return !((_v$store$data = v.store.data) === null || _v$store$data === void 0 ? void 0 : _v$store$data.connectionType) && v.getTargetCellId() === key;
997
997
  });
@@ -60,7 +60,7 @@ const AddFieldAction = ({
60
60
  getContainer: () => document.getElementById('graph_container')
61
61
  }, _react().default.createElement(_icons().PlusOutlined, {
62
62
  className: "btn-add",
63
- id: 'graph_btn_add_field'
63
+ id: "graph_btn_add_field"
64
64
  }));
65
65
  };
66
66
  exports.AddFieldAction = AddFieldAction;
@@ -17,6 +17,6 @@ var _default = {
17
17
  'Entity relationship only': 'Entity relationship only',
18
18
  'Inheritance relationship only': 'Inheritance relationship only',
19
19
  'Graphical interface': 'Graphical interface',
20
- 'Selection': 'Selection'
20
+ Selection: 'Selection'
21
21
  };
22
22
  exports.default = _default;
@@ -15,6 +15,6 @@ var _default = {
15
15
  'All relationships': 'すべての関係',
16
16
  'Entity relationship only': 'エンティティ関係',
17
17
  'Inheritance relationship only': '継承関係',
18
- 'Selection': 'せんたく'
18
+ Selection: 'せんたく'
19
19
  };
20
20
  exports.default = _default;
@@ -17,6 +17,6 @@ var _default = {
17
17
  'Entity relationship only': 'Somente relação de Entidade',
18
18
  'Inheritance relationship only': 'Somente relação de Herança',
19
19
  'Graphical interface': 'Interface Gráfica',
20
- 'Selection': 'Seleção'
20
+ Selection: 'Seleção'
21
21
  };
22
22
  exports.default = _default;
@@ -18,6 +18,6 @@ var _default = {
18
18
  'Inheritance relationship only': '继承关系',
19
19
  'Graphical interface': '图形化界面',
20
20
  'Auto layout': '自动布局',
21
- 'Selection': '选择模式'
21
+ Selection: '选择模式'
22
22
  };
23
23
  exports.default = _default;
@@ -444,7 +444,7 @@ const getRelationship = relatioship => {
444
444
  }
445
445
  };
446
446
  const getDiffNode = (newNodes, oldNodes) => {
447
- let arr = [];
447
+ const arr = [];
448
448
  const length1 = newNodes.length;
449
449
  const length2 = oldNodes.length;
450
450
  for (let i = 0; i < length1; i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-graph-collection-manager",
3
- "version": "0.9.2-alpha.2",
3
+ "version": "0.9.2-alpha.3",
4
4
  "description": "",
5
5
  "license": "AGPL-3.0",
6
6
  "main": "./lib/index.js",
@@ -11,8 +11,8 @@
11
11
  "dagre": "^0.8.5"
12
12
  },
13
13
  "devDependencies": {
14
- "@nocobase/client": "0.9.2-alpha.2",
15
- "@nocobase/test": "0.9.2-alpha.2"
14
+ "@nocobase/client": "0.9.2-alpha.3",
15
+ "@nocobase/test": "0.9.2-alpha.3"
16
16
  },
17
- "gitHead": "1a0de6908b2b1854bdf434fcafa8909cb65bb8a3"
17
+ "gitHead": "b6b5f9372202d942c97d2d90a4197e060db05124"
18
18
  }