@leafer/selector 1.0.0-rc.3 → 1.0.0-rc.5

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/selector",
3
- "version": "1.0.0-rc.3",
3
+ "version": "1.0.0-rc.5",
4
4
  "description": "@leafer/selector",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,9 +22,9 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/core": "1.0.0-rc.3"
25
+ "@leafer/core": "1.0.0-rc.5"
26
26
  },
27
27
  "devDependencies": {
28
- "@leafer/interface": "1.0.0-rc.3"
28
+ "@leafer/interface": "1.0.0-rc.5"
29
29
  }
30
30
  }
package/src/Selector.ts CHANGED
@@ -1,9 +1,8 @@
1
- import { ILeaf, ILeafArrayMap, ILeafMap, ISelector, ISelectPathResult, ISelectPathOptions, IPointData, IEventListenerId, ISelectorConfig } from '@leafer/interface'
1
+ import { ILeaf, ILeafArrayMap, ILeafMap, ILeafList, ISelector, ISelectPathResult, ISelectPathOptions, IPointData, IEventListenerId, ISelectorConfig } from '@leafer/interface'
2
2
  import { ChildEvent, LayoutEvent, DataHelper, Platform } from '@leafer/core'
3
3
 
4
4
  import { FindPath } from './FindPath'
5
5
 
6
-
7
6
  interface IFind {
8
7
  (leaf: ILeaf): boolean
9
8
  }
@@ -13,6 +12,8 @@ export class Selector implements ISelector {
13
12
 
14
13
  public target: ILeaf
15
14
 
15
+ public list: ILeafList
16
+
16
17
  public config: ISelectorConfig = {}
17
18
 
18
19
  protected findPath: FindPath
package/types/index.d.ts CHANGED
@@ -24,6 +24,7 @@ interface IFind {
24
24
  }
25
25
  declare class Selector implements ISelector {
26
26
  target: ILeaf;
27
+ list: ILeafList;
27
28
  config: ISelectorConfig;
28
29
  protected findPath: FindPath;
29
30
  protected innerIdList: ILeafMap;