@leafer-ui/interface 1.0.0-rc.4 → 1.0.0-rc.5
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 +2 -2
- package/src/IUI.ts +9 -3
- package/src/type/IComputedType.ts +2 -1
- package/types/index.d.ts +7 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/interface",
|
|
3
|
-
"version": "1.0.0-rc.
|
|
3
|
+
"version": "1.0.0-rc.5",
|
|
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": "1.0.0-rc.
|
|
25
|
+
"@leafer/interface": "1.0.0-rc.5"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/src/IUI.ts
CHANGED
|
@@ -257,6 +257,8 @@ export interface IUI extends IFillAttrData, IStrokeAttrData, ICornerRadiusAttrDa
|
|
|
257
257
|
__: IUIData
|
|
258
258
|
parent?: IGroup
|
|
259
259
|
|
|
260
|
+
reset(_data?: IUIInputData): void
|
|
261
|
+
|
|
260
262
|
set(data: IUIInputData): void
|
|
261
263
|
toJSON(): IUIInputData
|
|
262
264
|
|
|
@@ -279,13 +281,17 @@ export interface IUIData extends IUIComputedData, ILeafData {
|
|
|
279
281
|
// 非数据属性, 自动计算的缓存数据
|
|
280
282
|
__isFills?: boolean
|
|
281
283
|
__isStrokes?: boolean
|
|
284
|
+
|
|
285
|
+
__pixelFill?: boolean // png / svg / webp
|
|
286
|
+
__pixelStroke?: boolean
|
|
287
|
+
|
|
288
|
+
__opacityFill?: boolean // 半透明的
|
|
289
|
+
__opacityStroke?: boolean
|
|
290
|
+
|
|
282
291
|
__drawAfterFill?: boolean
|
|
283
292
|
__isOverflow?: boolean
|
|
284
293
|
__blendLayer?: boolean
|
|
285
294
|
|
|
286
|
-
__isTranslucentFill?: boolean // 半透明的
|
|
287
|
-
__isTranslucentStroke?: boolean
|
|
288
|
-
|
|
289
295
|
__useEffect?: boolean
|
|
290
296
|
|
|
291
297
|
// path
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IBlendMode, ILeaferImage, IMatrixData } from '@leafer/interface'
|
|
1
|
+
import { IBlendMode, ILeaferImage, IMatrixData, ITaskItem } from '@leafer/interface'
|
|
2
2
|
|
|
3
3
|
import { IColorString } from './IStringType'
|
|
4
4
|
import { IStrokeAlign, IStrokeJoin, IStrokeCap, IImagePaintMode } from './IType'
|
|
@@ -15,6 +15,7 @@ export interface ILeafPaint {
|
|
|
15
15
|
image?: ILeaferImage
|
|
16
16
|
loadId?: number
|
|
17
17
|
patternId?: string
|
|
18
|
+
patternTask?: ITaskItem
|
|
18
19
|
data?: ILeafPaintPatternData
|
|
19
20
|
}
|
|
20
21
|
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPointData, IExportFileType, IWindingRule, IPathCommandData, IBlendMode, IMatrixData, ILeaferImage, IBlob, ILeaf, IPathString, IPathCreator, IBoundsData, ILeaferImageConfig, ILeaferCanvas, IRenderOptions, IPathDrawer, ILeafData, IPath2D, ILeafComputedData, ILeafInputData, IObject, ILeafRender, ILeafBounds, ILeafHit, ICachedLeaf, IBooleanMap } from '@leafer/interface';
|
|
1
|
+
import { IPointData, IExportFileType, IWindingRule, IPathCommandData, IBlendMode, IMatrixData, ILeaferImage, ITaskItem, IBlob, ILeaf, IPathString, IPathCreator, IBoundsData, ILeaferImageConfig, ILeaferCanvas, IRenderOptions, IPathDrawer, ILeafData, IPath2D, ILeafComputedData, ILeafInputData, IObject, ILeafRender, ILeafBounds, ILeafHit, ICachedLeaf, IBooleanMap } from '@leafer/interface';
|
|
2
2
|
export * from '@leafer/interface';
|
|
3
3
|
|
|
4
4
|
type IPercent = string;
|
|
@@ -114,6 +114,7 @@ interface ILeafPaint {
|
|
|
114
114
|
image?: ILeaferImage;
|
|
115
115
|
loadId?: number;
|
|
116
116
|
patternId?: string;
|
|
117
|
+
patternTask?: ITaskItem;
|
|
117
118
|
data?: ILeafPaintPatternData;
|
|
118
119
|
}
|
|
119
120
|
interface ILeafPaintPatternData {
|
|
@@ -491,6 +492,7 @@ interface IGroupInputData extends IUIBaseInputData {
|
|
|
491
492
|
interface IUI extends IFillAttrData, IStrokeAttrData, ICornerRadiusAttrData, IEffectAttrData, ILeaf {
|
|
492
493
|
__: IUIData;
|
|
493
494
|
parent?: IGroup;
|
|
495
|
+
reset(_data?: IUIInputData): void;
|
|
494
496
|
set(data: IUIInputData): void;
|
|
495
497
|
toJSON(): IUIInputData;
|
|
496
498
|
getPath(curve?: boolean): IPathCommandData;
|
|
@@ -505,11 +507,13 @@ interface IUIData extends IUIComputedData, ILeafData {
|
|
|
505
507
|
locked?: boolean;
|
|
506
508
|
__isFills?: boolean;
|
|
507
509
|
__isStrokes?: boolean;
|
|
510
|
+
__pixelFill?: boolean;
|
|
511
|
+
__pixelStroke?: boolean;
|
|
512
|
+
__opacityFill?: boolean;
|
|
513
|
+
__opacityStroke?: boolean;
|
|
508
514
|
__drawAfterFill?: boolean;
|
|
509
515
|
__isOverflow?: boolean;
|
|
510
516
|
__blendLayer?: boolean;
|
|
511
|
-
__isTranslucentFill?: boolean;
|
|
512
|
-
__isTranslucentStroke?: boolean;
|
|
513
517
|
__useEffect?: boolean;
|
|
514
518
|
path?: IPathCommandData;
|
|
515
519
|
windingRule?: IWindingRule;
|