@leafer-ui/display 1.6.6 → 1.6.7

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 +8 -8
  2. package/src/Text.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/display",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "description": "@leafer-ui/display",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,14 +22,14 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/core": "1.6.6",
26
- "@leafer-ui/data": "1.6.6",
27
- "@leafer-ui/display-module": "1.6.6",
28
- "@leafer-ui/decorator": "1.6.6",
29
- "@leafer-ui/external": "1.6.6"
25
+ "@leafer/core": "1.6.7",
26
+ "@leafer-ui/data": "1.6.7",
27
+ "@leafer-ui/display-module": "1.6.7",
28
+ "@leafer-ui/decorator": "1.6.7",
29
+ "@leafer-ui/external": "1.6.7"
30
30
  },
31
31
  "devDependencies": {
32
- "@leafer/interface": "1.6.6",
33
- "@leafer-ui/interface": "1.6.6"
32
+ "@leafer/interface": "1.6.7",
33
+ "@leafer-ui/interface": "1.6.7"
34
34
  }
35
35
  }
package/src/Text.ts CHANGED
@@ -4,7 +4,7 @@ import { BoundsHelper, boundsType, surfaceType, dataProcessor, registerUI, affec
4
4
  import { IFill, IText, IFontWeight, ITextCase, ITextDecoration, ITextData, ITextInputData, ITextAlign, IVerticalAlign, ITextDrawData, IOverflow, IStrokeAlign, IHitType, ITextWrap, IWritingMode, IBackgroundBoxStyle } from '@leafer-ui/interface'
5
5
  import { TextData } from '@leafer-ui/data'
6
6
 
7
- import { TextConvert, UnitConvert, Export } from '@leafer-ui/external'
7
+ import { TextConvert, UnitConvert } from '@leafer-ui/external'
8
8
 
9
9
  import { UI } from './UI'
10
10
 
@@ -182,7 +182,7 @@ export class Text extends UI implements IText {
182
182
  override __draw(canvas: ILeaferCanvas, options: IRenderOptions, originCanvas?: ILeaferCanvas): void {
183
183
  const box = this.__box
184
184
  if (box) box.__nowWorld = this.__nowWorld, box.__draw(canvas, options, originCanvas)
185
- if (this.textEditing && !Export.running) return
185
+ if (this.textEditing && !options.exporting) return
186
186
  super.__draw(canvas, options, originCanvas)
187
187
  }
188
188