@bensitu/image-editor 1.5.0 → 1.5.1
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/README.md +67 -32
- package/dist/image-editor.cjs +4185 -0
- package/dist/image-editor.cjs.map +7 -0
- package/dist/image-editor.esm.js +576 -259
- package/dist/image-editor.esm.js.map +3 -3
- package/dist/image-editor.esm.min.js +3 -3
- package/dist/image-editor.esm.min.js.map +3 -3
- package/dist/image-editor.esm.min.mjs +3 -3
- package/dist/image-editor.esm.min.mjs.map +3 -3
- package/dist/image-editor.esm.mjs +576 -259
- package/dist/image-editor.esm.mjs.map +3 -3
- package/dist/image-editor.js +576 -259
- package/dist/image-editor.js.map +3 -3
- package/dist/image-editor.min.js +2 -2
- package/dist/image-editor.min.js.map +3 -3
- package/image-editor.d.ts +4 -3
- package/package.json +4 -3
- package/src/image-editor.js +502 -146
package/image-editor.d.ts
CHANGED
|
@@ -55,6 +55,7 @@ declare module '@bensitu/image-editor' {
|
|
|
55
55
|
imageLoadTimeoutMs?: number;
|
|
56
56
|
|
|
57
57
|
exportMultiplier?: number;
|
|
58
|
+
maxExportPixels?: number;
|
|
58
59
|
exportImageAreaByDefault?: boolean;
|
|
59
60
|
|
|
60
61
|
defaultMaskWidth?: number;
|
|
@@ -116,7 +117,7 @@ declare module '@bensitu/image-editor' {
|
|
|
116
117
|
downloadImageButton?: string | null;
|
|
117
118
|
/** @deprecated Use downloadImageButton instead. This alias will be removed in v2.0.0. */
|
|
118
119
|
downloadBtn?: string | null;
|
|
119
|
-
maskList?: string;
|
|
120
|
+
maskList?: string | null;
|
|
120
121
|
zoomInButton?: string | null;
|
|
121
122
|
/** @deprecated Use zoomInButton instead. This alias will be removed in v2.0.0. */
|
|
122
123
|
zoomInBtn?: string | null;
|
|
@@ -133,8 +134,8 @@ declare module '@bensitu/image-editor' {
|
|
|
133
134
|
redoButton?: string | null;
|
|
134
135
|
/** @deprecated Use redoButton instead. This alias will be removed in v2.0.0. */
|
|
135
136
|
redoBtn?: string | null;
|
|
136
|
-
imageInput?: string;
|
|
137
|
-
uploadArea?: string;
|
|
137
|
+
imageInput?: string | null;
|
|
138
|
+
uploadArea?: string | null;
|
|
138
139
|
enterCropModeButton?: string | null;
|
|
139
140
|
/** @deprecated Use enterCropModeButton instead. This alias will be removed in v2.0.0. */
|
|
140
141
|
cropBtn?: string | null;
|
package/package.json
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bensitu/image-editor",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "Lightweight canvas-based image editor",
|
|
5
|
-
"main": "./dist/image-editor.
|
|
5
|
+
"main": "./dist/image-editor.cjs",
|
|
6
6
|
"module": "./dist/image-editor.esm.mjs",
|
|
7
7
|
"types": "./image-editor.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
10
|
"types": "./image-editor.d.ts",
|
|
11
11
|
"import": "./dist/image-editor.esm.mjs",
|
|
12
|
-
"
|
|
12
|
+
"require": "./dist/image-editor.cjs",
|
|
13
|
+
"default": "./dist/image-editor.esm.mjs"
|
|
13
14
|
}
|
|
14
15
|
},
|
|
15
16
|
"scripts": {
|