@leafer-ui/interaction 1.4.0 → 1.4.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-ui/interaction",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "@leafer-ui/interaction",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,12 +22,12 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/core": "1.4.0",
26
- "@leafer-ui/draw": "1.4.0",
27
- "@leafer-ui/event": "1.4.0"
25
+ "@leafer/core": "1.4.2",
26
+ "@leafer-ui/draw": "1.4.2",
27
+ "@leafer-ui/event": "1.4.2"
28
28
  },
29
29
  "devDependencies": {
30
- "@leafer/interface": "1.4.0",
31
- "@leafer-ui/interface": "1.4.0"
30
+ "@leafer/interface": "1.4.2",
31
+ "@leafer-ui/interface": "1.4.2"
32
32
  }
33
33
  }
@@ -1,5 +1,5 @@
1
1
  import { IUIEvent, IPointerEvent, ILeaf, IInteraction, IInteractionConfig, ITransformer, ILeafList, IMoveEvent, IZoomEvent, IRotateEvent, IWheelEvent, ISelector, IBounds, IEventListenerId, IInteractionCanvas, ITimer, IKeepTouchData, IKeyEvent, IPickOptions, ICursorType, IBooleanMap, IPickBottom, IClientPointData, IPointData, ILeaferConfig, IMoveConfig, IPointerConfig } from '@leafer/interface'
2
- import { LeaferEvent, ResizeEvent, LeafList, Bounds, PointHelper, DataHelper } from '@leafer/core'
2
+ import { LeaferEvent, ResizeEvent, LeafList, Bounds, PointHelper, DataHelper, Platform } from '@leafer/core'
3
3
 
4
4
  import { IApp } from '@leafer-ui/interface'
5
5
  import { PointerEvent, DropEvent, KeyEvent, PointerButton, Keyboard } from '@leafer-ui/event'
@@ -353,7 +353,8 @@ export class InteractionBase implements IInteraction {
353
353
  // update
354
354
  public findPath(data: IPointerEvent, options?: IPickOptions): ILeafList {
355
355
  const { hitRadius, through } = this.p
356
- const { bottomList } = this
356
+ const { bottomList, target } = this
357
+ if (!Platform.backgrounder && !data.origin) target && target.updateLayout() // 模拟交互
357
358
  const find = this.selector.getByPoint(data, hitRadius, { bottomList, name: data.type, ...(options || { through }) })
358
359
  if (find.throughPath) data.throughPath = find.throughPath
359
360
  data.path = find.path