@bensitu/image-editor 1.5.0 → 1.5.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/README.md +137 -47
- package/dist/image-editor.cjs +4407 -0
- package/dist/image-editor.cjs.map +7 -0
- package/dist/image-editor.esm.js +812 -273
- 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 +812 -273
- package/dist/image-editor.esm.mjs.map +3 -3
- package/dist/image-editor.js +812 -273
- 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 +6 -3
- package/package.json +4 -3
- package/src/image-editor.js +759 -165
package/image-editor.d.ts
CHANGED
|
@@ -55,6 +55,9 @@ declare module '@bensitu/image-editor' {
|
|
|
55
55
|
imageLoadTimeoutMs?: number;
|
|
56
56
|
|
|
57
57
|
exportMultiplier?: number;
|
|
58
|
+
maxExportPixels?: number;
|
|
59
|
+
/** Maximum undo/redo history entries to keep. Large base64 images can make each snapshot expensive. */
|
|
60
|
+
maxHistorySize?: number;
|
|
58
61
|
exportImageAreaByDefault?: boolean;
|
|
59
62
|
|
|
60
63
|
defaultMaskWidth?: number;
|
|
@@ -116,7 +119,7 @@ declare module '@bensitu/image-editor' {
|
|
|
116
119
|
downloadImageButton?: string | null;
|
|
117
120
|
/** @deprecated Use downloadImageButton instead. This alias will be removed in v2.0.0. */
|
|
118
121
|
downloadBtn?: string | null;
|
|
119
|
-
maskList?: string;
|
|
122
|
+
maskList?: string | null;
|
|
120
123
|
zoomInButton?: string | null;
|
|
121
124
|
/** @deprecated Use zoomInButton instead. This alias will be removed in v2.0.0. */
|
|
122
125
|
zoomInBtn?: string | null;
|
|
@@ -133,8 +136,8 @@ declare module '@bensitu/image-editor' {
|
|
|
133
136
|
redoButton?: string | null;
|
|
134
137
|
/** @deprecated Use redoButton instead. This alias will be removed in v2.0.0. */
|
|
135
138
|
redoBtn?: string | null;
|
|
136
|
-
imageInput?: string;
|
|
137
|
-
uploadArea?: string;
|
|
139
|
+
imageInput?: string | null;
|
|
140
|
+
uploadArea?: string | null;
|
|
138
141
|
enterCropModeButton?: string | null;
|
|
139
142
|
/** @deprecated Use enterCropModeButton instead. This alias will be removed in v2.0.0. */
|
|
140
143
|
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.2",
|
|
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": {
|