@leafer/display
Advanced tools
+11
-11
| { | ||
| "name": "@leafer/display", | ||
| "version": "1.4.2", | ||
| "version": "1.5.0", | ||
| "description": "@leafer/display", | ||
@@ -25,15 +25,15 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/math": "1.4.2", | ||
| "@leafer/data": "1.4.2", | ||
| "@leafer/layout": "1.4.2", | ||
| "@leafer/display-module": "1.4.2", | ||
| "@leafer/event": "1.4.2", | ||
| "@leafer/decorator": "1.4.2", | ||
| "@leafer/helper": "1.4.2", | ||
| "@leafer/debug": "1.4.2", | ||
| "@leafer/platform": "1.4.2" | ||
| "@leafer/math": "1.5.0", | ||
| "@leafer/data": "1.5.0", | ||
| "@leafer/layout": "1.5.0", | ||
| "@leafer/display-module": "1.5.0", | ||
| "@leafer/event": "1.5.0", | ||
| "@leafer/decorator": "1.5.0", | ||
| "@leafer/helper": "1.5.0", | ||
| "@leafer/debug": "1.5.0", | ||
| "@leafer/platform": "1.5.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.4.2" | ||
| "@leafer/interface": "1.5.0" | ||
| } | ||
| } |
+4
-4
@@ -1,2 +0,2 @@ | ||
| import { ILeaferBase, ILeaf, ILeafInputData, ILeafData, ILeaferCanvas, IRenderOptions, IBoundsType, ILocationType, IMatrixWithBoundsData, ILayoutBoundsData, IValue, ILeafLayout, InnerId, IHitCanvas, IRadiusPointData, IEventListenerMap, IEventListener, IEventListenerId, IEvent, IObject, IFunction, IPointData, IBoundsData, IBranch, IFindMethod, IMatrixData, IAttrDecorator, IMatrixWithBoundsScaleData, IMatrixWithScaleData, IAlign, IJSONOptions, IEventMap, IEventOption, IAxis, IMotionPathData, IUnitData, IRotationPointData, ITransition } from '@leafer/interface' | ||
| import { ILeaferBase, ILeaf, ILeafInputData, ILeafData, ILeaferCanvas, IRenderOptions, IBoundsType, ILocationType, IMatrixWithBoundsData, ILayoutBoundsData, IValue, ILeafLayout, InnerId, IHitCanvas, IRadiusPointData, IEventListenerMap, IEventListener, IEventListenerId, IEvent, IObject, IFunction, IPointData, IBoundsData, IBranch, IFindMethod, IMatrixData, IAttrDecorator, IMatrixWithBoundsScaleData, IMatrixWithScaleData, IAlign, IJSONOptions, IEventMap, IEventOption, IAxis, IMotionPathData, IUnitData, IRotationPointData, ITransition, IValueFunction } from '@leafer/interface' | ||
| import { BoundsHelper, IncrementId, MatrixHelper, PointHelper } from '@leafer/math' | ||
@@ -652,9 +652,9 @@ import { LeafData } from '@leafer/data' | ||
| static changeAttr(attrName: string, defaultValue: IValue, fn?: IAttrDecorator): void { | ||
| static changeAttr(attrName: string, defaultValue: IValue | IValueFunction, fn?: IAttrDecorator): void { | ||
| fn ? this.addAttr(attrName, defaultValue, fn) : defineDataProcessor(this.prototype, attrName, defaultValue) | ||
| } | ||
| static addAttr(attrName: string, defaultValue: IValue, fn?: IAttrDecorator): void { | ||
| static addAttr(attrName: string, defaultValue: IValue | IValueFunction, fn?: IAttrDecorator, helpValue?: IValue): void { | ||
| if (!fn) fn = boundsType | ||
| fn(defaultValue)(this.prototype, attrName) | ||
| fn(defaultValue, helpValue)(this.prototype, attrName) | ||
| } | ||
@@ -661,0 +661,0 @@ |
+3
-3
@@ -1,2 +0,2 @@ | ||
| import { ILeaf, InnerId, ILeaferBase, ILeafData, ILeafLayout, IMatrixWithBoundsScaleData, IMatrixWithBoundsData, IMatrixData, IBoundsData, IMatrixWithScaleData, IHitCanvas, IEventMap, IEventListenerMap, ILeafInputData, IFunction, IObject, IValue, IJSONOptions, IFindMethod, ILeaferCanvas, IRenderOptions, ILocationType, IBoundsType, ILayoutBoundsData, IPointData, ITransition, IAlign, IAxis, IRadiusPointData, IMotionPathData, IUnitData, IRotationPointData, IEventListener, IEventOption, IEventListenerId, IEvent, IAttrDecorator } from '@leafer/interface'; | ||
| import { ILeaf, InnerId, ILeaferBase, ILeafData, ILeafLayout, IMatrixWithBoundsScaleData, IMatrixWithBoundsData, IMatrixData, IBoundsData, IMatrixWithScaleData, IHitCanvas, IEventMap, IEventListenerMap, ILeafInputData, IFunction, IObject, IValue, IJSONOptions, IFindMethod, ILeaferCanvas, IRenderOptions, ILocationType, IBoundsType, ILayoutBoundsData, IPointData, ITransition, IAlign, IAxis, IRadiusPointData, IMotionPathData, IUnitData, IRotationPointData, IEventListener, IEventOption, IEventListenerId, IEvent, IValueFunction, IAttrDecorator } from '@leafer/interface'; | ||
| import { LeafData } from '@leafer/data'; | ||
@@ -183,4 +183,4 @@ import { LeafLayout } from '@leafer/layout'; | ||
| hasEvent(_type: string, _capture?: boolean): boolean; | ||
| static changeAttr(attrName: string, defaultValue: IValue, fn?: IAttrDecorator): void; | ||
| static addAttr(attrName: string, defaultValue: IValue, fn?: IAttrDecorator): void; | ||
| static changeAttr(attrName: string, defaultValue: IValue | IValueFunction, fn?: IAttrDecorator): void; | ||
| static addAttr(attrName: string, defaultValue: IValue | IValueFunction, fn?: IAttrDecorator, helpValue?: IValue): void; | ||
| __emitLifeEvent(type: string): void; | ||
@@ -187,0 +187,0 @@ destroy(): void; |
43073
0.35%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated