@hailin-zheng/editor-core 1.0.55 → 1.0.56

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index-cjs.js CHANGED
@@ -6669,6 +6669,7 @@ class DocumentSelection {
6669
6669
  const range = this.selectionState.range;
6670
6670
  //转换选区
6671
6671
  this.transformRange();
6672
+ this.selectionState.clear();
6672
6673
  if (!range) {
6673
6674
  return false;
6674
6675
  }
@@ -6790,7 +6791,7 @@ class SelectionState {
6790
6791
  */
6791
6792
  rangeDirty = false;
6792
6793
  addRange(range) {
6793
- //this.clear();
6794
+ this.clear();
6794
6795
  this.range = range;
6795
6796
  this.rangeDirty = true;
6796
6797
  this.onChangedEvent.next();
@@ -16043,10 +16044,10 @@ class CanvasTextEditor {
16043
16044
  */
16044
16045
  refreshView(rePaint) {
16045
16046
  const ssChanged = this.documentSelection.updateSelectionState();
16046
- this.setCursor();
16047
16047
  this.selectionOverlays.getSelectionTreeData();
16048
16048
  this.documentPaint.refreshView(rePaint);
16049
16049
  this.setScrollSize();
16050
+ this.setCursor();
16050
16051
  ssChanged && this.selectionChanged.next(this.documentSelection.selectionState);
16051
16052
  this.docRule.refreshRule();
16052
16053
  }