@leafer-ui/interface 1.12.3 → 1.12.4
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/IType.ts +5 -0
- package/types/index.d.ts +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@leafer-ui/interface",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.4",
|
|
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.12.
|
|
25
|
+
"@leafer/interface": "1.12.4"
|
|
26
26
|
}
|
|
27
27
|
}
|
package/src/type/IType.ts
CHANGED
|
@@ -96,6 +96,7 @@ export interface IImagePaint extends IPaintBase {
|
|
|
96
96
|
|
|
97
97
|
repeat?: IRepeat
|
|
98
98
|
gap?: IGap | IPointGap
|
|
99
|
+
interlace?: number | IInterlace // 平铺图案交错排列
|
|
99
100
|
|
|
100
101
|
changeful?: boolean // 会频繁变化,不生成图案(有特殊性能优化,一般用于游戏精灵、动图场景)
|
|
101
102
|
sync?: boolean // 同步显示,不走任务列表生成图案
|
|
@@ -114,6 +115,10 @@ export interface IImageFilters {
|
|
|
114
115
|
}
|
|
115
116
|
export type IImagePaintMode = 'normal' | 'cover' | 'fit' | 'stretch' | 'clip' | 'repeat'
|
|
116
117
|
export type IRepeat = boolean | 'x' | 'y' | IPointData
|
|
118
|
+
export interface IInterlace {
|
|
119
|
+
type: IAxis
|
|
120
|
+
offset: number
|
|
121
|
+
}
|
|
117
122
|
|
|
118
123
|
// 描边
|
|
119
124
|
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, IAxis, IPathCommandData, IAxisReverse, IDirection, IWindingRule, IFilter, IMatrixData, ILeaferImage, ITaskItem, INumber, IString, IBoolean, IUnitData, IAnimateOptions, IAnimateEasing, IEventer, IObject, IEventParamsMap, IAnimateEasingFunction, IAnimateEnding, ITransition, IPercentData, 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,6 +76,7 @@ interface IImagePaint extends IPaintBase {
|
|
|
76
76
|
clipSize?: ISizeData;
|
|
77
77
|
repeat?: IRepeat;
|
|
78
78
|
gap?: IGap | IPointGap;
|
|
79
|
+
interlace?: number | IInterlace;
|
|
79
80
|
changeful?: boolean;
|
|
80
81
|
sync?: boolean;
|
|
81
82
|
showProgress?: boolean | IColorString;
|
|
@@ -93,6 +94,10 @@ interface IImageFilters {
|
|
|
93
94
|
}
|
|
94
95
|
type IImagePaintMode = 'normal' | 'cover' | 'fit' | 'stretch' | 'clip' | 'repeat';
|
|
95
96
|
type IRepeat = boolean | 'x' | 'y' | IPointData;
|
|
97
|
+
interface IInterlace {
|
|
98
|
+
type: IAxis;
|
|
99
|
+
offset: number;
|
|
100
|
+
}
|
|
96
101
|
type IStrokeAlign = 'inside' | 'outside' | 'center';
|
|
97
102
|
type IStrokeCap = 'none' | 'round' | 'square';
|
|
98
103
|
type IStrokeJoin = 'bevel' | 'round' | 'miter';
|