@leafer/display
Advanced tools
+11
-11
| { | ||
| "name": "@leafer/display", | ||
| "version": "1.5.3", | ||
| "version": "1.6.0", | ||
| "description": "@leafer/display", | ||
@@ -25,15 +25,15 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/math": "1.5.3", | ||
| "@leafer/data": "1.5.3", | ||
| "@leafer/layout": "1.5.3", | ||
| "@leafer/display-module": "1.5.3", | ||
| "@leafer/event": "1.5.3", | ||
| "@leafer/decorator": "1.5.3", | ||
| "@leafer/helper": "1.5.3", | ||
| "@leafer/debug": "1.5.3", | ||
| "@leafer/platform": "1.5.3" | ||
| "@leafer/math": "1.6.0", | ||
| "@leafer/data": "1.6.0", | ||
| "@leafer/layout": "1.6.0", | ||
| "@leafer/display-module": "1.6.0", | ||
| "@leafer/event": "1.6.0", | ||
| "@leafer/decorator": "1.6.0", | ||
| "@leafer/helper": "1.6.0", | ||
| "@leafer/debug": "1.6.0", | ||
| "@leafer/platform": "1.6.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.5.3" | ||
| "@leafer/interface": "1.6.0" | ||
| } | ||
| } |
+8
-8
@@ -102,5 +102,2 @@ 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, IEventMap, IEventOption, IAxis, IMotionPathData, IUnitData, IRotationPointData, ITransition, IValueFunction } from '@leafer/interface' | ||
| // other | ||
| public noBounds?: boolean | ||
| public destroyed: boolean | ||
@@ -119,4 +116,6 @@ | ||
| this.__world = { a: 1, b: 0, c: 0, d: 1, e: 0, f: 0, x: 0, y: 0, width: 0, height: 0, scaleX: 1, scaleY: 1 } | ||
| if (data !== null) this.__local = { a: 1, b: 0, c: 0, d: 1, e: 0, f: 0, x: 0, y: 0, width: 0, height: 0 } | ||
| if (data as any !== 0) { // 设为 0 时可用于 text boxStyle 节省开销 | ||
| this.__world = { a: 1, b: 0, c: 0, d: 1, e: 0, f: 0, x: 0, y: 0, width: 0, height: 0, scaleX: 1, scaleY: 1 } | ||
| if (data !== null) this.__local = { a: 1, b: 0, c: 0, d: 1, e: 0, f: 0, x: 0, y: 0, width: 0, height: 0 } | ||
| } | ||
@@ -340,5 +339,6 @@ this.__worldOpacity = 1 | ||
| if (!this.__cameraWorld) this.__cameraWorld = {} as IMatrixWithBoundsScaleData | ||
| const cameraWorld = this.__cameraWorld | ||
| multiplyParent(this.__world, options.matrix, cameraWorld, undefined, this.__world) | ||
| const cameraWorld = this.__cameraWorld, world = this.__world | ||
| multiplyParent(world, options.matrix, cameraWorld, undefined, world) | ||
| toOuterOf(this.__layout.renderBounds, cameraWorld, cameraWorld) | ||
| cameraWorld.half !== world.half && (cameraWorld.half = world.half) | ||
| return cameraWorld | ||
@@ -567,3 +567,3 @@ } else { | ||
| public __draw(_canvas: ILeaferCanvas, _options: IRenderOptions): void { } | ||
| public __draw(_canvas: ILeaferCanvas, _options: IRenderOptions, _originCanvas?: ILeaferCanvas): void { } | ||
@@ -570,0 +570,0 @@ |
+1
-2
@@ -54,3 +54,2 @@ import { ILeaf, InnerId, ILeaferBase, ILeafData, ILeafLayout, IMatrixWithBoundsScaleData, IMatrixWithBoundsData, IMatrixData, IBoundsData, IMatrixWithScaleData, IHitCanvas, IEventMap, IEventListenerMap, ILeafInputData, IFunction, IObject, IValue, IJSONOptions, IFindMethod, ILeaferCanvas, IRenderOptions, ILocationType, IBoundsType, ILayoutBoundsData, IPointData, ITransition, IAlign, IAxis, IRadiusPointData, IMotionPathData, IUnitData, IRotationPointData, IEventListener, IEventOption, IEventListenerId, IEvent, IValueFunction, IAttrDecorator } from '@leafer/interface'; | ||
| children?: ILeaf[]; | ||
| noBounds?: boolean; | ||
| destroyed: boolean; | ||
@@ -158,3 +157,3 @@ constructor(data?: ILeafInputData); | ||
| __drawFast(_canvas: ILeaferCanvas, _options: IRenderOptions): void; | ||
| __draw(_canvas: ILeaferCanvas, _options: IRenderOptions): void; | ||
| __draw(_canvas: ILeaferCanvas, _options: IRenderOptions, _originCanvas?: ILeaferCanvas): void; | ||
| __clip(_canvas: ILeaferCanvas, _options: IRenderOptions): void; | ||
@@ -161,0 +160,0 @@ __renderShape(_canvas: ILeaferCanvas, _options: IRenderOptions, _ignoreFill?: boolean, _ignoreStroke?: boolean): void; |
43258
0.43%+ 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
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated
Updated