@leafer-ui/external 1.1.1 → 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 +3 -3
  2. package/src/index.ts +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/external",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "@leafer-ui/external",
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.1.1"
25
+ "@leafer/core": "1.2.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@leafer-ui/interface": "1.1.1"
28
+ "@leafer-ui/interface": "1.2.0"
29
29
  }
30
30
  }
package/src/index.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  // Implemented in partner
2
2
  import { IPaintModule, IPaintImageModule, IPaintGradientModule, IEffectModule, ITextConvertModule, IExportModule, IColorConvertModule, IPathArrowModule, IStateModule, IUI, IString, IBoolean, IUnitData, ITransitionModule, ITransitionFunction } from "@leafer-ui/interface"
3
- import { needPlugin } from '@leafer/core'
3
+ import { Plugin } from '@leafer/core'
4
4
 
5
5
  export const TextConvert = {} as ITextConvertModule
6
6
 
@@ -30,8 +30,8 @@ export const Effect = {} as IEffectModule
30
30
  export const Export = {} as IExportModule
31
31
 
32
32
  export const State = {
33
- setStyleName(_leaf: IUI, _styleName: IString, _value: IBoolean): void { return needPlugin('state') },
34
- set(_leaf: IUI, _stateName: IString): void { return needPlugin('state') }
33
+ setStyleName(_leaf: IUI, _styleName: IString, _value: IBoolean): void { return Plugin.need('state') },
34
+ set(_leaf: IUI, _stateName: IString): void { return Plugin.need('state') }
35
35
  } as IStateModule
36
36
 
37
37
  export const Transition = {