@leafer/display 1.1.2 → 1.2.0

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.
Files changed (2) hide show
  1. package/package.json +11 -11
  2. package/src/Leaf.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer/display",
3
- "version": "1.1.2",
3
+ "version": "1.2.0",
4
4
  "description": "@leafer/display",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,17 +22,17 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/math": "1.1.2",
26
- "@leafer/data": "1.1.2",
27
- "@leafer/layout": "1.1.2",
28
- "@leafer/display-module": "1.1.2",
29
- "@leafer/event": "1.1.2",
30
- "@leafer/decorator": "1.1.2",
31
- "@leafer/helper": "1.1.2",
32
- "@leafer/debug": "1.1.2",
33
- "@leafer/platform": "1.1.2"
25
+ "@leafer/math": "1.2.0",
26
+ "@leafer/data": "1.2.0",
27
+ "@leafer/layout": "1.2.0",
28
+ "@leafer/display-module": "1.2.0",
29
+ "@leafer/event": "1.2.0",
30
+ "@leafer/decorator": "1.2.0",
31
+ "@leafer/helper": "1.2.0",
32
+ "@leafer/debug": "1.2.0",
33
+ "@leafer/platform": "1.2.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@leafer/interface": "1.1.2"
36
+ "@leafer/interface": "1.2.0"
37
37
  }
38
38
  }
package/src/Leaf.ts CHANGED
@@ -6,7 +6,7 @@ import { LeafDataProxy, LeafMatrix, LeafBounds, LeafEventer, LeafRender } from '
6
6
  import { boundsType, useModule, defineDataProcessor } from '@leafer/decorator'
7
7
  import { LeafHelper } from '@leafer/helper'
8
8
  import { ChildEvent } from '@leafer/event'
9
- import { needPlugin } from '@leafer/debug'
9
+ import { Plugin } from '@leafer/debug'
10
10
 
11
11
 
12
12
  const { LEAF, create } = IncrementId
@@ -588,11 +588,11 @@ export class Leaf implements ILeaf {
588
588
  // @leafer-in/motion-path rewrite
589
589
 
590
590
  public getMotionPathData(): IMotionPathData {
591
- return needPlugin('path')
591
+ return Plugin.need('path')
592
592
  }
593
593
 
594
594
  public getMotionPoint(_motionDistance: number | IUnitData): IRotationPointData {
595
- return needPlugin('path')
595
+ return Plugin.need('path')
596
596
  }
597
597
 
598
598
  public getMotionTotal(): number {