@leafer/display
Advanced tools
+12
-12
| { | ||
| "name": "@leafer/display", | ||
| "version": "1.9.7", | ||
| "version": "1.9.8", | ||
| "description": "@leafer/display", | ||
@@ -25,16 +25,16 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/math": "1.9.7", | ||
| "@leafer/data": "1.9.7", | ||
| "@leafer/layout": "1.9.7", | ||
| "@leafer/display-module": "1.9.7", | ||
| "@leafer/event": "1.9.7", | ||
| "@leafer/decorator": "1.9.7", | ||
| "@leafer/helper": "1.9.7", | ||
| "@leafer/image": "1.9.7", | ||
| "@leafer/debug": "1.9.7", | ||
| "@leafer/platform": "1.9.7" | ||
| "@leafer/math": "1.9.8", | ||
| "@leafer/data": "1.9.8", | ||
| "@leafer/layout": "1.9.8", | ||
| "@leafer/display-module": "1.9.8", | ||
| "@leafer/event": "1.9.8", | ||
| "@leafer/decorator": "1.9.8", | ||
| "@leafer/helper": "1.9.8", | ||
| "@leafer/image": "1.9.8", | ||
| "@leafer/debug": "1.9.8", | ||
| "@leafer/platform": "1.9.8" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.9.7" | ||
| "@leafer/interface": "1.9.8" | ||
| } | ||
| } |
+3
-3
@@ -1,2 +0,2 @@ | ||
| import { IBoundsData, ILeaf } from '@leafer/interface' | ||
| import { IBoundsData, IFourNumber, ILeaf } from '@leafer/interface' | ||
| import { ChildEvent } from '@leafer/event' | ||
@@ -24,3 +24,3 @@ import { BoundsHelper } from '@leafer/math' | ||
| public __updateStrokeSpread(): number { | ||
| public __updateStrokeSpread(): IFourNumber { | ||
| const { children } = this | ||
@@ -33,3 +33,3 @@ for (let i = 0, len = children.length; i < len; i++) { | ||
| public __updateRenderSpread(): number { | ||
| public __updateRenderSpread(): IFourNumber { | ||
| const { children } = this | ||
@@ -36,0 +36,0 @@ for (let i = 0, len = children.length; i < len; i++) { |
+7
-5
@@ -1,4 +0,4 @@ | ||
| 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' | ||
| 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' | ||
| import { BoundsHelper, IncrementId, MatrixHelper, PointHelper } from '@leafer/math' | ||
| import { LeafData, isUndefined } from '@leafer/data' | ||
| import { LeafData, isUndefined, DataHelper } from '@leafer/data' | ||
| import { LeafLayout } from '@leafer/layout' | ||
@@ -15,2 +15,3 @@ import { LeafDataProxy, LeafMatrix, LeafBounds, LeafEventer, LeafRender } from '@leafer/display-module' | ||
| const { LEAF, create } = IncrementId | ||
| const { stintSet } = DataHelper | ||
| const { toInnerPoint, toOuterPoint, multiplyParent } = MatrixHelper | ||
@@ -309,5 +310,5 @@ const { toOuterOf } = BoundsHelper | ||
| public __updateStrokeSpread(): number { return 0 } | ||
| public __updateStrokeSpread(): IFourNumber { return 0 } | ||
| public __updateRenderSpread(): number { return 0 } | ||
| public __updateRenderSpread(): IFourNumber { return 0 } | ||
@@ -351,3 +352,4 @@ public __onUpdateSize(): void { } | ||
| toOuterOf(this.__layout.renderBounds, cameraWorld, cameraWorld) | ||
| cameraWorld.half !== world.half && (cameraWorld.half = world.half) | ||
| stintSet(cameraWorld, 'half', world.half) | ||
| stintSet(cameraWorld, 'ignorePixelSnap', world.ignorePixelSnap) | ||
| return cameraWorld | ||
@@ -354,0 +356,0 @@ } else { |
+5
-5
@@ -1,2 +0,2 @@ | ||
| import { ILeafInputData, ILeaf, InnerId, ILeaferBase, ILeafData, ILeafLayout, IMatrixWithBoundsScaleData, IMatrixWithBoundsData, IMatrixData, IBoundsData, IMatrixWithScaleData, IHitCanvas, IEventParamsMap, IEventListenerMap, 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'; | ||
| import { ILeafInputData, ILeaf, InnerId, ILeaferBase, ILeafData, ILeafLayout, IMatrixWithBoundsScaleData, IMatrixWithBoundsData, IMatrixData, IBoundsData, IMatrixWithScaleData, IHitCanvas, IEventParamsMap, IEventListenerMap, IFunction, IObject, IValue, IJSONOptions, IFindMethod, IFourNumber, 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'; | ||
| import { LeafData } from '@leafer/data'; | ||
@@ -106,4 +106,4 @@ import { LeafLayout } from '@leafer/layout'; | ||
| __updateNaturalSize(): void; | ||
| __updateStrokeSpread(): number; | ||
| __updateRenderSpread(): number; | ||
| __updateStrokeSpread(): IFourNumber; | ||
| __updateRenderSpread(): IFourNumber; | ||
| __onUpdateSize(): void; | ||
@@ -199,4 +199,4 @@ __updateEraser(value?: boolean): void; | ||
| declare class Branch extends Leaf { | ||
| __updateStrokeSpread(): number; | ||
| __updateRenderSpread(): number; | ||
| __updateStrokeSpread(): IFourNumber; | ||
| __updateRenderSpread(): IFourNumber; | ||
| __updateBoxBounds(_secondLayout?: boolean, bounds?: IBoundsData): void; | ||
@@ -203,0 +203,0 @@ __updateStrokeBounds(bounds?: IBoundsData): void; |
45806
0.38%826
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