fix: webpack版本
This commit is contained in:
parent
88ec08ec20
commit
7713ddf065
9239
package-lock.json
generated
9239
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
19
package.json
19
package.json
@ -1,19 +1,20 @@
|
|||||||
{
|
{
|
||||||
"devDependencies": {
|
|
||||||
"merge": "^2.1.1",
|
|
||||||
"ts-loader": "^5.2.1",
|
|
||||||
"typescript": "^3.2.2",
|
|
||||||
"webpack": "^4.46.0",
|
|
||||||
"webpack-cli": "^3.2.3"
|
|
||||||
},
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "webpack --config webpack.config.product.js",
|
"build": "webpack --config webpack.config.product.js",
|
||||||
"dep": "webpack --config webpack.config.product.js && node copyDist2Anyview.js",
|
"dep": "webpack --config webpack.config.product.js && node copyDist2Anyview.js",
|
||||||
"dev": "webpack --w --config webpack.config.develop.js",
|
"dev": "webpack --watch --config webpack.config.develop.js",
|
||||||
"copy": "node copyDist2Anyview.js"
|
"copy": "node copyDist2Anyview.js"
|
||||||
},
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"acorn": "^8.7.0",
|
||||||
|
"merge": "^2.1.1",
|
||||||
|
"ts-loader": "^9.2.8",
|
||||||
|
"typescript": "^4.6.2",
|
||||||
|
"webpack": "^5.70.0",
|
||||||
|
"webpack-cli": "^4.9.2"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@antv/g6": "^4.6.1",
|
"@antv/g6": "^4.6.4",
|
||||||
"merge": "^2.1.1"
|
"merge": "^2.1.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
import { Graph, INode } from "@antv/g6";
|
import { G6Event, Graph, INode } from "@antv/g6";
|
||||||
import { EventBus } from "../Common/eventBus";
|
import { EventBus } from "../Common/eventBus";
|
||||||
import { LayoutGroupTable } from "../Model/modelConstructor";
|
import { LayoutGroupTable } from "../Model/modelConstructor";
|
||||||
import { SVModel } from "../Model/SVModel";
|
import { SVModel } from "../Model/SVModel";
|
||||||
@ -136,7 +136,7 @@ export function SolveBrushSelectDrag(viewContainer: ViewContainer) {
|
|||||||
const g6Instance: Graph = viewContainer.getG6Instance();
|
const g6Instance: Graph = viewContainer.getG6Instance();
|
||||||
|
|
||||||
// 当框选完成后,监听被框选节点的数量变化事件,将被框选的节点添加到 brushSelectedModels 数组里面
|
// 当框选完成后,监听被框选节点的数量变化事件,将被框选的节点添加到 brushSelectedModels 数组里面
|
||||||
g6Instance.on('nodeselectchange', event => {
|
g6Instance.on('nodeselectchange' as G6Event, event => {
|
||||||
const selectedItems = event.selectedItems as { nodes: INode[]; },
|
const selectedItems = event.selectedItems as { nodes: INode[]; },
|
||||||
tmpSelectedModelList = [];
|
tmpSelectedModelList = [];
|
||||||
|
|
||||||
|
|||||||
@ -6,6 +6,7 @@ import { ViewContainer } from "./View/viewContainer";
|
|||||||
import { SVNode } from "./Model/SVNode";
|
import { SVNode } from "./Model/SVNode";
|
||||||
import { Util } from "./Common/util";
|
import { Util } from "./Common/util";
|
||||||
import { SVModel } from "./Model/SVModel";
|
import { SVModel } from "./Model/SVModel";
|
||||||
|
import { G6Event } from "@antv/g6";
|
||||||
|
|
||||||
|
|
||||||
export class Engine {
|
export class Engine {
|
||||||
@ -204,7 +205,7 @@ export class Engine {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.viewContainer.getG6Instance().on(eventName, event => {
|
this.viewContainer.getG6Instance().on(eventName as G6Event, event => {
|
||||||
callback(event.item['SVModel']);
|
callback(event.item['SVModel']);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user