Compare commits

...

2 Commits

4 changed files with 16 additions and 5 deletions
packages
x6-plugin-transform
x6/src/graph

@ -1,3 +1,10 @@
## @antv/x6-plugin-transform [2.1.4](https://github.com/antvis/x6/compare/@antv/x6-plugin-transform@2.1.3...@antv/x6-plugin-transform@2.1.4) (2022-12-07)
### Bug Fixes
* make resizing options take effect ([#3014](https://github.com/antvis/x6/issues/3014)) ([604c024](https://github.com/antvis/x6/commit/604c0244cd71ec8e911754dfe524f12c04e4e9ad))
## @antv/x6-plugin-transform [2.1.2](https://github.com/antvis/x6/compare/@antv/x6-plugin-transform@2.1.1...@antv/x6-plugin-transform@2.1.2) (2022-11-25)

@ -1,6 +1,6 @@
{
"name": "@antv/x6-plugin-transform",
"version": "2.0.3",
"version": "2.1.4",
"description": "transform plugin for X6",
"main": "lib/index.js",
"module": "es/index.js",

@ -58,8 +58,12 @@ export class Graph extends Basecoat<EventArgs> {
this.grid = new Grid(this)
this.background = new Background(this)
this.model = this.options.model ? this.options.model : new Model()
this.model.graph = this
if (this.options.model) {
this.model = this.options.model
} else {
this.model = new Model()
this.model.graph = this
}
this.renderer = new ViewRenderer(this)
this.panning = new Panning(this)

@ -201,7 +201,7 @@ export class GraphView extends View {
}
if (this.options.preventDefaultMouseDown) {
e.preventDefault()
evt.preventDefault()
}
const localPoint = this.graph.snapToGrid(e.clientX, e.clientY)
@ -213,7 +213,7 @@ export class GraphView extends View {
this.options.preventDefaultBlankAction &&
['touchstart'].includes(e.type)
) {
e.preventDefault()
evt.preventDefault()
}
this.graph.trigger('blank:mousedown', {