@leafer-in/text-editor 1.0.2 → 1.0.3

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-in/text-editor",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "@leafer-in/text-editor",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -34,9 +34,9 @@
34
34
  "leaferjs"
35
35
  ],
36
36
  "dependencies": {
37
- "@leafer-ui/core": "^1.0.2",
38
- "@leafer-in/editor": "^1.0.2",
39
- "@leafer-ui/interface": "^1.0.2",
40
- "@leafer-in/interface": "^1.0.2"
37
+ "@leafer-ui/core": "^1.0.3",
38
+ "@leafer-in/editor": "^1.0.3",
39
+ "@leafer-ui/interface": "^1.0.3",
40
+ "@leafer-in/interface": "^1.0.3"
41
41
  }
42
42
  }
@@ -1,4 +1,4 @@
1
- import { ColorConvert, inviteCode } from '@leafer-ui/core'
1
+ import { ColorConvert } from '@leafer-ui/core'
2
2
  import { IFill, IText, IRGB } from '@leafer-ui/interface'
3
3
 
4
4
 
@@ -16,8 +16,6 @@ export const verticalAlignMap = {
16
16
  'bottom': 'flex-end'
17
17
  }
18
18
 
19
- export const codes = inviteCode
20
-
21
19
  export function updateStyle(textDom: HTMLDivElement, text: IText, textScale: number): void {
22
20
  const { style } = textDom
23
21
  const { fill, padding, textWrap, textOverflow, textDecoration } = text