@leafer-ui/interface 2.0.9 → 2.1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leafer-ui/interface",
3
- "version": "2.0.9",
3
+ "version": "2.1.0",
4
4
  "description": "@leafer-ui/interface",
5
5
  "author": "Chao (Leafer) Wan",
6
6
  "license": "MIT",
@@ -22,6 +22,6 @@
22
22
  "leaferjs"
23
23
  ],
24
24
  "dependencies": {
25
- "@leafer/interface": "2.0.9"
25
+ "@leafer/interface": "2.1.0"
26
26
  }
27
27
  }
package/src/IUI.ts CHANGED
@@ -602,6 +602,7 @@ export interface IUIData extends IUIAttrData, IUIComputedData, ILeafData {
602
602
  __strokeWidthCache?: number // 一般用于固定线宽的箭头做缓存对比
603
603
  __hasMultiStrokeStyle?: number // 是否存在多个不同的描述样式(同时存储多个描边样式中的最大宽度用于运算)
604
604
  readonly __hasMultiPaint?: boolean
605
+ __hasStrokeSides?: number // 是否存在多边,存在时存储最大值
605
606
 
606
607
  __isAlphaPixelFill?: boolean // png / svg / webp
607
608
  __isAlphaPixelStroke?: boolean
@@ -631,6 +632,8 @@ export interface IUIData extends IUIAttrData, IUIComputedData, ILeafData {
631
632
  __computePaint(): void
632
633
  __getRealStrokeWidth(childStyle?: IStrokeComputedStyle): number
633
634
 
635
+ __checkComplex(): void
636
+
634
637
  __setPaint(attrName: 'fill' | 'stroke', value: IValue): void
635
638
  __removePaint(attrName: 'fill' | 'stroke', removeInput?: boolean): void
636
639
  }
package/types/index.d.ts CHANGED
@@ -1165,6 +1165,7 @@ interface IUIData extends IUIAttrData, IUIComputedData, ILeafData {
1165
1165
  __strokeWidthCache?: number;
1166
1166
  __hasMultiStrokeStyle?: number;
1167
1167
  readonly __hasMultiPaint?: boolean;
1168
+ __hasStrokeSides?: number;
1168
1169
  __isAlphaPixelFill?: boolean;
1169
1170
  __isAlphaPixelStroke?: boolean;
1170
1171
  __isTransparentFill?: boolean;
@@ -1184,6 +1185,7 @@ interface IUIData extends IUIAttrData, IUIComputedData, ILeafData {
1184
1185
  __needComputePaint?: boolean;
1185
1186
  __computePaint(): void;
1186
1187
  __getRealStrokeWidth(childStyle?: IStrokeComputedStyle): number;
1188
+ __checkComplex(): void;
1187
1189
  __setPaint(attrName: 'fill' | 'stroke', value: IValue): void;
1188
1190
  __removePaint(attrName: 'fill' | 'stroke', removeInput?: boolean): void;
1189
1191
  }