@leafer/helper
Advanced tools
+4
-3
| { | ||
| "name": "@leafer/helper", | ||
| "version": "1.7.0", | ||
| "version": "1.8.0", | ||
| "description": "@leafer/helper", | ||
@@ -25,7 +25,8 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/math": "1.7.0" | ||
| "@leafer/math": "1.8.0", | ||
| "@leafer/platform": "1.8.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.7.0" | ||
| "@leafer/interface": "1.8.0" | ||
| } | ||
| } |
@@ -1,3 +0,4 @@ | ||
| import { IAlign, ILeaf, IMatrixData, IPointData, IAxis, ITransition } from '@leafer/interface' | ||
| import { IAlign, ILeaf, IMatrixData, IPointData, IAxis, ITransition, ILeaferCanvas, IBoundsData, IMatrixWithBoundsData } from '@leafer/interface' | ||
| import { MathHelper, MatrixHelper, PointHelper, AroundHelper, getMatrixData, BoundsHelper } from '@leafer/math' | ||
| import { Platform } from '@leafer/platform' | ||
@@ -81,2 +82,8 @@ | ||
| copyCanvasByWorld(leaf: ILeaf, currentCanvas: ILeaferCanvas, fromCanvas: ILeaferCanvas, fromWorld?: IBoundsData, blendMode?: string, onlyResetTransform?: boolean): void { | ||
| if (!fromWorld) fromWorld = leaf.__nowWorld | ||
| if (leaf.__worldFlipped || Platform.fullImageShadow) currentCanvas.copyWorldByReset(fromCanvas, fromWorld, leaf.__nowWorld, blendMode, onlyResetTransform) | ||
| else currentCanvas.copyWorldToInner(fromCanvas, fromWorld as IMatrixWithBoundsData, leaf.__layout.renderBounds, blendMode) | ||
| }, | ||
| // transform | ||
@@ -83,0 +90,0 @@ |
+2
-1
@@ -1,2 +0,2 @@ | ||
| import { ILeaf, IPointData, ITransition, IMatrixData, IAxis, IAlign, IBoundsData, IRenderOptions, ILeafList, ILeafLevelList, IFunction } from '@leafer/interface'; | ||
| import { ILeaf, ILeaferCanvas, IBoundsData, IPointData, ITransition, IMatrixData, IAxis, IAlign, IRenderOptions, ILeafList, ILeafLevelList, IFunction } from '@leafer/interface'; | ||
@@ -11,2 +11,3 @@ declare const LeafHelper: { | ||
| worldHittable(t: ILeaf): boolean; | ||
| copyCanvasByWorld(leaf: ILeaf, currentCanvas: ILeaferCanvas, fromCanvas: ILeaferCanvas, fromWorld?: IBoundsData, blendMode?: string, onlyResetTransform?: boolean): void; | ||
| moveWorld(t: ILeaf, x: number | IPointData, y?: number, isInnerPoint?: boolean, transition?: ITransition): void; | ||
@@ -13,0 +14,0 @@ moveLocal(t: ILeaf, x: number | IPointData, y?: number, transition?: ITransition): void; |
19225
4.6%345
2.07%2
100%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
Updated