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
117
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.7.0
to
1.8.0
+12
-11
package.json
{
"name": "@leafer/display",
"version": "1.7.0",
"version": "1.8.0",
"description": "@leafer/display",

@@ -25,15 +25,16 @@ "author": "Chao (Leafer) Wan",

"dependencies": {
"@leafer/math": "1.7.0",
"@leafer/data": "1.7.0",
"@leafer/layout": "1.7.0",
"@leafer/display-module": "1.7.0",
"@leafer/event": "1.7.0",
"@leafer/decorator": "1.7.0",
"@leafer/helper": "1.7.0",
"@leafer/debug": "1.7.0",
"@leafer/platform": "1.7.0"
"@leafer/math": "1.8.0",
"@leafer/data": "1.8.0",
"@leafer/layout": "1.8.0",
"@leafer/display-module": "1.8.0",
"@leafer/event": "1.8.0",
"@leafer/decorator": "1.8.0",
"@leafer/helper": "1.8.0",
"@leafer/image": "1.8.0",
"@leafer/debug": "1.8.0",
"@leafer/platform": "1.8.0"
},
"devDependencies": {
"@leafer/interface": "1.7.0"
"@leafer/interface": "1.8.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, IEventParamsMap, IEventOption, IAxis, IMotionPathData, IUnitData, IRotationPointData, ITransition, IValueFunction, IEventParams } 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, IEventParamsMap, IEventOption, IAxis, IMotionPathData, IUnitData, IRotationPointData, ITransition, IValueFunction, IEventParams, IScaleData } from '@leafer/interface'
import { BoundsHelper, IncrementId, MatrixHelper, PointHelper } from '@leafer/math'

@@ -9,5 +9,7 @@ import { LeafData } from '@leafer/data'

import { ChildEvent } from '@leafer/event'
import { ImageManager } from '@leafer/image'
import { Plugin } from '@leafer/debug'
const tempScaleData = {} as IScaleData
const { LEAF, create } = IncrementId

@@ -351,2 +353,16 @@ const { toInnerPoint, toOuterPoint, multiplyParent } = MatrixHelper

public getClampRenderScale(): number {
let { scaleX } = this.__nowWorld || this.__world
if (scaleX < 0) scaleX = -scaleX
return scaleX > 1 ? scaleX : 1
}
public getRenderScaleData(abs?: boolean, scaleFixed?: boolean): IScaleData {
const { scaleX, scaleY } = ImageManager.patternLocked ? this.__world : this.__nowWorld
if (scaleFixed) tempScaleData.scaleX = tempScaleData.scaleY = 1
else if (abs) tempScaleData.scaleX = scaleX < 0 ? -scaleX : scaleX, tempScaleData.scaleY = scaleY < 0 ? -scaleY : scaleY
else tempScaleData.scaleX = scaleX, tempScaleData.scaleY = scaleY
return tempScaleData
}
public getTransform(relative?: ILocationType | ILeaf): IMatrixData {

@@ -353,0 +369,0 @@ return this.__layout.getTransform(relative || 'local')

@@ -1,2 +0,2 @@

import { ILeaf, InnerId, ILeaferBase, ILeafData, ILeafLayout, IMatrixWithBoundsScaleData, IMatrixWithBoundsData, IMatrixData, IBoundsData, IMatrixWithScaleData, IHitCanvas, IEventParamsMap, IEventListenerMap, ILeafInputData, IFunction, IObject, IValue, IJSONOptions, IFindMethod, ILeaferCanvas, IRenderOptions, ILocationType, IBoundsType, ILayoutBoundsData, IPointData, ITransition, IAlign, IAxis, IRadiusPointData, IMotionPathData, IUnitData, IRotationPointData, IEventParams, IEventListener, IEventOption, IEventListenerId, IEvent, IValueFunction, IAttrDecorator } from '@leafer/interface';
import { ILeaf, InnerId, ILeaferBase, ILeafData, ILeafLayout, IMatrixWithBoundsScaleData, IMatrixWithBoundsData, IMatrixData, IBoundsData, IMatrixWithScaleData, IHitCanvas, IEventParamsMap, IEventListenerMap, ILeafInputData, IFunction, IObject, IValue, IJSONOptions, IFindMethod, ILeaferCanvas, IRenderOptions, IScaleData, ILocationType, IBoundsType, ILayoutBoundsData, IPointData, ITransition, IAlign, IAxis, IRadiusPointData, IMotionPathData, IUnitData, IRotationPointData, IEventParams, IEventListener, IEventOption, IEventListenerId, IEvent, IValueFunction, IAttrDecorator } from '@leafer/interface';
import { LeafData } from '@leafer/data';

@@ -111,2 +111,4 @@ import { LeafLayout } from '@leafer/layout';

__getNowWorld(options: IRenderOptions): IMatrixWithBoundsScaleData;
getClampRenderScale(): number;
getRenderScaleData(abs?: boolean, scaleFixed?: boolean): IScaleData;
getTransform(relative?: ILocationType | ILeaf): IMatrixData;

@@ -113,0 +115,0 @@ getBounds(type?: IBoundsType, relative?: ILocationType | ILeaf): IBoundsData;