@leafer-ui/display
Advanced tools
+8
-8
| { | ||
| "name": "@leafer-ui/display", | ||
| "version": "1.9.3", | ||
| "version": "1.9.4", | ||
| "description": "@leafer-ui/display", | ||
@@ -25,12 +25,12 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/core": "1.9.3", | ||
| "@leafer-ui/data": "1.9.3", | ||
| "@leafer-ui/display-module": "1.9.3", | ||
| "@leafer-ui/decorator": "1.9.3", | ||
| "@leafer-ui/external": "1.9.3" | ||
| "@leafer/core": "1.9.4", | ||
| "@leafer-ui/data": "1.9.4", | ||
| "@leafer-ui/display-module": "1.9.4", | ||
| "@leafer-ui/decorator": "1.9.4", | ||
| "@leafer-ui/external": "1.9.4" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.9.3", | ||
| "@leafer-ui/interface": "1.9.3" | ||
| "@leafer/interface": "1.9.4", | ||
| "@leafer-ui/interface": "1.9.4" | ||
| } | ||
| } |
+7
-14
@@ -43,3 +43,3 @@ import { ILeaferCanvas, IRenderOptions, IBoolean, INumber, IScrollPointData } from '@leafer/interface' | ||
| // scroller rewrite | ||
| // scroller will rewrite | ||
| public scrollConfig?: IScrollConfig | ||
@@ -103,6 +103,6 @@ | ||
| public __updateRenderBounds(): void { | ||
| let isOverflow: boolean | ||
| let isOverflow: boolean, isScrollMode: boolean | ||
| if (this.children.length) { | ||
| const data = this.__, layout = this.__layout, { renderBounds, boxBounds } = layout | ||
| const data = this.__, layout = this.__layout, { renderBounds, boxBounds } = layout, { overflow } = data | ||
@@ -112,3 +112,3 @@ const childrenRenderBounds = layout.childrenRenderBounds || (layout.childrenRenderBounds = getBoundsData()) | ||
| if (data.overflow.includes('scroll')) { // 增加滚动逻辑 | ||
| if (isScrollMode = overflow.includes('scroll')) { // 检查滚动逻辑 | ||
| add(childrenRenderBounds, boxBounds) | ||
@@ -121,3 +121,3 @@ scroll(childrenRenderBounds, data as IScrollPointData) | ||
| isOverflow = !includes(boxBounds, childrenRenderBounds) | ||
| if (isOverflow && data.overflow === 'show') add(renderBounds, childrenRenderBounds) | ||
| if (isOverflow && overflow === 'show') add(renderBounds, childrenRenderBounds) | ||
| } else this.__updateRectRenderBounds() | ||
@@ -127,3 +127,3 @@ | ||
| this.__checkScroll() | ||
| this.__checkScroll(isScrollMode) | ||
| } | ||
@@ -134,14 +134,7 @@ | ||
| public __updateWorldBounds(): void { | ||
| if (this.hasScroller) this.__updateScroll() | ||
| super.__updateWorldBounds() | ||
| } | ||
| // scroller will rewrite | ||
| public __checkScroll(): void { } | ||
| public __checkScroll(_isScrollMode: boolean): void { } | ||
| public __updateScroll(): void { } | ||
| @rewrite(rect.__updateChange) | ||
@@ -148,0 +141,0 @@ public __updateRectChange(): void { } |
+1
-3
@@ -301,5 +301,3 @@ import { IString, INumber, IBoolean, IMaskType, IEraserType, IAlign, IUnitPointData, IPathCommandData, IPathCommandObject, IPathString, IWindingRule, IFlowType, IFourNumber, IGap, IPointGap, IFlowAlign, IFlowAxisAlign, IFlowWrap, IFlowBoxType, IAutoSize, IAutoBoxData, IConstraint, IRangeSize, IAxis, IBoundsData, IDragBoundsType, IHitType, ICursorType, IScaleFixed, IFilter, ITransition, IUnitData, IObject, IPointData, IPathCreator, IValue, IFindCondition, ILeaferCanvas, IPathDrawer, ILeaferImage, IExportFileType, IJSONOptions, IPickOptions, IPickResult, IRenderer, IWatcher, ILayouter, ISelector, IInteraction, ICanvasManager, IHitCanvasManager, ILeaferConfig, IAutoBounds, IBounds, IEventListenerId, ITimer, IControl, ILeaferType, IScreenSizeData, IResizeEvent, IZoomType, IZoomOptions, IClientPointData, IRenderOptions, ICanvasContext2DSettings, ICanvasContext2D } from '@leafer/interface'; | ||
| __updateRectRenderBounds(): void; | ||
| __updateWorldBounds(): void; | ||
| __checkScroll(): void; | ||
| __updateScroll(): void; | ||
| __checkScroll(_isScrollMode: boolean): void; | ||
| __updateRectChange(): void; | ||
@@ -306,0 +304,0 @@ __updateChange(): void; |
83929
-0.15%1906
-0.37%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated