@leafer-in/editor 2.0.1 → 2.0.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-in/editor",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "@leafer-in/editor",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -34,10 +34,10 @@
34
34
  "leaferjs"
35
35
  ],
36
36
  "peerDependencies": {
37
- "@leafer-ui/draw": "^2.0.1",
38
- "@leafer-ui/core": "^2.0.1",
39
- "@leafer-in/resize": "^2.0.1",
40
- "@leafer-ui/interface": "^2.0.1",
41
- "@leafer-in/interface": "^2.0.1"
37
+ "@leafer-ui/draw": "^2.0.2",
38
+ "@leafer-ui/core": "^2.0.2",
39
+ "@leafer-in/resize": "^2.0.2",
40
+ "@leafer-ui/interface": "^2.0.2",
41
+ "@leafer-in/interface": "^2.0.2"
42
42
  }
43
43
  }
@@ -125,6 +125,8 @@ export class EditSelect extends Group implements IEditSelect {
125
125
  editor.target = find
126
126
  }
127
127
 
128
+ e.path.needUpdate = true // 需要更新一下path
129
+
128
130
  } else if (this.allow(e.target)) {
129
131
 
130
132
  if (!this.isHoldMultipleSelectKey(e) && !this.editor.mergedConfig.selectKeep) editor.target = null
@@ -22,6 +22,7 @@ export class SimulateElement extends Rect implements ISimulateElement {
22
22
  super()
23
23
 
24
24
  this.visible = this.hittable = false
25
+ this.skipJSON = true
25
26
 
26
27
  this.on(PropertyEvent.CHANGE, (event: PropertyEvent) => {
27
28