@leafer/canvas 1.0.0-alpha.1 → 1.0.0-alpha.10

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,11 +1,13 @@
1
1
  {
2
2
  "name": "@leafer/canvas",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.10",
4
4
  "description": "@leafer/canvas",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
7
7
  "main": "src/index.ts",
8
- "files": ["src"],
8
+ "files": [
9
+ "src"
10
+ ],
9
11
  "repository": {
10
12
  "type": "git",
11
13
  "url": "https://github.com/leaferjs/leafer.git"
@@ -17,9 +19,9 @@
17
19
  "leaferjs"
18
20
  ],
19
21
  "dependencies": {
20
- "@leafer/list": "1.0.0-alpha.1"
22
+ "@leafer/list": "1.0.0-alpha.10"
21
23
  },
22
24
  "devDependencies": {
23
- "@leafer/interface": "1.0.0-alpha.1"
25
+ "@leafer/interface": "1.0.0-alpha.10"
24
26
  }
25
- }
27
+ }
@@ -56,7 +56,7 @@ export class CanvasManager implements ICanvasManager {
56
56
 
57
57
  public destory(): void {
58
58
  this.clear()
59
- this.leafer = undefined
59
+ this.leafer = null
60
60
  }
61
61
 
62
62
  }
@@ -9,7 +9,7 @@ export class HitCanvasManager extends CanvasManager implements IHitCanvasManager
9
9
  protected pathTypeList: ILeafList = new LeafList()
10
10
  protected imageTypeList: ILeafList = new LeafList()
11
11
 
12
- public get(size: IScreenSizeData): ILeaferCanvas { return undefined }
12
+ public get(_size: IScreenSizeData): ILeaferCanvas { return undefined }
13
13
 
14
14
  public getImageType(leaf: ILeaf, size: IScreenSizeData): IHitCanvas {
15
15
  this.imageTypeList.push(leaf)
@@ -33,7 +33,7 @@ export class HitCanvasManager extends CanvasManager implements IHitCanvasManager
33
33
  leafList.forEach(leaf => {
34
34
  if (leaf.__hitCanvas) {
35
35
  leaf.__hitCanvas.destroy()
36
- leaf.__hitCanvas = undefined
36
+ leaf.__hitCanvas = null
37
37
  }
38
38
  })
39
39
  leafList.reset()