expo-image-manipulator 13.1.1 → 13.1.3
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 +8 -0
- package/android/build.gradle +2 -2
- package/build/NativeImageManipulatorModule.web.d.ts.map +1 -1
- package/build/web/actions/CropAction.web.d.ts.map +1 -1
- package/expo-module.config.json +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/{13.1.1/expo.modules.imagemanipulator-13.1.1.module → 13.1.3/expo.modules.imagemanipulator-13.1.3.module} +7 -7
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.3/expo.modules.imagemanipulator-13.1.3.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.3/expo.modules.imagemanipulator-13.1.3.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.3/expo.modules.imagemanipulator-13.1.3.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.3/expo.modules.imagemanipulator-13.1.3.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/{13.1.1/expo.modules.imagemanipulator-13.1.1.pom → 13.1.3/expo.modules.imagemanipulator-13.1.3.pom} +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.3/expo.modules.imagemanipulator-13.1.3.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.3/expo.modules.imagemanipulator-13.1.3.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.3/expo.modules.imagemanipulator-13.1.3.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.3/expo.modules.imagemanipulator-13.1.3.pom.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/maven-metadata.xml +4 -4
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/maven-metadata.xml.sha512 +1 -1
- package/package.json +3 -3
- package/src/NativeImageManipulatorModule.web.ts +1 -1
- package/src/web/actions/CropAction.web.ts +2 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.1/expo.modules.imagemanipulator-13.1.1.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.1/expo.modules.imagemanipulator-13.1.1.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.1/expo.modules.imagemanipulator-13.1.1.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.1/expo.modules.imagemanipulator-13.1.1.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.1/expo.modules.imagemanipulator-13.1.1.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.1/expo.modules.imagemanipulator-13.1.1.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.1/expo.modules.imagemanipulator-13.1.1.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.1/expo.modules.imagemanipulator-13.1.1.pom.sha512 +0 -1
- /package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/{13.1.1/expo.modules.imagemanipulator-13.1.1-sources.jar → 13.1.3/expo.modules.imagemanipulator-13.1.3-sources.jar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/{13.1.1/expo.modules.imagemanipulator-13.1.1-sources.jar.md5 → 13.1.3/expo.modules.imagemanipulator-13.1.3-sources.jar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/{13.1.1/expo.modules.imagemanipulator-13.1.1-sources.jar.sha1 → 13.1.3/expo.modules.imagemanipulator-13.1.3-sources.jar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/{13.1.1/expo.modules.imagemanipulator-13.1.1-sources.jar.sha256 → 13.1.3/expo.modules.imagemanipulator-13.1.3-sources.jar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/{13.1.1/expo.modules.imagemanipulator-13.1.1-sources.jar.sha512 → 13.1.3/expo.modules.imagemanipulator-13.1.3-sources.jar.sha512} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/{13.1.1/expo.modules.imagemanipulator-13.1.1.aar → 13.1.3/expo.modules.imagemanipulator-13.1.3.aar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/{13.1.1/expo.modules.imagemanipulator-13.1.1.aar.md5 → 13.1.3/expo.modules.imagemanipulator-13.1.3.aar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/{13.1.1/expo.modules.imagemanipulator-13.1.1.aar.sha1 → 13.1.3/expo.modules.imagemanipulator-13.1.3.aar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/{13.1.1/expo.modules.imagemanipulator-13.1.1.aar.sha256 → 13.1.3/expo.modules.imagemanipulator-13.1.3.aar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/{13.1.1/expo.modules.imagemanipulator-13.1.1.aar.sha512 → 13.1.3/expo.modules.imagemanipulator-13.1.3.aar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -10,6 +10,14 @@
|
|
|
10
10
|
|
|
11
11
|
### 💡 Others
|
|
12
12
|
|
|
13
|
+
## 13.1.3 — 2025-04-14
|
|
14
|
+
|
|
15
|
+
_This version does not introduce any user-facing changes._
|
|
16
|
+
|
|
17
|
+
## 13.1.2 — 2025-04-11
|
|
18
|
+
|
|
19
|
+
_This version does not introduce any user-facing changes._
|
|
20
|
+
|
|
13
21
|
## 13.1.1 — 2025-04-09
|
|
14
22
|
|
|
15
23
|
_This version does not introduce any user-facing changes._
|
package/android/build.gradle
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeImageManipulatorModule.web.d.ts","sourceRoot":"","sources":["../src/NativeImageManipulatorModule.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,uBAAuB,MAAM,mCAAmC,CAAC;AACxE,OAAO,wBAAwB,MAAM,oCAAoC,CAAC;AAG1E,cAAM,gBAAiB,SAAQ,YAAY;IACzC,OAAO,iCAA2B;IAClC,KAAK,kCAA4B;IAEjC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,uBAAuB;CAYzE;;AAED,
|
|
1
|
+
{"version":3,"file":"NativeImageManipulatorModule.web.d.ts","sourceRoot":"","sources":["../src/NativeImageManipulatorModule.web.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAEpD,OAAO,uBAAuB,MAAM,mCAAmC,CAAC;AACxE,OAAO,wBAAwB,MAAM,oCAAoC,CAAC;AAG1E,cAAM,gBAAiB,SAAQ,YAAY;IACzC,OAAO,iCAA2B;IAClC,KAAK,kCAA4B;IAEjC,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,OAAO,CAAC,GAAG,uBAAuB;CAYzE;;AAED,wBAAuE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CropAction.web.d.ts","sourceRoot":"","sources":["../../../src/web/actions/CropAction.web.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"CropAction.web.d.ts","sourceRoot":"","sources":["../../../src/web/actions/CropAction.web.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;yBAK1C,QAAQ,iBAAiB,EAAE,SAAS,UAAU,CAAC,MAAM,CAAC;AAAtE,wBA4BE"}
|
package/expo-module.config.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "host.exp.exponent",
|
|
5
5
|
"module": "expo.modules.imagemanipulator",
|
|
6
|
-
"version": "13.1.
|
|
6
|
+
"version": "13.1.3",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
],
|
|
34
34
|
"files": [
|
|
35
35
|
{
|
|
36
|
-
"name": "expo.modules.imagemanipulator-13.1.
|
|
37
|
-
"url": "expo.modules.imagemanipulator-13.1.
|
|
36
|
+
"name": "expo.modules.imagemanipulator-13.1.3.aar",
|
|
37
|
+
"url": "expo.modules.imagemanipulator-13.1.3.aar",
|
|
38
38
|
"size": 74492,
|
|
39
39
|
"sha512": "f48095530d13480cc0f0bd99e52e7e1d0d83038048f89a355189ebae20ddf319911f0d9e9e03bcae3272c12fbf1d16d6f0f623e21d735a03fae74706a19b3429",
|
|
40
40
|
"sha256": "8f57c66f41adbc2c6cd366745b9542cff595e0a1aec21e2df9f762b00be46612",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
],
|
|
70
70
|
"files": [
|
|
71
71
|
{
|
|
72
|
-
"name": "expo.modules.imagemanipulator-13.1.
|
|
73
|
-
"url": "expo.modules.imagemanipulator-13.1.
|
|
72
|
+
"name": "expo.modules.imagemanipulator-13.1.3.aar",
|
|
73
|
+
"url": "expo.modules.imagemanipulator-13.1.3.aar",
|
|
74
74
|
"size": 74492,
|
|
75
75
|
"sha512": "f48095530d13480cc0f0bd99e52e7e1d0d83038048f89a355189ebae20ddf319911f0d9e9e03bcae3272c12fbf1d16d6f0f623e21d735a03fae74706a19b3429",
|
|
76
76
|
"sha256": "8f57c66f41adbc2c6cd366745b9542cff595e0a1aec21e2df9f762b00be46612",
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
},
|
|
90
90
|
"files": [
|
|
91
91
|
{
|
|
92
|
-
"name": "expo.modules.imagemanipulator-13.1.
|
|
93
|
-
"url": "expo.modules.imagemanipulator-13.1.
|
|
92
|
+
"name": "expo.modules.imagemanipulator-13.1.3-sources.jar",
|
|
93
|
+
"url": "expo.modules.imagemanipulator-13.1.3-sources.jar",
|
|
94
94
|
"size": 8159,
|
|
95
95
|
"sha512": "08af6c95ebf4df88f09274f2dc172df230d57b8f3ca2d1774d44584282b25d9d93ba57a78a2cdfef9232145c67aa8765b8df86f6c79852ba8c1b6b3eb3c21350",
|
|
96
96
|
"sha256": "83452b235a0ea4b9ed9dc693de4fdda6a7940c15c27b9033fb0e398e00b56a7b",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1599901717dad3330433c20a8b95cb59
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
266bb54cae5872fbe678ff9b57a91c2a46480380
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
084bb8604f84b309bca9b70c393a06a34d328ec8a0d33e410d51f82afbb54fcc
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
bcf9bfe43f284e2e38ab5d241721d6a1267d014d51558cc4ba5125f563f4cd299aa549889b4dfc5685a4cd6f4b51a5b5c55cb08078bf1dce871317d4d66a4f5d
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>host.exp.exponent</groupId>
|
|
11
11
|
<artifactId>expo.modules.imagemanipulator</artifactId>
|
|
12
|
-
<version>13.1.
|
|
12
|
+
<version>13.1.3</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.imagemanipulator</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
49233668a9b745605f1a5ff0d059cd34
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ea6a3690a50210d45d06b6af0832e838ab1550a1
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
ce82c5ae7dbb9609b874b486612d5a2608697e79f5c46a8b4074e927fa9fa4ef
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
944255a6c76e3cf32d5977d5537579e017e22709460112e3645326c9bcbf45c6e026cd77da62d567a2b64af2f8e1ebedd884902b555a9fe89e9aba43bc436c13
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>host.exp.exponent</groupId>
|
|
4
4
|
<artifactId>expo.modules.imagemanipulator</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>13.1.
|
|
7
|
-
<release>13.1.
|
|
6
|
+
<latest>13.1.3</latest>
|
|
7
|
+
<release>13.1.3</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>13.1.
|
|
9
|
+
<version>13.1.3</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20250414184114</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/maven-metadata.xml.md5
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
d2ec9cf96170dfe8071e2e90c3555cf1
|
package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/maven-metadata.xml.sha1
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
a6c0e1326abffc58d1179ba0a97ac9d1e233245c
|
package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/maven-metadata.xml.sha256
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
894b1c7d06d1c1f3dffbb3d773670692b00d3e891dc11b3d95f208070f48f580
|
package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/maven-metadata.xml.sha512
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
9b4e6c5aa5a54d73505028d18df5ceea1e04398904aad23bd2162ecaacb7ac46996fd18053f2bbfc28fcdc9e613ae8e29ed1e1bb808772b68c6790d000efb938
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-image-manipulator",
|
|
3
|
-
"version": "13.1.
|
|
3
|
+
"version": "13.1.3",
|
|
4
4
|
"description": "Provides functions that let you manipulation images on the local file system, eg: resize, crop.",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "build/index.d.ts",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"expo-image-loader": "~5.1.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"expo-module-scripts": "^4.1.
|
|
37
|
+
"expo-module-scripts": "^4.1.2"
|
|
38
38
|
},
|
|
39
39
|
"peerDependencies": {
|
|
40
40
|
"expo": "*"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "335e9312f5caf634097354a230f0d4bbbfb9b0ba"
|
|
43
43
|
}
|
|
@@ -3,10 +3,11 @@ import { CodedError } from 'expo-modules-core';
|
|
|
3
3
|
import { ActionCrop } from '../../ImageManipulator.types';
|
|
4
4
|
import { getContext } from '../utils.web';
|
|
5
5
|
|
|
6
|
+
const clamp = (value: number, max: number): number => Math.max(0, Math.min(max, value));
|
|
7
|
+
|
|
6
8
|
export default (canvas: HTMLCanvasElement, options: ActionCrop['crop']) => {
|
|
7
9
|
// ensure values are defined.
|
|
8
10
|
let { originX = 0, originY = 0, width = 0, height = 0 } = options;
|
|
9
|
-
const clamp = (value, max) => Math.max(0, Math.min(max, value));
|
|
10
11
|
// lock within bounds.
|
|
11
12
|
width = clamp(width, canvas.width);
|
|
12
13
|
height = clamp(height, canvas.height);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
5435e3211ee21d66e5bb58b3bcbeb448
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
55114c198996f28f10eeecb6fa9b900ed1c077bc
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
8a0962bcd95ce0fb11c0b7f4b291144609cd2e9fb37faf7a241d8bc28460d22f
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9daa9c74638378e8e22e17252868d3ccd42d7932214f2eebd0e626a6e67dea564128d9dd355a24e181ad4afeefcf3d6134ed4df69347263c5da6f3245b1d3eac
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2293af4749f5e8657ae7926eb22dad23
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
862380d502cdf334b194b4e015a782ed5200235c
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
82b28a2ab35530f936e5aa9742f556a3425f132e4c50e85d78e9474820046529
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
39f778dfdfb6f707413a13610a197ac14966f2814d5cd2d23692e49764d2fbabad3a188854be283436734768901fd85025bf698551849e4260ff2ac7294454f4
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|