diff --git a/packages/x6-plugin-selection/src/selection.ts b/packages/x6-plugin-selection/src/selection.ts index 243b604e422..2854ca813d7 100644 --- a/packages/x6-plugin-selection/src/selection.ts +++ b/packages/x6-plugin-selection/src/selection.ts @@ -83,7 +83,8 @@ export class SelectionImpl extends View { collection.on('reseted', this.onReseted, this) collection.on('updated', this.onCollectionUpdated, this) collection.on('node:change:position', this.onNodePositionChanged, this) - collection.on('cell:changed', this.onCellChanged, this) + collection.on('node:change:angle', this.onCellChanged, this) + collection.on('node:change:size', this.onCellChanged, this) } protected stopListening() { @@ -101,7 +102,8 @@ export class SelectionImpl extends View { collection.off('reseted', this.onReseted, this) collection.off('updated', this.onCollectionUpdated, this) collection.off('node:change:position', this.onNodePositionChanged, this) - collection.off('cell:changed', this.onCellChanged, this) + collection.off('node:change:angle', this.onCellChanged, this) + collection.off('node:change:size', this.onCellChanged, this) } protected onRemove() {