@leafer/display
Advanced tools
+12
-12
| { | ||
| "name": "@leafer/display", | ||
| "version": "1.9.1", | ||
| "version": "1.9.2", | ||
| "description": "@leafer/display", | ||
@@ -25,16 +25,16 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/math": "1.9.1", | ||
| "@leafer/data": "1.9.1", | ||
| "@leafer/layout": "1.9.1", | ||
| "@leafer/display-module": "1.9.1", | ||
| "@leafer/event": "1.9.1", | ||
| "@leafer/decorator": "1.9.1", | ||
| "@leafer/helper": "1.9.1", | ||
| "@leafer/image": "1.9.1", | ||
| "@leafer/debug": "1.9.1", | ||
| "@leafer/platform": "1.9.1" | ||
| "@leafer/math": "1.9.2", | ||
| "@leafer/data": "1.9.2", | ||
| "@leafer/layout": "1.9.2", | ||
| "@leafer/display-module": "1.9.2", | ||
| "@leafer/event": "1.9.2", | ||
| "@leafer/decorator": "1.9.2", | ||
| "@leafer/helper": "1.9.2", | ||
| "@leafer/image": "1.9.2", | ||
| "@leafer/debug": "1.9.2", | ||
| "@leafer/platform": "1.9.2" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.9.1" | ||
| "@leafer/interface": "1.9.2" | ||
| } | ||
| } |
+7
-7
@@ -1,2 +0,2 @@ | ||
| import { ILeaf } from '@leafer/interface' | ||
| import { IBoundsData, ILeaf } from '@leafer/interface' | ||
| import { ChildEvent } from '@leafer/event' | ||
@@ -40,12 +40,12 @@ import { BoundsHelper } from '@leafer/math' | ||
| public __updateBoxBounds(): void { | ||
| setListWithFn(this.__layout.boxBounds, this.children, this.__hasMask ? maskLocalBoxBounds : localBoxBounds) | ||
| public __updateBoxBounds(_secondLayout?: boolean, bounds?: IBoundsData): void { | ||
| setListWithFn(bounds || this.__layout.boxBounds, this.children, this.__hasMask ? maskLocalBoxBounds : localBoxBounds) | ||
| } | ||
| public __updateStrokeBounds(): void { | ||
| setListWithFn(this.__layout.strokeBounds, this.children, this.__hasMask ? maskLocalStrokeBounds : localStrokeBounds) | ||
| public __updateStrokeBounds(bounds?: IBoundsData): void { | ||
| setListWithFn(bounds || this.__layout.strokeBounds, this.children, this.__hasMask ? maskLocalStrokeBounds : localStrokeBounds) | ||
| } | ||
| public __updateRenderBounds(): void { | ||
| setListWithFn(this.__layout.renderBounds, this.children, this.__hasMask ? maskLocalRenderBounds : localRenderBounds) | ||
| public __updateRenderBounds(bounds?: IBoundsData): void { | ||
| setListWithFn(bounds || this.__layout.renderBounds, this.children, this.__hasMask ? maskLocalRenderBounds : localRenderBounds) | ||
| } | ||
@@ -52,0 +52,0 @@ |
+8
-4
@@ -69,2 +69,5 @@ 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 } from '@leafer/interface' | ||
| public __scrollWorld?: IMatrixWithBoundsScaleData | ||
| public get scrollWorldTransform(): IMatrixWithScaleData { this.updateLayout(); return this.__scrollWorld || this.__world } | ||
| // now bounds | ||
@@ -78,3 +81,3 @@ public get boxBounds(): IBoundsData { return this.getBounds('box', 'inner') } | ||
| // now opacity | ||
| public get worldOpacity(): number { this.__layout.update(); return this.__worldOpacity } | ||
| public get worldOpacity(): number { this.updateLayout(); return this.__worldOpacity } | ||
@@ -108,2 +111,3 @@ public __level: number // layer level 0 -> branch -> branch -> deep | ||
| public children?: ILeaf[] | ||
| public topChildren?: ILeaf[] | ||
@@ -291,9 +295,9 @@ public destroyed: boolean | ||
| public __updateBoxBounds(): void { } | ||
| public __updateBoxBounds(_secondLayout?: boolean, _bounds?: IBoundsData): void { } | ||
| public __updateContentBounds(): void { } | ||
| public __updateStrokeBounds(): void { } | ||
| public __updateStrokeBounds(_bounds?: IBoundsData): void { } | ||
| public __updateRenderBounds(): void { } | ||
| public __updateRenderBounds(_bounds?: IBoundsData): void { } | ||
@@ -300,0 +304,0 @@ |
+9
-6
@@ -33,2 +33,4 @@ import { ILeaf, InnerId, ILeaferBase, ILeafData, ILeafLayout, IMatrixWithBoundsScaleData, IMatrixWithBoundsData, IMatrixData, IBoundsData, IMatrixWithScaleData, IHitCanvas, IEventParamsMap, IEventListenerMap, ILeafInputData, IFunction, IObject, IValue, IJSONOptions, IFindMethod, ILeaferCanvas, IRenderOptions, IScaleFixed, IScaleData, ILocationType, IBoundsType, ILayoutBoundsData, IPointData, ITransition, IAlign, IAxis, IRadiusPointData, IMotionPathData, IUnitData, IRotationPointData, IEventParams, IEventListener, IEventOption, IEventListenerId, IEvent, IValueFunction, IAttrDecorator } from '@leafer/interface'; | ||
| get localTransform(): IMatrixData; | ||
| __scrollWorld?: IMatrixWithBoundsScaleData; | ||
| get scrollWorldTransform(): IMatrixWithScaleData; | ||
| get boxBounds(): IBoundsData; | ||
@@ -57,2 +59,3 @@ get renderBounds(): IBoundsData; | ||
| children?: ILeaf[]; | ||
| topChildren?: ILeaf[]; | ||
| destroyed: boolean; | ||
@@ -98,6 +101,6 @@ constructor(data?: ILeafInputData); | ||
| __updateLocalRenderBounds(): void; | ||
| __updateBoxBounds(): void; | ||
| __updateBoxBounds(_secondLayout?: boolean, _bounds?: IBoundsData): void; | ||
| __updateContentBounds(): void; | ||
| __updateStrokeBounds(): void; | ||
| __updateRenderBounds(): void; | ||
| __updateStrokeBounds(_bounds?: IBoundsData): void; | ||
| __updateRenderBounds(_bounds?: IBoundsData): void; | ||
| __updateAutoLayout(): void; | ||
@@ -200,5 +203,5 @@ __updateFlowLayout(): void; | ||
| __updateRenderSpread(): number; | ||
| __updateBoxBounds(): void; | ||
| __updateStrokeBounds(): void; | ||
| __updateRenderBounds(): void; | ||
| __updateBoxBounds(_secondLayout?: boolean, bounds?: IBoundsData): void; | ||
| __updateStrokeBounds(bounds?: IBoundsData): void; | ||
| __updateRenderBounds(bounds?: IBoundsData): void; | ||
| __updateSortChildren(): void; | ||
@@ -205,0 +208,0 @@ add(child: ILeaf, index?: number): void; |
45570
1.63%824
0.73%+ 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