@leafer/display-module
Advanced tools
+4
-4
| { | ||
| "name": "@leafer/display-module", | ||
| "version": "1.0.0-alpha.10", | ||
| "version": "1.0.0-alpha.21", | ||
| "description": "@leafer/display-module", | ||
@@ -22,8 +22,8 @@ "author": "Chao (Leafer) Wan", | ||
| "dependencies": { | ||
| "@leafer/event": "1.0.0-alpha.10", | ||
| "@leafer/math": "1.0.0-alpha.10" | ||
| "@leafer/event": "1.0.0-alpha.21", | ||
| "@leafer/math": "1.0.0-alpha.21" | ||
| }, | ||
| "devDependencies": { | ||
| "@leafer/interface": "1.0.0-alpha.10" | ||
| "@leafer/interface": "1.0.0-alpha.21" | ||
| } | ||
| } |
+15
-7
@@ -5,3 +5,3 @@ import { ILeafBoundsModule } from '@leafer/interface' | ||
| const { setByBoundsTimesMatrix } = BoundsHelper | ||
| const { toWorld, copyAndSpread } = BoundsHelper | ||
@@ -89,3 +89,3 @@ export const LeafBounds: ILeafBoundsModule = { | ||
| setByBoundsTimesMatrix(this.__world, this.__layout.renderBounds, this.__world) | ||
| toWorld(this.__layout.renderBounds, this.__world, this.__world) | ||
@@ -95,3 +95,3 @@ if (resize) this.__onUpdateSize() | ||
| } else { | ||
| setByBoundsTimesMatrix(this.__world, this.__layout.renderBounds, this.__world) | ||
| toWorld(this.__layout.renderBounds, this.__world, this.__world) | ||
| } | ||
@@ -102,11 +102,11 @@ | ||
| __updateRelativeBoxBounds(): void { | ||
| setByBoundsTimesMatrix(this.__relative, this.__layout.boxBounds, this.__relative) | ||
| toWorld(this.__layout.boxBounds, this.__relative, this.__relative) | ||
| }, | ||
| __updateRelativeEventBounds(): void { | ||
| setByBoundsTimesMatrix(this.__layout.relativeEventBounds, this.__layout.eventBounds, this.__relative) | ||
| toWorld(this.__layout.eventBounds, this.__relative, this.__layout.relativeEventBounds) | ||
| }, | ||
| __updateRelativeRenderBounds(): void { | ||
| setByBoundsTimesMatrix(this.__layout.relativeRenderBounds, this.__layout.renderBounds, this.__relative) | ||
| toWorld(this.__layout.renderBounds, this.__relative, this.__layout.relativeRenderBounds) | ||
| }, | ||
@@ -121,4 +121,12 @@ | ||
| b.height = this.__.height | ||
| } | ||
| }, | ||
| __updateEventBounds(): void { | ||
| copyAndSpread(this.__layout.eventBounds, this.__layout.boxBounds, this.__layout.eventBoundsSpreadWidth) | ||
| }, | ||
| __updateRenderBounds(): void { | ||
| copyAndSpread(this.__layout.renderBounds, this.__layout.eventBounds, this.__layout.renderBoundsSpreadWidth) | ||
| }, | ||
| } |
14986
1.62%315
1.94%+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated