@leafer-ui/interface 1.12.4 → 2.0.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 +2 -2
- package/src/type/IComputedType.ts +2 -1
- package/src/type/IType.ts +2 -6
- package/types/index.d.ts +3 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/interface",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.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": "
|
|
25
|
+
"@leafer/interface": "2.0.0"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IBlendMode, IDirection, ILeaferImage, IMatrixData, IPointData, IScaleFixed, ITaskItem } from '@leafer/interface'
|
|
1
|
+
import { IBlendMode, IDirection, IInterlace, ILeaferImage, IMatrixData, IPointData, IScaleFixed, ITaskItem } from '@leafer/interface'
|
|
2
2
|
|
|
3
3
|
import { IColorString } from './IStringType'
|
|
4
4
|
import { IStrokeAlign, IStrokeJoin, IStrokeCap, IImagePaintMode, IImageFilters, IPaint } from './IType'
|
|
@@ -36,6 +36,7 @@ export interface ILeafPaintPatternData {
|
|
|
36
36
|
filters?: IImageFilters
|
|
37
37
|
mode?: IImagePaintMode
|
|
38
38
|
repeat?: 'repeat' | 'repeat-x' | 'repeat-y'
|
|
39
|
+
interlace?: IInterlace
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
export type ILeafFill = ILeafPaint
|
package/src/type/IType.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IPointData, IPathCommandData, IWindingRule, IBlendMode, IExportFileType, IFourNumber, IAlign, IUnitPointData, IAxis, IAxisReverse, IFilter, IOptionSizeData, ISizeData, IGap, IPointGap, IScaleFixed, IDirection, IImageLOD } from '@leafer/interface'
|
|
1
|
+
import { IPointData, IPathCommandData, IWindingRule, IBlendMode, IExportFileType, IFourNumber, IAlign, IUnitPointData, IAxis, IAxisReverse, IInterlace, IFilter, IOptionSizeData, ISizeData, IGap, IPointGap, IScaleFixed, IDirection, IImageLOD, IPercentData } from '@leafer/interface'
|
|
2
2
|
import { IColorString, IPaintString } from './IStringType'
|
|
3
3
|
import { IStrokeStyle } from '../ICommonAttr'
|
|
4
4
|
|
|
@@ -96,7 +96,7 @@ export interface IImagePaint extends IPaintBase {
|
|
|
96
96
|
|
|
97
97
|
repeat?: IRepeat
|
|
98
98
|
gap?: IGap | IPointGap
|
|
99
|
-
interlace?: number | IInterlace
|
|
99
|
+
interlace?: number | IPercentData | IInterlace // 平铺图案交错排列
|
|
100
100
|
|
|
101
101
|
changeful?: boolean // 会频繁变化,不生成图案(有特殊性能优化,一般用于游戏精灵、动图场景)
|
|
102
102
|
sync?: boolean // 同步显示,不走任务列表生成图案
|
|
@@ -115,10 +115,6 @@ export interface IImageFilters {
|
|
|
115
115
|
}
|
|
116
116
|
export type IImagePaintMode = 'normal' | 'cover' | 'fit' | 'stretch' | 'clip' | 'repeat'
|
|
117
117
|
export type IRepeat = boolean | 'x' | 'y' | IPointData
|
|
118
|
-
export interface IInterlace {
|
|
119
|
-
type: IAxis
|
|
120
|
-
offset: number
|
|
121
|
-
}
|
|
122
118
|
|
|
123
119
|
// 描边
|
|
124
120
|
export type IStrokeAlign = 'inside' | 'outside' | 'center'
|
package/types/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IBlendMode, IScaleFixed, IAlign, IUnitPointData, IImageLOD, IExportFileType, IFourNumber, IPointData, IOptionSizeData, ISizeData, IGap, IPointGap,
|
|
1
|
+
import { IBlendMode, IScaleFixed, IAlign, IUnitPointData, IImageLOD, IExportFileType, IFourNumber, IPointData, IOptionSizeData, ISizeData, IGap, IPointGap, IPercentData, IInterlace, IPathCommandData, IAxis, IAxisReverse, IDirection, IWindingRule, IFilter, IMatrixData, ILeaferImage, ITaskItem, INumber, IString, IBoolean, IUnitData, IAnimateOptions, IAnimateEasing, IEventer, IObject, IEventParamsMap, IAnimateEasingFunction, IAnimateEnding, ITransition, IBounds, ILeafInputData, ILeaf as ILeaf$1, ILeafComputedData, ILeafData, IBoundsData, IValue, IPathCreator, IJSONOptions, IFindCondition, IAnswer, IPathString, IPathDrawer, ILeaferCanvas, IRenderOptions, IExportOptions, IExportResult, IPickOptions, IPickResult, IAround, ICanvasContext2DSettings, ICanvasContext2D, ILeaferAttrData, IControl, ILeaferType, ILeaferConfig, ILeafRender, ILeafBounds, ILeafHit, ICachedLeaf, IScaleData as IScaleData$1, IBooleanMap, IFunction, IMatrixWithBoundsScaleData } from '@leafer/interface';
|
|
2
2
|
export * from '@leafer/interface';
|
|
3
3
|
import { IObject as IObject$1, IEditSize, IStroke as IStroke$1, IFourNumber as IFourNumber$1, IFill as IFill$1, IBoxInputData as IBoxInputData$1, IRectInputData as IRectInputData$1, IColorString as IColorString$1, IDirection4, ICursorType, IImageCursor, IAlign as IAlign$1, IUnitPointData as IUnitPointData$1, IUIInputData as IUIInputData$1, IShortcutKeysCheck, IShortcutKeys, IUI as IUI$1, IPointData as IPointData$1, IScaleData, ISkewData, IGroup as IGroup$1, ISelectorProxy, IBox as IBox$1, ILayoutBoundsData, IKeyEvent, IUIEvent, IDragEvent, IMoveEvent, IZoomEvent, IRotateEvent, ITransition as ITransition$1, ILeafList, ILeafer as ILeafer$1, ILeaf, IGroupInputData as IGroupInputData$1, IStateName as IStateName$1, IString as IString$1, IBoolean as IBoolean$1, IStateStyle as IStateStyle$1 } from '@leafer-ui/interface';
|
|
4
4
|
|
|
@@ -76,7 +76,7 @@ interface IImagePaint extends IPaintBase {
|
|
|
76
76
|
clipSize?: ISizeData;
|
|
77
77
|
repeat?: IRepeat;
|
|
78
78
|
gap?: IGap | IPointGap;
|
|
79
|
-
interlace?: number | IInterlace;
|
|
79
|
+
interlace?: number | IPercentData | IInterlace;
|
|
80
80
|
changeful?: boolean;
|
|
81
81
|
sync?: boolean;
|
|
82
82
|
showProgress?: boolean | IColorString;
|
|
@@ -94,10 +94,6 @@ interface IImageFilters {
|
|
|
94
94
|
}
|
|
95
95
|
type IImagePaintMode = 'normal' | 'cover' | 'fit' | 'stretch' | 'clip' | 'repeat';
|
|
96
96
|
type IRepeat = boolean | 'x' | 'y' | IPointData;
|
|
97
|
-
interface IInterlace {
|
|
98
|
-
type: IAxis;
|
|
99
|
-
offset: number;
|
|
100
|
-
}
|
|
101
97
|
type IStrokeAlign = 'inside' | 'outside' | 'center';
|
|
102
98
|
type IStrokeCap = 'none' | 'round' | 'square';
|
|
103
99
|
type IStrokeJoin = 'bevel' | 'round' | 'miter';
|
|
@@ -194,6 +190,7 @@ interface ILeafPaintPatternData {
|
|
|
194
190
|
filters?: IImageFilters;
|
|
195
191
|
mode?: IImagePaintMode;
|
|
196
192
|
repeat?: 'repeat' | 'repeat-x' | 'repeat-y';
|
|
193
|
+
interlace?: IInterlace;
|
|
197
194
|
}
|
|
198
195
|
type ILeafFill = ILeafPaint;
|
|
199
196
|
interface ILeafStrokePaint extends ILeafPaint {
|