You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@leafer/decorator

Package Overview
Dependencies
Maintainers
1
Versions
116
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer/decorator - npm Package Compare versions

Comparing version
1.9.1
to
1.9.2
+5
-5
package.json
{
"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"
}
}

@@ -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,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'

@@ -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 };