@leafer/display
Advanced tools
+12
-12
| { | ||
| "name": "@leafer/display", | ||
| "version": "2.0.3", | ||
| "version": "2.0.4", | ||
| "description": "@leafer/display", | ||
@@ -25,16 +25,16 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/math": "2.0.3", | ||
| "@leafer/data": "2.0.3", | ||
| "@leafer/layout": "2.0.3", | ||
| "@leafer/display-module": "2.0.3", | ||
| "@leafer/event": "2.0.3", | ||
| "@leafer/decorator": "2.0.3", | ||
| "@leafer/helper": "2.0.3", | ||
| "@leafer/image": "2.0.3", | ||
| "@leafer/debug": "2.0.3", | ||
| "@leafer/platform": "2.0.3" | ||
| "@leafer/math": "2.0.4", | ||
| "@leafer/data": "2.0.4", | ||
| "@leafer/layout": "2.0.4", | ||
| "@leafer/display-module": "2.0.4", | ||
| "@leafer/event": "2.0.4", | ||
| "@leafer/decorator": "2.0.4", | ||
| "@leafer/helper": "2.0.4", | ||
| "@leafer/image": "2.0.4", | ||
| "@leafer/debug": "2.0.4", | ||
| "@leafer/platform": "2.0.4" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "2.0.3" | ||
| "@leafer/interface": "2.0.4" | ||
| } | ||
| } |
+5
-3
@@ -418,7 +418,7 @@ 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, IScaleFixed, IFourNumber } from '@leafer/interface' | ||
| } | ||
| toInnerPoint(this.scrollWorldTransform, world, to, distance) | ||
| toInnerPoint(this.worldTransform, world, to, distance) | ||
| } | ||
| public innerToWorld(inner: IPointData, to?: IPointData, distance?: boolean, relative?: ILeaf): void { | ||
| toOuterPoint(this.scrollWorldTransform, inner, to, distance) | ||
| toOuterPoint(this.worldTransform, inner, to, distance) | ||
| if (relative) relative.worldToInner(to ? to : inner, null, distance) | ||
@@ -430,3 +430,5 @@ } | ||
| public getBoxPoint(world: IPointData, relative?: ILeaf, distance?: boolean, change?: boolean): IPointData { | ||
| return this.getBoxPointByInner(this.getInnerPoint(world, relative, distance, change), null, null, true) | ||
| const inner = this.getInnerPoint(world, relative, distance, change) | ||
| if (distance) return inner | ||
| return this.getBoxPointByInner(inner, null, null, true) | ||
| } | ||
@@ -433,0 +435,0 @@ |
46140
0.11%829
0.24%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated