@leafer-ui/display 1.9.6 → 1.9.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/display",
3
- "version": "1.9.6",
3
+ "version": "1.9.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.9.6",
26
- "@leafer-ui/data": "1.9.6",
27
- "@leafer-ui/display-module": "1.9.6",
28
- "@leafer-ui/decorator": "1.9.6",
29
- "@leafer-ui/external": "1.9.6"
25
+ "@leafer/core": "1.9.7",
26
+ "@leafer-ui/data": "1.9.7",
27
+ "@leafer-ui/display-module": "1.9.7",
28
+ "@leafer-ui/decorator": "1.9.7",
29
+ "@leafer-ui/external": "1.9.7"
30
30
  },
31
31
  "devDependencies": {
32
- "@leafer/interface": "1.9.6",
33
- "@leafer-ui/interface": "1.9.6"
32
+ "@leafer/interface": "1.9.7",
33
+ "@leafer-ui/interface": "1.9.7"
34
34
  }
35
35
  }
package/src/UI.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { ILeaferCanvas, IPathDrawer, IPathCommandData, IHitType, INumber, IBoolean, IString, IPathString, IExportFileType, IPointData, ICursorType, IMaskType, IEraserType, IValue, IWindingRule, IPathCreator, IFourNumber, IBoundsData, IFlowType, IGap, IFlowWrap, IAxis, IConstraint, IAutoBoxData, IFlowBoxType, IPointGap, IFlowAlign, IFlowAxisAlign, IFindCondition, IAutoSize, IRangeSize, IAlign, IUnitPointData, IObject, IScaleData, IUnitData, IPathCommandObject, ITransition, IFilter, ILeaferImage, IScaleFixed, IDragBoundsType } from '@leafer/interface'
2
- import { Leaf, PathDrawer, surfaceType, dataType, positionType, scrollType, boundsType, pathType, scaleType, rotationType, opacityType, visibleType, sortType, maskType, dataProcessor, registerUI, useModule, rewrite, rewriteAble, UICreator, PathCorner, hitType, strokeType, PathConvert, eraserType, cursorType, autoLayoutType, pen, naturalBoundsType, pathInputType, MathHelper, Plugin, DataHelper, affectRenderBoundsType, isString, isNumber } from '@leafer/core'
2
+ import { Leaf, PathDrawer, surfaceType, dimType, dataType, positionType, scrollType, boundsType, pathType, scaleType, rotationType, opacityType, visibleType, sortType, maskType, dataProcessor, registerUI, useModule, rewrite, rewriteAble, UICreator, PathCorner, hitType, strokeType, PathConvert, eraserType, cursorType, autoLayoutType, pen, naturalBoundsType, pathInputType, MathHelper, Plugin, DataHelper, affectRenderBoundsType, isString, isNumber } from '@leafer/core'
3
3
 
4
4
  import { IUI, IShadowEffect, IBlurEffect, IStrokeAlign, IStrokeJoin, IStrokeCap, IBlendMode, IDashPatternString, IShadowString, IGrayscaleEffect, IUIData, IGroup, IStrokeWidthString, ICornerRadiusString, IUIInputData, IExportOptions, IExportResult, IFill, IStroke, IArrowStyle, IFindUIMethod, ILeafer, IEditorConfig, IEditorConfigFunction, IEditToolFunction, IKeyframe, IAnimation, IAnimate, IStates, IStateName, IAnimateType, IStateStyle, IColorString, IAnimateList } from '@leafer-ui/interface'
5
5
  import { effectType, zoomLayerType } from '@leafer-ui/decorator'
@@ -61,12 +61,16 @@ export class UI<TInputData = IUIInputData> extends Leaf<TInputData> implements I
61
61
  public locked?: IBoolean
62
62
 
63
63
 
64
- @surfaceType(false)
64
+ // @leafer-in/bright will rewrite
65
+
66
+ @dimType(false)
65
67
  public dim?: IBoolean | INumber // 是否弱化内容,可设置具体透明度
66
68
 
67
- @surfaceType(false)
69
+ @dimType(false)
68
70
  public dimskip?: IBoolean // 跳过弱化,突出显示内容,不受dim影响
69
71
 
72
+ public bright?: IBoolean // 突出显示内容,并置顶渲染,不受dim影响
73
+
70
74
 
71
75
  @sortType(0)
72
76
  public zIndex?: INumber
package/types/index.d.ts CHANGED
@@ -21,6 +21,7 @@ declare class UI<TInputData = IUIInputData> extends Leaf<TInputData> implements
21
21
  locked?: IBoolean;
22
22
  dim?: IBoolean | INumber;
23
23
  dimskip?: IBoolean;
24
+ bright?: IBoolean;
24
25
  zIndex?: INumber;
25
26
  mask?: IBoolean | IMaskType;
26
27
  eraser?: IBoolean | IEraserType;