@leafer/decorator
Advanced tools
+5
-5
| { | ||
| "name": "@leafer/decorator", | ||
| "version": "1.9.1", | ||
| "version": "1.9.2", | ||
| "description": "@leafer/decorator", | ||
@@ -25,9 +25,9 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/platform": "1.9.1", | ||
| "@leafer/data": "1.9.1", | ||
| "@leafer/debug": "1.9.1" | ||
| "@leafer/platform": "1.9.2", | ||
| "@leafer/data": "1.9.2", | ||
| "@leafer/debug": "1.9.2" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.9.1" | ||
| "@leafer/interface": "1.9.2" | ||
| } | ||
| } |
+12
-1
@@ -1,2 +0,2 @@ | ||
| import { ILeafData, ILeaf, IObject, IValue, ILeafAttrDescriptor, ILeafAttrDescriptorFn, IValueFunction } from '@leafer/interface' | ||
| import { ILeafData, ILeaf, IObject, IValue, ILeafAttrDescriptor, ILeafAttrDescriptorFn, IValueFunction, IMatrixWithBoundsScaleData } from '@leafer/interface' | ||
| import { DataHelper, isEmptyData, isObject, isUndefined } from '@leafer/data' | ||
@@ -41,2 +41,13 @@ import { Debug } from '@leafer/debug' | ||
| export function scrollType(defaultValue?: IValue, checkFiniteNumber?: boolean) { | ||
| return decorateLeafAttr(defaultValue, (key: string) => attr({ | ||
| set(value: IValue) { | ||
| if (this.__setAttr(key, value, checkFiniteNumber)) { | ||
| this.__layout.matrixChanged || this.__layout.matrixChange() | ||
| this.__scrollWorld || (this.__scrollWorld = {} as IMatrixWithBoundsScaleData) | ||
| } | ||
| } | ||
| })) | ||
| } | ||
| export function autoLayoutType(defaultValue?: IValue) { | ||
@@ -43,0 +54,0 @@ return decorateLeafAttr(defaultValue, (key: string) => attr({ |
+1
-1
@@ -1,4 +0,4 @@ | ||
| export { defineLeafAttr, decorateLeafAttr, attr, dataType, positionType, autoLayoutType, boundsType, doBoundsType, naturalBoundsType, affectStrokeBoundsType, doStrokeType, strokeType, affectRenderBoundsType, scaleType, rotationType, surfaceType, opacityType, visibleType, sortType, maskType, eraserType, hitType, pathType, pathInputType, cursorType, dataProcessor, layoutProcessor, defineDataProcessor } from './data' | ||
| export { defineLeafAttr, decorateLeafAttr, attr, dataType, positionType, scrollType, autoLayoutType, boundsType, doBoundsType, naturalBoundsType, affectStrokeBoundsType, doStrokeType, strokeType, affectRenderBoundsType, scaleType, rotationType, surfaceType, opacityType, visibleType, sortType, maskType, eraserType, hitType, pathType, pathInputType, cursorType, dataProcessor, layoutProcessor, defineDataProcessor } from './data' | ||
| export { useModule, rewrite, rewriteAble } from './rewrite' | ||
| export { defineKey, getDescriptor, createDescriptor } from './object' | ||
| export { registerUI, registerUIEvent } from './class' |
+2
-1
@@ -8,2 +8,3 @@ import { ILeaf, IValue, ILeafAttrDescriptor, ILeafAttrDescriptorFn, IObject, IValueFunction, IFunction } from '@leafer/interface'; | ||
| declare function positionType(defaultValue?: IValue, checkFiniteNumber?: boolean): (target: ILeaf, key: string) => void; | ||
| declare function scrollType(defaultValue?: IValue, checkFiniteNumber?: boolean): (target: ILeaf, key: string) => void; | ||
| declare function autoLayoutType(defaultValue?: IValue): (target: ILeaf, key: string) => void; | ||
@@ -47,2 +48,2 @@ declare function scaleType(defaultValue?: IValue, checkFiniteNumber?: boolean): (target: ILeaf, key: string) => void; | ||
| export { affectRenderBoundsType, affectStrokeBoundsType, attr, autoLayoutType, boundsType, createDescriptor, cursorType, dataProcessor, dataType, decorateLeafAttr, defineDataProcessor, defineKey, defineLeafAttr, doBoundsType, doStrokeType, eraserType, getDescriptor, hitType, layoutProcessor, maskType, naturalBoundsType, opacityType, pathInputType, pathType, positionType, registerUI, registerUIEvent, rewrite, rewriteAble, rotationType, scaleType, sortType, strokeType, surfaceType, useModule, visibleType }; | ||
| export { affectRenderBoundsType, affectStrokeBoundsType, attr, autoLayoutType, boundsType, createDescriptor, cursorType, dataProcessor, dataType, decorateLeafAttr, defineDataProcessor, defineKey, defineLeafAttr, doBoundsType, doStrokeType, eraserType, getDescriptor, hitType, layoutProcessor, maskType, naturalBoundsType, opacityType, pathInputType, pathType, positionType, registerUI, registerUIEvent, rewrite, rewriteAble, rotationType, scaleType, scrollType, sortType, strokeType, surfaceType, useModule, visibleType }; |
22087
2.87%428
2.64%+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated