更改了x6群组
This commit is contained in:
parent
25bd5c5560
commit
3c042f042e
|
@ -266,7 +266,6 @@ export default {
|
|||
this.map = map;
|
||||
this.map.on('pan', (e) => {
|
||||
this.onRender();
|
||||
// console.log(this.dataNodes);
|
||||
|
||||
});
|
||||
this.map.on('dragend', (e) => {
|
||||
|
@ -492,8 +491,18 @@ this.onRender();
|
|||
// this.pixelToPoint(args.node, args.node.store.data.position)
|
||||
})
|
||||
this.graph.on('node:mouseup', (args) => {
|
||||
const container = this.$refs.container
|
||||
const ports = container.querySelectorAll(
|
||||
'.x6-port-body',
|
||||
)
|
||||
console.log(ports);
|
||||
this.graph.getNodes().forEach((node) => {
|
||||
//let mapPoint = node.store.data.mapPoint
|
||||
this.pixelToPoint(node, node.store.data.position)
|
||||
|
||||
})
|
||||
//将在容器的位置坐标转换为地图的地理坐标
|
||||
this.pixelToPoint(args.node, args.node.store.data.position)
|
||||
//this.pixelToPoint(args.node, args.node.store.data.position)
|
||||
})
|
||||
//画布平移
|
||||
// this.graph.on('translate', ({ tx, ty }) => {
|
||||
|
|
Loading…
Reference in New Issue