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

@leafer/display

Package Overview
Dependencies
Maintainers
1
Versions
118
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leafer/display - npm Package Compare versions

Comparing version
1.4.2
to
1.5.0
+11
-11
package.json
{
"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"
}
}

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

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