@salmonui/editors 0.0.0-stage → 0.3.0
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/LICENSE +21 -0
- package/README.md +39 -2
- package/dist/image-editor/ImageEditor.d.ts +59 -0
- package/dist/image-editor/ImageEditor.d.ts.map +1 -0
- package/dist/image-editor/ImageEditor.js +493 -0
- package/dist/image-editor/ImageEditor.js.map +1 -0
- package/dist/image-editor/adjust.d.ts +17 -0
- package/dist/image-editor/adjust.d.ts.map +1 -0
- package/dist/image-editor/adjust.js +53 -0
- package/dist/image-editor/adjust.js.map +1 -0
- package/dist/image-editor/annotations.d.ts +40 -0
- package/dist/image-editor/annotations.d.ts.map +1 -0
- package/dist/image-editor/annotations.js +184 -0
- package/dist/image-editor/annotations.js.map +1 -0
- package/dist/image-editor/draw.d.ts +25 -0
- package/dist/image-editor/draw.d.ts.map +1 -0
- package/dist/image-editor/draw.js +248 -0
- package/dist/image-editor/draw.js.map +1 -0
- package/dist/image-editor/engine.d.ts +116 -0
- package/dist/image-editor/engine.d.ts.map +1 -0
- package/dist/image-editor/engine.js +367 -0
- package/dist/image-editor/engine.js.map +1 -0
- package/dist/image-editor/geometry.d.ts +41 -0
- package/dist/image-editor/geometry.d.ts.map +1 -0
- package/dist/image-editor/geometry.js +62 -0
- package/dist/image-editor/geometry.js.map +1 -0
- package/dist/image-editor/history.d.ts +24 -0
- package/dist/image-editor/history.d.ts.map +1 -0
- package/dist/image-editor/history.js +31 -0
- package/dist/image-editor/history.js.map +1 -0
- package/dist/image-editor/interact.d.ts +73 -0
- package/dist/image-editor/interact.d.ts.map +1 -0
- package/dist/image-editor/interact.js +686 -0
- package/dist/image-editor/interact.js.map +1 -0
- package/dist/image-editor/items.d.ts +9 -0
- package/dist/image-editor/items.d.ts.map +1 -0
- package/dist/image-editor/items.js +179 -0
- package/dist/image-editor/items.js.map +1 -0
- package/dist/image-editor/ops.d.ts +35 -0
- package/dist/image-editor/ops.d.ts.map +1 -0
- package/dist/image-editor/ops.js +332 -0
- package/dist/image-editor/ops.js.map +1 -0
- package/dist/image-editor/panels.d.ts +24 -0
- package/dist/image-editor/panels.d.ts.map +1 -0
- package/dist/image-editor/panels.js +185 -0
- package/dist/image-editor/panels.js.map +1 -0
- package/dist/image-editor/pixels.d.ts +10 -0
- package/dist/image-editor/pixels.d.ts.map +1 -0
- package/dist/image-editor/pixels.js +172 -0
- package/dist/image-editor/pixels.js.map +1 -0
- package/dist/image-editor/transform.d.ts +33 -0
- package/dist/image-editor/transform.d.ts.map +1 -0
- package/dist/image-editor/transform.js +142 -0
- package/dist/image-editor/transform.js.map +1 -0
- package/dist/image-editor/types.d.ts +450 -0
- package/dist/image-editor/types.d.ts.map +1 -0
- package/dist/image-editor/types.js +6 -0
- package/dist/image-editor/types.js.map +1 -0
- package/dist/image-editor.css +1228 -0
- package/dist/image-editor.d.ts +5 -0
- package/dist/image-editor.d.ts.map +1 -0
- package/dist/image-editor.js +13 -0
- package/dist/image-editor.js.map +1 -0
- package/dist/inline-edit/InlineEdit.d.ts +6 -0
- package/dist/inline-edit/InlineEdit.d.ts.map +1 -0
- package/dist/inline-edit/InlineEdit.js +340 -0
- package/dist/inline-edit/InlineEdit.js.map +1 -0
- package/dist/inline-edit/types.d.ts +177 -0
- package/dist/inline-edit/types.d.ts.map +1 -0
- package/dist/inline-edit/types.js +2 -0
- package/dist/inline-edit/types.js.map +1 -0
- package/dist/inline-edit/validate.d.ts +17 -0
- package/dist/inline-edit/validate.d.ts.map +1 -0
- package/dist/inline-edit/validate.js +34 -0
- package/dist/inline-edit/validate.js.map +1 -0
- package/dist/inline-edit.css +621 -0
- package/dist/inline-edit.d.ts +3 -0
- package/dist/inline-edit.d.ts.map +1 -0
- package/dist/inline-edit.js +9 -0
- package/dist/inline-edit.js.map +1 -0
- package/dist/markdown-editor/MarkdownEditor.d.ts +6 -0
- package/dist/markdown-editor/MarkdownEditor.d.ts.map +1 -0
- package/dist/markdown-editor/MarkdownEditor.js +423 -0
- package/dist/markdown-editor/MarkdownEditor.js.map +1 -0
- package/dist/markdown-editor/commands.d.ts +69 -0
- package/dist/markdown-editor/commands.d.ts.map +1 -0
- package/dist/markdown-editor/commands.js +207 -0
- package/dist/markdown-editor/commands.js.map +1 -0
- package/dist/markdown-editor/dialog.d.ts +19 -0
- package/dist/markdown-editor/dialog.d.ts.map +1 -0
- package/dist/markdown-editor/dialog.js +88 -0
- package/dist/markdown-editor/dialog.js.map +1 -0
- package/dist/markdown-editor/items.d.ts +12 -0
- package/dist/markdown-editor/items.d.ts.map +1 -0
- package/dist/markdown-editor/items.js +110 -0
- package/dist/markdown-editor/items.js.map +1 -0
- package/dist/markdown-editor/menu-popup.d.ts +14 -0
- package/dist/markdown-editor/menu-popup.d.ts.map +1 -0
- package/dist/markdown-editor/menu-popup.js +13 -0
- package/dist/markdown-editor/menu-popup.js.map +1 -0
- package/dist/markdown-editor/types.d.ts +158 -0
- package/dist/markdown-editor/types.d.ts.map +1 -0
- package/dist/markdown-editor/types.js +2 -0
- package/dist/markdown-editor/types.js.map +1 -0
- package/dist/markdown-editor.css +1020 -0
- package/dist/markdown-editor.d.ts +6 -0
- package/dist/markdown-editor.d.ts.map +1 -0
- package/dist/markdown-editor.js +12 -0
- package/dist/markdown-editor.js.map +1 -0
- package/dist/styles.css +1699 -0
- package/package.json +53 -4
|
@@ -0,0 +1,450 @@
|
|
|
1
|
+
import type { CSSProperties, HTMLAttributes, ReactNode, Ref, RefObject } from 'react';
|
|
2
|
+
/** What `src` accepts. A string is a URL or a data URL. */
|
|
3
|
+
export type ImageEditorSource = string | Blob | ImageBitmap | ImageData | HTMLImageElement | HTMLCanvasElement;
|
|
4
|
+
export type ImageEditorCropShape = 'rect' | 'circle';
|
|
5
|
+
/** A crop in oriented-image pixels. */
|
|
6
|
+
export interface ImageEditorCrop {
|
|
7
|
+
readonly x: number;
|
|
8
|
+
readonly y: number;
|
|
9
|
+
readonly width: number;
|
|
10
|
+
readonly height: number;
|
|
11
|
+
/** `'circle'` keeps the inscribed ellipse; the corners export transparent. Default `'rect'`. */
|
|
12
|
+
readonly shape?: ImageEditorCropShape | undefined;
|
|
13
|
+
}
|
|
14
|
+
export interface ImageEditorFlip {
|
|
15
|
+
readonly horizontal?: boolean | undefined;
|
|
16
|
+
readonly vertical?: boolean | undefined;
|
|
17
|
+
}
|
|
18
|
+
/** Geometry of the edit. Every field is optional; omitted means neutral. */
|
|
19
|
+
export interface ImageEditorTransform {
|
|
20
|
+
/** `null` or omitted: the whole oriented image. */
|
|
21
|
+
readonly crop?: ImageEditorCrop | null | undefined;
|
|
22
|
+
/** Clockwise degrees in 90-degree steps (normalized to 0, 90, 180, 270). */
|
|
23
|
+
readonly rotation?: number | undefined;
|
|
24
|
+
/** Straighten angle in degrees, -45 to 45; the image scales up so no empty corner shows. */
|
|
25
|
+
readonly straighten?: number | undefined;
|
|
26
|
+
readonly flip?: ImageEditorFlip | undefined;
|
|
27
|
+
/** Output size in pixels; `null` or omitted keeps the crop size. */
|
|
28
|
+
readonly resize?: {
|
|
29
|
+
readonly width: number;
|
|
30
|
+
readonly height: number;
|
|
31
|
+
} | null | undefined;
|
|
32
|
+
/** Committed view zoom; 1 fits the image into the canvas. Not an edit (no history entry). */
|
|
33
|
+
readonly zoom?: number | undefined;
|
|
34
|
+
}
|
|
35
|
+
/** Finetune values; 0 is neutral except `opacity` (100). */
|
|
36
|
+
export interface ImageEditorAdjustments {
|
|
37
|
+
/** -100 to 100. */
|
|
38
|
+
readonly brightness?: number | undefined;
|
|
39
|
+
/** -100 to 100. */
|
|
40
|
+
readonly contrast?: number | undefined;
|
|
41
|
+
/** Hue rotation in degrees, -180 to 180. */
|
|
42
|
+
readonly hue?: number | undefined;
|
|
43
|
+
/** -100 to 100. */
|
|
44
|
+
readonly saturation?: number | undefined;
|
|
45
|
+
/** -100 to 100 (an exponential brightness: +100 doubles, -100 halves). */
|
|
46
|
+
readonly exposure?: number | undefined;
|
|
47
|
+
/** 0 to 100. Default 100. */
|
|
48
|
+
readonly opacity?: number | undefined;
|
|
49
|
+
/** Blur radius in source pixels, 0 to 20. */
|
|
50
|
+
readonly blur?: number | undefined;
|
|
51
|
+
}
|
|
52
|
+
/** Filter presets. */
|
|
53
|
+
export type ImageEditorFilter = 'default' | 'chrome' | 'cold' | 'warm' | 'grayscale' | 'sepia' | 'invert';
|
|
54
|
+
export type ImageEditorFrameType = 'none' | 'mat' | 'bevel' | 'line' | 'inset' | 'hook';
|
|
55
|
+
/** A frame drawn over the output edges. */
|
|
56
|
+
export interface ImageEditorFrame {
|
|
57
|
+
readonly type: ImageEditorFrameType;
|
|
58
|
+
/** Default `'#ffffff'`. */
|
|
59
|
+
readonly color?: string | undefined;
|
|
60
|
+
/** A second color: the frame fills with a linear gradient from `color` to it. */
|
|
61
|
+
readonly gradientColor?: string | undefined;
|
|
62
|
+
/** Band or line width in output pixels. Default 5 % of the shorter side. */
|
|
63
|
+
readonly size?: number | undefined;
|
|
64
|
+
/** Distance of the `line`, `inset` and `hook` strokes from the edge. Default `size`. */
|
|
65
|
+
readonly inset?: number | undefined;
|
|
66
|
+
/** Corner radius of the opening (`mat`, `bevel`, `inset`) or of the line. Default 0. */
|
|
67
|
+
readonly radius?: number | undefined;
|
|
68
|
+
}
|
|
69
|
+
export type ImageEditorAnnotationKind = 'rectangle' | 'ellipse' | 'line' | 'arrow' | 'path' | 'text' | 'freehand' | 'image' | 'redact';
|
|
70
|
+
interface AnnotationCommon {
|
|
71
|
+
/** Stable id; selection, history and callbacks use it. */
|
|
72
|
+
readonly id: string;
|
|
73
|
+
/** Clockwise degrees around the annotation's center. Default 0. */
|
|
74
|
+
readonly rotation?: number | undefined;
|
|
75
|
+
/** 0 to 1. Default 1. */
|
|
76
|
+
readonly opacity?: number | undefined;
|
|
77
|
+
}
|
|
78
|
+
/** Stroke and fill of the shape kinds. */
|
|
79
|
+
export interface ImageEditorShapeStyle {
|
|
80
|
+
/** CSS color; `'transparent'` or omitted draws no stroke for filled shapes. Default `'#e5484d'`. */
|
|
81
|
+
readonly stroke?: string | undefined;
|
|
82
|
+
/** CSS color; omitted draws no fill. */
|
|
83
|
+
readonly fill?: string | undefined;
|
|
84
|
+
/** Default 4. */
|
|
85
|
+
readonly strokeWidth?: number | undefined;
|
|
86
|
+
}
|
|
87
|
+
export interface ImageEditorBoxAnnotation extends AnnotationCommon, ImageEditorShapeStyle {
|
|
88
|
+
readonly kind: 'rectangle' | 'ellipse';
|
|
89
|
+
readonly x: number;
|
|
90
|
+
readonly y: number;
|
|
91
|
+
readonly width: number;
|
|
92
|
+
readonly height: number;
|
|
93
|
+
/** Corner radius of a rectangle. */
|
|
94
|
+
readonly radius?: number | undefined;
|
|
95
|
+
}
|
|
96
|
+
/** `line` and `arrow` use two points; `path` and `freehand` any number. Points are `[x0, y0, x1, y1, ...]`. */
|
|
97
|
+
export interface ImageEditorPointsAnnotation extends AnnotationCommon, ImageEditorShapeStyle {
|
|
98
|
+
readonly kind: 'line' | 'arrow' | 'path' | 'freehand';
|
|
99
|
+
readonly points: readonly number[];
|
|
100
|
+
/** `path` only: joins the last point to the first (and fills with `fill`). */
|
|
101
|
+
readonly closed?: boolean | undefined;
|
|
102
|
+
}
|
|
103
|
+
/** Text annotation. `x`, `y` are the top-left corner of the first line. */
|
|
104
|
+
export interface ImageEditorTextAnnotation extends AnnotationCommon {
|
|
105
|
+
readonly kind: 'text';
|
|
106
|
+
readonly x: number;
|
|
107
|
+
readonly y: number;
|
|
108
|
+
readonly text: string;
|
|
109
|
+
/** Default `'sans-serif'`. */
|
|
110
|
+
readonly fontFamily?: string | undefined;
|
|
111
|
+
/** In oriented-image pixels. Default 32. */
|
|
112
|
+
readonly fontSize?: number | undefined;
|
|
113
|
+
/** Default `'#e5484d'`. */
|
|
114
|
+
readonly color?: string | undefined;
|
|
115
|
+
readonly bold?: boolean | undefined;
|
|
116
|
+
readonly italic?: boolean | undefined;
|
|
117
|
+
}
|
|
118
|
+
/** Image annotation. */
|
|
119
|
+
export interface ImageEditorImageAnnotation extends AnnotationCommon {
|
|
120
|
+
readonly kind: 'image';
|
|
121
|
+
readonly x: number;
|
|
122
|
+
readonly y: number;
|
|
123
|
+
readonly width: number;
|
|
124
|
+
readonly height: number;
|
|
125
|
+
/** URL or data URL. */
|
|
126
|
+
readonly src: string;
|
|
127
|
+
}
|
|
128
|
+
/** Redaction: burned into the pixels below it on render and export. */
|
|
129
|
+
export interface ImageEditorRedactAnnotation extends AnnotationCommon {
|
|
130
|
+
readonly kind: 'redact';
|
|
131
|
+
readonly x: number;
|
|
132
|
+
readonly y: number;
|
|
133
|
+
readonly width: number;
|
|
134
|
+
readonly height: number;
|
|
135
|
+
/** Default `'blur'`. */
|
|
136
|
+
readonly mode?: 'blur' | 'pixelate' | undefined;
|
|
137
|
+
/** Blur radius or pixel block size in oriented-image pixels. Default 12. */
|
|
138
|
+
readonly strength?: number | undefined;
|
|
139
|
+
}
|
|
140
|
+
/** Array order is z-order: the last annotation is drawn on top. */
|
|
141
|
+
export type ImageEditorAnnotation = ImageEditorBoxAnnotation | ImageEditorPointsAnnotation | ImageEditorTextAnnotation | ImageEditorImageAnnotation | ImageEditorRedactAnnotation;
|
|
142
|
+
/** Tools of the editor; `select` moves and resizes annotations, `pan` drags the zoomed view. */
|
|
143
|
+
export type ImageEditorTool = 'select' | 'pan' | 'crop' | 'straighten' | 'resize' | 'adjust' | 'filter' | 'frame' | ImageEditorAnnotationKind;
|
|
144
|
+
/** Crop ratio presets. A number is width / height. */
|
|
145
|
+
export type ImageEditorCropRatio = 'free' | 'square' | 'circle' | '3:2' | '4:3' | '16:9' | {
|
|
146
|
+
readonly label: string;
|
|
147
|
+
readonly ratio: number;
|
|
148
|
+
};
|
|
149
|
+
/** Built-in toolbar items. */
|
|
150
|
+
export type ImageEditorToolbarItemId = 'open' | 'undo' | 'redo' | 'reset' | 'zoomIn' | 'zoomOut' | 'pan' | 'select' | 'crop' | 'rotateLeft' | 'rotateRight' | 'flipHorizontal' | 'flipVertical' | 'straighten' | 'resize' | 'adjust' | 'filter' | 'frame' | ImageEditorAnnotationKind | 'save';
|
|
151
|
+
export interface ImageEditorCustomItem {
|
|
152
|
+
readonly id: string;
|
|
153
|
+
/** Accessible name and tooltip. */
|
|
154
|
+
readonly label: string;
|
|
155
|
+
/** Decorative icon; without one the label is shown. */
|
|
156
|
+
readonly icon?: ReactNode;
|
|
157
|
+
readonly disabled?: boolean | undefined;
|
|
158
|
+
readonly onClick?: ((actions: ImageEditorActions) => void) | undefined;
|
|
159
|
+
}
|
|
160
|
+
/** A toolbar entry: a built-in id, `'|'` for a separator, or a custom item. */
|
|
161
|
+
export type ImageEditorToolbarItem = ImageEditorToolbarItemId | '|' | ImageEditorCustomItem;
|
|
162
|
+
/** Quick-access items for a selected annotation or the crop. */
|
|
163
|
+
export type ImageEditorQuickItemId = 'edit' | 'clone' | 'delete' | 'bringForward' | 'sendBackward' | 'bringToFront' | 'sendToBack' | 'applyCrop' | 'cancelCrop';
|
|
164
|
+
/** Input that caused a change. */
|
|
165
|
+
export type ImageEditorInputSource = 'pointer' | 'keyboard' | 'touch' | 'api';
|
|
166
|
+
/** Operations reported by the before / after callbacks and `onEditComplete`. */
|
|
167
|
+
export type ImageEditorOperation = 'crop' | 'rotate' | 'flip' | 'resize' | 'zoom' | 'pan' | 'annotation' | 'filter' | 'adjustment' | 'frame' | 'selection' | 'undo' | 'redo' | 'reset' | 'open';
|
|
168
|
+
/** Second argument of the change callbacks (frozen). */
|
|
169
|
+
export interface ImageEditorChangeEvent {
|
|
170
|
+
readonly source: ImageEditorInputSource;
|
|
171
|
+
readonly reason: ImageEditorOperation | 'add' | 'update' | 'delete' | 'clone' | 'reorder';
|
|
172
|
+
}
|
|
173
|
+
/** After-callback payload: the value before and after the operation. */
|
|
174
|
+
export interface ImageEditorEvent<T> {
|
|
175
|
+
readonly operation: ImageEditorOperation;
|
|
176
|
+
readonly previous: T;
|
|
177
|
+
readonly value: T;
|
|
178
|
+
readonly source: ImageEditorInputSource;
|
|
179
|
+
/** Annotation operations: what happened. */
|
|
180
|
+
readonly action?: 'add' | 'update' | 'delete' | 'clone' | 'reorder' | undefined;
|
|
181
|
+
}
|
|
182
|
+
/** Before-callback payload; `preventDefault()` cancels the operation. */
|
|
183
|
+
export interface ImageEditorBeforeEvent<T> extends ImageEditorEvent<T> {
|
|
184
|
+
readonly defaultPrevented: boolean;
|
|
185
|
+
preventDefault(): void;
|
|
186
|
+
}
|
|
187
|
+
/** The undoable edit: everything history records. */
|
|
188
|
+
export interface ImageEditorEditState {
|
|
189
|
+
readonly transform: ImageEditorTransform;
|
|
190
|
+
readonly adjustments: ImageEditorAdjustments;
|
|
191
|
+
readonly filter: ImageEditorFilter;
|
|
192
|
+
readonly frame: ImageEditorFrame;
|
|
193
|
+
readonly annotations: readonly ImageEditorAnnotation[];
|
|
194
|
+
}
|
|
195
|
+
export interface ImageEditorHistoryState {
|
|
196
|
+
readonly canUndo: boolean;
|
|
197
|
+
readonly canRedo: boolean;
|
|
198
|
+
readonly undoCount: number;
|
|
199
|
+
readonly redoCount: number;
|
|
200
|
+
}
|
|
201
|
+
export interface ImageEditorEditCompleteEvent {
|
|
202
|
+
readonly operation: ImageEditorOperation;
|
|
203
|
+
readonly source: ImageEditorInputSource;
|
|
204
|
+
readonly state: ImageEditorEditState;
|
|
205
|
+
}
|
|
206
|
+
export interface ImageEditorToolbarItemClickEvent {
|
|
207
|
+
readonly id: string;
|
|
208
|
+
readonly source: ImageEditorInputSource;
|
|
209
|
+
readonly defaultPrevented: boolean;
|
|
210
|
+
/** Skips the item's built-in action. */
|
|
211
|
+
preventDefault(): void;
|
|
212
|
+
}
|
|
213
|
+
export interface ImageEditorExportOptions {
|
|
214
|
+
/** Default `'image/png'`. */
|
|
215
|
+
readonly type?: string | undefined;
|
|
216
|
+
/** 0 to 1 for lossy types. */
|
|
217
|
+
readonly quality?: number | undefined;
|
|
218
|
+
}
|
|
219
|
+
export interface ImageEditorBeforeExportEvent {
|
|
220
|
+
readonly type: string;
|
|
221
|
+
readonly quality: number | undefined;
|
|
222
|
+
readonly width: number;
|
|
223
|
+
readonly height: number;
|
|
224
|
+
readonly defaultPrevented: boolean;
|
|
225
|
+
preventDefault(): void;
|
|
226
|
+
}
|
|
227
|
+
/** `actionsRef`: imperative operations. */
|
|
228
|
+
export interface ImageEditorActions {
|
|
229
|
+
/** The edited image at output size; `null` when nothing is loaded or `onBeforeExport` cancelled. */
|
|
230
|
+
toBlob(options?: ImageEditorExportOptions): Promise<Blob | null>;
|
|
231
|
+
toDataURL(options?: ImageEditorExportOptions): Promise<string | null>;
|
|
232
|
+
toImageData(): Promise<ImageData | null>;
|
|
233
|
+
/** Opens another image; the edit starts over. */
|
|
234
|
+
open(source: ImageEditorSource): void;
|
|
235
|
+
undo(): void;
|
|
236
|
+
redo(): void;
|
|
237
|
+
reset(): void;
|
|
238
|
+
/** Proposes a committed zoom (clamped to `minZoom` / `maxZoom`). */
|
|
239
|
+
zoomTo(zoom: number): void;
|
|
240
|
+
/** Selects an annotation by id (`null` clears). */
|
|
241
|
+
select(id: string | null): void;
|
|
242
|
+
setTool(tool: ImageEditorTool): void;
|
|
243
|
+
/** Output size of the current edit, or `null` before load. */
|
|
244
|
+
getSize(): {
|
|
245
|
+
width: number;
|
|
246
|
+
height: number;
|
|
247
|
+
} | null;
|
|
248
|
+
/** Focuses the canvas. */
|
|
249
|
+
focus(): void;
|
|
250
|
+
}
|
|
251
|
+
/** User-visible strings. */
|
|
252
|
+
export interface ImageEditorLocaleText {
|
|
253
|
+
readonly toolbar: string;
|
|
254
|
+
readonly canvas: string;
|
|
255
|
+
readonly empty: string;
|
|
256
|
+
readonly loading: string;
|
|
257
|
+
readonly loadError: string;
|
|
258
|
+
readonly keyboardHint: string;
|
|
259
|
+
readonly quickToolbar: string;
|
|
260
|
+
readonly open: string;
|
|
261
|
+
readonly undo: string;
|
|
262
|
+
readonly redo: string;
|
|
263
|
+
readonly reset: string;
|
|
264
|
+
readonly zoomIn: string;
|
|
265
|
+
readonly zoomOut: string;
|
|
266
|
+
readonly pan: string;
|
|
267
|
+
readonly select: string;
|
|
268
|
+
readonly crop: string;
|
|
269
|
+
readonly rotateLeft: string;
|
|
270
|
+
readonly rotateRight: string;
|
|
271
|
+
readonly flipHorizontal: string;
|
|
272
|
+
readonly flipVertical: string;
|
|
273
|
+
readonly straighten: string;
|
|
274
|
+
readonly resize: string;
|
|
275
|
+
readonly adjust: string;
|
|
276
|
+
readonly filter: string;
|
|
277
|
+
readonly frame: string;
|
|
278
|
+
readonly rectangle: string;
|
|
279
|
+
readonly ellipse: string;
|
|
280
|
+
readonly line: string;
|
|
281
|
+
readonly arrow: string;
|
|
282
|
+
readonly path: string;
|
|
283
|
+
readonly text: string;
|
|
284
|
+
readonly freehand: string;
|
|
285
|
+
readonly image: string;
|
|
286
|
+
readonly redact: string;
|
|
287
|
+
readonly save: string;
|
|
288
|
+
readonly edit: string;
|
|
289
|
+
readonly clone: string;
|
|
290
|
+
readonly delete: string;
|
|
291
|
+
readonly bringForward: string;
|
|
292
|
+
readonly sendBackward: string;
|
|
293
|
+
readonly bringToFront: string;
|
|
294
|
+
readonly sendToBack: string;
|
|
295
|
+
readonly applyCrop: string;
|
|
296
|
+
readonly cancelCrop: string;
|
|
297
|
+
readonly apply: string;
|
|
298
|
+
readonly width: string;
|
|
299
|
+
readonly height: string;
|
|
300
|
+
readonly keepAspectRatio: string;
|
|
301
|
+
readonly brightness: string;
|
|
302
|
+
readonly contrast: string;
|
|
303
|
+
readonly hue: string;
|
|
304
|
+
readonly saturation: string;
|
|
305
|
+
readonly exposure: string;
|
|
306
|
+
readonly opacity: string;
|
|
307
|
+
readonly blur: string;
|
|
308
|
+
readonly ratioFree: string;
|
|
309
|
+
readonly ratioSquare: string;
|
|
310
|
+
readonly ratioCircle: string;
|
|
311
|
+
readonly filterDefault: string;
|
|
312
|
+
readonly filterChrome: string;
|
|
313
|
+
readonly filterCold: string;
|
|
314
|
+
readonly filterWarm: string;
|
|
315
|
+
readonly filterGrayscale: string;
|
|
316
|
+
readonly filterSepia: string;
|
|
317
|
+
readonly filterInvert: string;
|
|
318
|
+
readonly frameNone: string;
|
|
319
|
+
readonly frameMat: string;
|
|
320
|
+
readonly frameBevel: string;
|
|
321
|
+
readonly frameLine: string;
|
|
322
|
+
readonly frameInset: string;
|
|
323
|
+
readonly frameHook: string;
|
|
324
|
+
readonly frameColor: string;
|
|
325
|
+
readonly frameSize: string;
|
|
326
|
+
readonly strokeColor: string;
|
|
327
|
+
readonly fillColor: string;
|
|
328
|
+
readonly strokeWidth: string;
|
|
329
|
+
readonly fontSize: string;
|
|
330
|
+
readonly redactBlur: string;
|
|
331
|
+
readonly redactPixelate: string;
|
|
332
|
+
readonly strength: string;
|
|
333
|
+
readonly textEditor: string;
|
|
334
|
+
/** Live-region text for a committed operation. */
|
|
335
|
+
readonly announce: (operation: ImageEditorOperation, detail?: string) => string;
|
|
336
|
+
}
|
|
337
|
+
export type {} from '@salmonui/core/locale';
|
|
338
|
+
declare module '@salmonui/core/locale' {
|
|
339
|
+
interface LocaleCatalog {
|
|
340
|
+
readonly imageEditor?: Partial<ImageEditorLocaleText> | undefined;
|
|
341
|
+
}
|
|
342
|
+
}
|
|
343
|
+
export type ImageEditorPart = 'toolbar' | 'panel' | 'stage' | 'canvas' | 'quickToolbar';
|
|
344
|
+
export interface ImageEditorProps extends Omit<HTMLAttributes<HTMLDivElement>, 'onLoad' | 'onSelect' | 'defaultValue' | 'onChange' | 'children'> {
|
|
345
|
+
/** The image. */
|
|
346
|
+
readonly src?: ImageEditorSource | null | undefined;
|
|
347
|
+
/** `crossOrigin` of a URL source. Default `'anonymous'` (export needs an untainted canvas). */
|
|
348
|
+
readonly crossOrigin?: '' | 'anonymous' | 'use-credentials' | null | undefined;
|
|
349
|
+
readonly onLoad?: ((info: {
|
|
350
|
+
readonly width: number;
|
|
351
|
+
readonly height: number;
|
|
352
|
+
}) => void) | undefined;
|
|
353
|
+
readonly onLoadError?: ((error: unknown) => void) | undefined;
|
|
354
|
+
/** `accept` of the `'open'` item's file input. Default `'image/*'`. */
|
|
355
|
+
readonly accept?: string | undefined;
|
|
356
|
+
readonly transform?: ImageEditorTransform | undefined;
|
|
357
|
+
readonly defaultTransform?: ImageEditorTransform | undefined;
|
|
358
|
+
readonly onTransformChange?: ((transform: ImageEditorTransform, event: ImageEditorChangeEvent) => void) | undefined;
|
|
359
|
+
readonly adjustments?: ImageEditorAdjustments | undefined;
|
|
360
|
+
readonly defaultAdjustments?: ImageEditorAdjustments | undefined;
|
|
361
|
+
readonly onAdjustmentsChange?: ((adjustments: ImageEditorAdjustments, event: ImageEditorChangeEvent) => void) | undefined;
|
|
362
|
+
readonly filter?: ImageEditorFilter | undefined;
|
|
363
|
+
readonly defaultFilter?: ImageEditorFilter | undefined;
|
|
364
|
+
readonly onFilterChange?: ((filter: ImageEditorFilter, event: ImageEditorChangeEvent) => void) | undefined;
|
|
365
|
+
readonly frame?: ImageEditorFrame | undefined;
|
|
366
|
+
readonly defaultFrame?: ImageEditorFrame | undefined;
|
|
367
|
+
readonly onFrameChange?: ((frame: ImageEditorFrame, event: ImageEditorChangeEvent) => void) | undefined;
|
|
368
|
+
readonly annotations?: readonly ImageEditorAnnotation[] | undefined;
|
|
369
|
+
readonly defaultAnnotations?: readonly ImageEditorAnnotation[] | undefined;
|
|
370
|
+
readonly onAnnotationsChange?: ((annotations: readonly ImageEditorAnnotation[], event: ImageEditorChangeEvent) => void) | undefined;
|
|
371
|
+
readonly tool?: ImageEditorTool | undefined;
|
|
372
|
+
readonly defaultTool?: ImageEditorTool | undefined;
|
|
373
|
+
readonly onToolChange?: ((tool: ImageEditorTool, event: ImageEditorChangeEvent) => void) | undefined;
|
|
374
|
+
/** Crop presets in the crop panel. Default `['free', 'square', 'circle', '3:2', '4:3', '16:9']`. */
|
|
375
|
+
readonly cropRatios?: readonly ImageEditorCropRatio[] | undefined;
|
|
376
|
+
/** Default 1. */
|
|
377
|
+
readonly minZoom?: number | undefined;
|
|
378
|
+
/** Default 10. */
|
|
379
|
+
readonly maxZoom?: number | undefined;
|
|
380
|
+
/** Maximum undo steps. Default 50. */
|
|
381
|
+
readonly undoLimit?: number | undefined;
|
|
382
|
+
/** Maps to `ctx.imageSmoothingEnabled` on the view and the export. Default `true`. */
|
|
383
|
+
readonly imageSmoothing?: boolean | undefined;
|
|
384
|
+
/** Style of new annotations (stroke, fill, width, font). */
|
|
385
|
+
readonly annotationDefaults?: Partial<ImageEditorShapeStyle & {
|
|
386
|
+
fontFamily: string;
|
|
387
|
+
fontSize: number;
|
|
388
|
+
color: string;
|
|
389
|
+
}> | undefined;
|
|
390
|
+
/** Toolbar items. Default `IMAGE_EDITOR_DEFAULT_TOOLBAR`; `false` hides the toolbar. */
|
|
391
|
+
readonly toolbar?: readonly ImageEditorToolbarItem[] | false | undefined;
|
|
392
|
+
/** Replaces the toolbar: receives the default toolbar element and the actions. */
|
|
393
|
+
readonly renderToolbar?: ((toolbar: ReactNode, actions: ImageEditorActions) => ReactNode) | undefined;
|
|
394
|
+
readonly onToolbarItemClick?: ((event: ImageEditorToolbarItemClickEvent) => void) | undefined;
|
|
395
|
+
/** Quick-access items; `false` hides the quick-access toolbar. */
|
|
396
|
+
readonly quickAccessToolbar?: readonly ImageEditorQuickItemId[] | false | undefined;
|
|
397
|
+
readonly onHistoryChange?: ((history: ImageEditorHistoryState) => void) | undefined;
|
|
398
|
+
readonly onEditComplete?: ((event: ImageEditorEditCompleteEvent) => void) | undefined;
|
|
399
|
+
readonly onBeforeExport?: ((event: ImageEditorBeforeExportEvent) => void) | undefined;
|
|
400
|
+
/** The `'save'` toolbar item exports a PNG and passes it here (the download is the application's). */
|
|
401
|
+
readonly onSave?: ((blob: Blob) => void) | undefined;
|
|
402
|
+
readonly onBeforeCrop?: ((event: ImageEditorBeforeEvent<ImageEditorCrop | null>) => void) | undefined;
|
|
403
|
+
readonly onCrop?: ((event: ImageEditorEvent<ImageEditorCrop | null>) => void) | undefined;
|
|
404
|
+
readonly onBeforeRotate?: ((event: ImageEditorBeforeEvent<{
|
|
405
|
+
readonly rotation: number;
|
|
406
|
+
readonly straighten: number;
|
|
407
|
+
}>) => void) | undefined;
|
|
408
|
+
readonly onRotate?: ((event: ImageEditorEvent<{
|
|
409
|
+
readonly rotation: number;
|
|
410
|
+
readonly straighten: number;
|
|
411
|
+
}>) => void) | undefined;
|
|
412
|
+
readonly onBeforeFlip?: ((event: ImageEditorBeforeEvent<ImageEditorFlip>) => void) | undefined;
|
|
413
|
+
readonly onFlip?: ((event: ImageEditorEvent<ImageEditorFlip>) => void) | undefined;
|
|
414
|
+
readonly onBeforeResize?: ((event: ImageEditorBeforeEvent<{
|
|
415
|
+
readonly width: number;
|
|
416
|
+
readonly height: number;
|
|
417
|
+
} | null>) => void) | undefined;
|
|
418
|
+
readonly onResize?: ((event: ImageEditorEvent<{
|
|
419
|
+
readonly width: number;
|
|
420
|
+
readonly height: number;
|
|
421
|
+
} | null>) => void) | undefined;
|
|
422
|
+
readonly onBeforeZoom?: ((event: ImageEditorBeforeEvent<number>) => void) | undefined;
|
|
423
|
+
readonly onZoom?: ((event: ImageEditorEvent<number>) => void) | undefined;
|
|
424
|
+
readonly onBeforePan?: ((event: ImageEditorBeforeEvent<{
|
|
425
|
+
readonly x: number;
|
|
426
|
+
readonly y: number;
|
|
427
|
+
}>) => void) | undefined;
|
|
428
|
+
readonly onPan?: ((event: ImageEditorEvent<{
|
|
429
|
+
readonly x: number;
|
|
430
|
+
readonly y: number;
|
|
431
|
+
}>) => void) | undefined;
|
|
432
|
+
readonly onBeforeAnnotationChange?: ((event: ImageEditorBeforeEvent<readonly ImageEditorAnnotation[]>) => void) | undefined;
|
|
433
|
+
readonly onAnnotationChange?: ((event: ImageEditorEvent<readonly ImageEditorAnnotation[]>) => void) | undefined;
|
|
434
|
+
readonly onBeforeFilter?: ((event: ImageEditorBeforeEvent<ImageEditorFilter>) => void) | undefined;
|
|
435
|
+
readonly onFilter?: ((event: ImageEditorEvent<ImageEditorFilter>) => void) | undefined;
|
|
436
|
+
readonly onBeforeAdjust?: ((event: ImageEditorBeforeEvent<ImageEditorAdjustments>) => void) | undefined;
|
|
437
|
+
readonly onAdjust?: ((event: ImageEditorEvent<ImageEditorAdjustments>) => void) | undefined;
|
|
438
|
+
readonly onBeforeFrame?: ((event: ImageEditorBeforeEvent<ImageEditorFrame>) => void) | undefined;
|
|
439
|
+
readonly onFrame?: ((event: ImageEditorEvent<ImageEditorFrame>) => void) | undefined;
|
|
440
|
+
readonly onBeforeSelect?: ((event: ImageEditorBeforeEvent<string | null>) => void) | undefined;
|
|
441
|
+
readonly onSelect?: ((event: ImageEditorEvent<string | null>) => void) | undefined;
|
|
442
|
+
readonly localeText?: Partial<ImageEditorLocaleText> | undefined;
|
|
443
|
+
readonly classNames?: Partial<Record<ImageEditorPart, string>> | undefined;
|
|
444
|
+
readonly styles?: Partial<Record<ImageEditorPart, CSSProperties>> | undefined;
|
|
445
|
+
/** Imperative operations (export, history, zoom). */
|
|
446
|
+
readonly actionsRef?: RefObject<ImageEditorActions | null> | undefined;
|
|
447
|
+
/** The canvas (the primary focusable element). */
|
|
448
|
+
readonly ref?: Ref<HTMLCanvasElement> | undefined;
|
|
449
|
+
}
|
|
450
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/image-editor/types.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtF,2DAA2D;AAC3D,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,IAAI,GAAG,WAAW,GAAG,SAAS,GAAG,gBAAgB,GAAG,iBAAiB,CAAC;AAE/G,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAErD,uCAAuC;AACvC,MAAM,WAAW,eAAe;IAC9B,QAAQ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ACjE,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,GAAG,SAAS,CAAC;IAC3E,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,aAAa,CAAC,CAAC,GAAG,SAAS,CAAC;IAC9E,qDAAqD;IACrD,QAAQ,CAAC,UAAU,CAAC,EAAE,SAAS,CAAC,kBAAkB,GAAG,IAAI,CAAC,GAAG,SAAS,CAAC;IACvE,kDAAkD;IAClD,QAAQ,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC;CACnD"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
// Public types of `ImageEditor`. Every coordinate of `transform.crop` and of
|
|
2
|
+
// `annotations` is in the oriented image space: source pixels after the
|
|
3
|
+
// 90-degree rotation and the flips, before the crop (its size is the source
|
|
4
|
+
// size, with width and height swapped for 90 and 270 degrees).
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/image-editor/types.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,wEAAwE;AACxE,4EAA4E;AAC5E,+DAA+D"}
|