react-native-drax 0.9.1 → 0.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -1
- package/build/math.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,11 @@ Changes marked as (BREAKING) may break your app logic. Changes marked as (BREAKI
|
|
|
9
9
|
## [Unreleased]
|
|
10
10
|
- Nothing yet
|
|
11
11
|
|
|
12
|
+
## [0.9.2] - 2021-12-08
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- Fixed typo-based math error in view measurement clipping logic (#124)
|
|
16
|
+
|
|
12
17
|
## [0.9.1] - 2021-11-03
|
|
13
18
|
|
|
14
19
|
### Changed
|
|
@@ -201,7 +206,8 @@ Changes marked as (BREAKING) may break your app logic. Changes marked as (BREAKI
|
|
|
201
206
|
|
|
202
207
|
*(More history to be added later)*
|
|
203
208
|
|
|
204
|
-
[Unreleased]: https://github.com/nuclearpasta/react-native-drax/compare/v0.9.
|
|
209
|
+
[Unreleased]: https://github.com/nuclearpasta/react-native-drax/compare/v0.9.2...HEAD
|
|
210
|
+
[0.9.2]: https://github.com/nuclearpasta/react-native-drax/compare/v0.9.1...v0.9.2
|
|
205
211
|
[0.9.1]: https://github.com/nuclearpasta/react-native-drax/compare/v0.9.0...v0.9.1
|
|
206
212
|
[0.9.0]: https://github.com/nuclearpasta/react-native-drax/compare/v0.8.2...v0.9.0
|
|
207
213
|
[0.8.2]: https://github.com/nuclearpasta/react-native-drax/compare/v0.8.1...v0.8.2
|
package/build/math.js
CHANGED
|
@@ -4,7 +4,7 @@ exports.generateRandomId = exports.extractDimensions = exports.extractPosition =
|
|
|
4
4
|
const clipMeasurements = (vm, cvm) => {
|
|
5
5
|
let { width, height, x: x0, y: y0, } = vm;
|
|
6
6
|
let x1 = x0 + width;
|
|
7
|
-
let y1 = y0 +
|
|
7
|
+
let y1 = y0 + height;
|
|
8
8
|
const { width: cwidth, height: cheight, x: cx0, y: cy0, } = cvm;
|
|
9
9
|
const cx1 = cx0 + cwidth;
|
|
10
10
|
const cy1 = cy0 + cheight;
|