@leafer-ui/external 1.4.1 → 1.5.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 +6 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/external",
3
- "version": "1.4.1",
3
+ "version": "1.5.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.4.1"
25
+ "@leafer/core": "1.5.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@leafer-ui/interface": "1.4.1"
28
+ "@leafer-ui/interface": "1.5.0"
29
29
  }
30
30
  }
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  // Implemented in partner
2
- import { IPaintModule, IPaintImageModule, IPaintGradientModule, IEffectModule, ITextConvertModule, IExportModule, IColorConvertModule, IPathArrowModule, IStateModule, IUnitData, ITransitionModule, IFilterModule } from "@leafer-ui/interface"
2
+ import { IPaintModule, IPaintImageModule, IPaintGradientModule, IEffectModule, ITextConvertModule, IExportModule, IColorConvertModule, IPathArrowModule, IStateModule, IUnitData, ITransitionModule, ITransitionFunction, IFilterModule } from "@leafer-ui/interface"
3
3
  import { Plugin } from '@leafer/core'
4
4
 
5
5
 
@@ -36,4 +36,8 @@ export const State = {
36
36
  set(): void { return Plugin.need('state') }
37
37
  } as unknown as IStateModule
38
38
 
39
- export const Transition = {} as ITransitionModule
39
+ export const Transition = {
40
+ list: {},
41
+ register(attrName: string, fn: ITransitionFunction): void { Transition.list[attrName] = fn },
42
+ get(attrName: string): ITransitionFunction { return Transition.list[attrName] }
43
+ } as ITransitionModule