expo-image-manipulator 13.1.2 → 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 +4 -0
- package/android/build.gradle +2 -2
- 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.2/expo.modules.imagemanipulator-13.1.2.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.2/expo.modules.imagemanipulator-13.1.2.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/web/actions/CropAction.web.ts +2 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.2/expo.modules.imagemanipulator-13.1.2.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.2/expo.modules.imagemanipulator-13.1.2.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.2/expo.modules.imagemanipulator-13.1.2.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.2/expo.modules.imagemanipulator-13.1.2.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.2/expo.modules.imagemanipulator-13.1.2.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.2/expo.modules.imagemanipulator-13.1.2.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.2/expo.modules.imagemanipulator-13.1.2.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/13.1.2/expo.modules.imagemanipulator-13.1.2.pom.sha512 +0 -1
- /package/local-maven-repo/host/exp/exponent/expo.modules.imagemanipulator/{13.1.2/expo.modules.imagemanipulator-13.1.2-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.2/expo.modules.imagemanipulator-13.1.2-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.2/expo.modules.imagemanipulator-13.1.2-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.2/expo.modules.imagemanipulator-13.1.2-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.2/expo.modules.imagemanipulator-13.1.2-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.2/expo.modules.imagemanipulator-13.1.2.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.2/expo.modules.imagemanipulator-13.1.2.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.2/expo.modules.imagemanipulator-13.1.2.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.2/expo.modules.imagemanipulator-13.1.2.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.2/expo.modules.imagemanipulator-13.1.2.aar.sha512 → 13.1.3/expo.modules.imagemanipulator-13.1.3.aar.sha512} +0 -0
package/CHANGELOG.md
CHANGED
package/android/build.gradle
CHANGED
|
@@ -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
|
-
e53a718c3de9c1ab3dddf7ef8e610f32
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
057b94dbfc909297c0f1dff51c67fee4aa85a22b
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
f2f66bc187b2b258b00e8b0e887c6ec31708ea8ec2a6c7b87e29b082fcd3eecc
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b6bffe4f1aa53fe7b714e70ab645b15894ea423bb77d87ef6dd6068d153b0ccdc5300153c4e25f6af7996656d4b1659d6383ab640a41c38561ba724ad4e9842f
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ff502b337240686fcdb7d3c9dd9056da
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0a37e910afee33af5ed3fa143f00bd0b26e2417f
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2800f1eaf81ceec941e594ac198d981739e9d9eaa87732ecde66d52b5e08efeb
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2d074381767547a165518620a588e430e58ae47272086a0636972707eea7c650118642b2af87d55fc363afedb12f62dd2155c09951f5e4a83ef3bb21e0738bc4
|
|
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
|