Commit 57652f1a by 张超军

2

parent a00873ac
This source diff could not be displayed because it is too large. You can view the blob instead.
/* /*
* @Author: your name * @Author: your name
* @Date: 2021-07-20 14:42:16 * @Date: 2021-07-20 14:42:16
* @LastEditTime: 2021-11-17 18:12:42 * @LastEditTime: 2021-11-21 11:42:25
* @LastEditors: Please set LastEditors * @LastEditors: Please set LastEditors
* @Description: In User Settings Edit * @Description: In User Settings Edit
* @FilePath: \founder_vue\src\router\modules\rightContent.js * @FilePath: \founder_vue\src\router\modules\rightContent.js
*/ */
import Main from '@/views/ceshi/cqceshi.vue' import Main from '@/views/ceshi/cqceshi2.vue'
export default { export default {
path: "/cqceshi", path: "/cqceshi2",
name: "cqceshi", name: "cqceshi2",
meta: { meta: {
title: "重庆测试", title: "重庆测试",
}, },
......
...@@ -1335,6 +1335,14 @@ function SeeksBidirectionalTreeLayouter(layoutSetting, graphSetting) { ...@@ -1335,6 +1335,14 @@ function SeeksBidirectionalTreeLayouter(layoutSetting, graphSetting) {
thisNode.y = thisNode.offset_y + thisNode.lot.y + __offsetY; thisNode.y = thisNode.offset_y + thisNode.lot.y + __offsetY;
thisNode.lot.placed = true; thisNode.lot.placed = true;
}); });
// let newNode = allNodes[allNodes.length-1]
// var __offsetX = newNode.offset_x || 0;
// var __offsetY = newNode.offset_y || 0;
// newNode.x = newNode.offset_x + newNode.lot.x + __offsetX;
// newNode.y = newNode.offset_y + newNode.lot.y + __offsetY;
// newNode.lot.placed = true;
}; };
this.placeRelativePosition = function (rootNode, analyticResult, dynamicSizeConfig) { this.placeRelativePosition = function (rootNode, analyticResult, dynamicSizeConfig) {
if (this.config.from === 'left' || this.config.from === 'right') { if (this.config.from === 'left' || this.config.from === 'right') {
...@@ -1476,6 +1484,14 @@ function SeeksCenterLayouter(layoutSetting, graphSetting) { ...@@ -1476,6 +1484,14 @@ function SeeksCenterLayouter(layoutSetting, graphSetting) {
thisNode.lot.nextNode = undefined; thisNode.lot.nextNode = undefined;
thisNode.lot.placed = false; thisNode.lot.placed = false;
}); });
// debugger
// let newNode = allNodes[allNodes.length-1]
// var __offsetX = newNode.offset_x || 0;
// var __offsetY = newNode.offset_y || 0;
// newNode.x = newNode.offset_x + newNode.lot.x + __offsetX;
// newNode.y = newNode.offset_y + newNode.lot.y + __offsetY;
// newNode.lot.placed = true;
this.allNodes = []; this.allNodes = [];
var analyticResult = { var analyticResult = {
max_deep: 1, max_deep: 1,
...@@ -5677,6 +5693,12 @@ if (false) {(function () { ...@@ -5677,6 +5693,12 @@ if (false) {(function () {
doLayout() { doLayout() {
if (this.graphSetting.layouter && this.graphData.rootNode) { if (this.graphSetting.layouter && this.graphData.rootNode) {
console.log('需要布局的节点数量:', this.graphData.nodes.length); console.log('需要布局的节点数量:', this.graphData.nodes.length);
// ----改
// console.log(this.graphData.nodes);
// let node = []
// node.push(this.graphData.nodes[this.graphData.nodes.length-1])
// console.log(node);
// this.graphSetting.layouter.placeNodes(node, this.graphData.rootNode, this.graphSetting);
this.graphSetting.layouter.placeNodes(this.graphData.nodes, this.graphData.rootNode, this.graphSetting); this.graphSetting.layouter.placeNodes(this.graphData.nodes, this.graphData.rootNode, this.graphSetting);
} }
document.body.addEventListener('mousemove', this.wow); document.body.addEventListener('mousemove', this.wow);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment