@nextcloud/image-editor 1.0.0-beta.1 → 1.0.0-beta.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/dist/index.d.ts CHANGED
@@ -21,16 +21,31 @@ declare type __VLS_Props = {
21
21
  * changing it later has no effect until the source changes too.
22
22
  */
23
23
  initialState?: EditorState;
24
+ /**
25
+ * Raise while the host is storing a saved image. The editor shows
26
+ * the same progress it shows for its own export, so one indicator
27
+ * covers the whole wait: the editor only knows when it handed the
28
+ * blob over, not when the upload finished.
29
+ */
30
+ saving?: boolean;
24
31
  };
25
32
 
26
33
  /** All values range from -100 to 100, 0 meaning unchanged */
27
34
  export declare interface Adjustments {
35
+ /** Light, in stops: the range spans four of them */
36
+ exposure: number;
28
37
  brightness: number;
29
38
  contrast: number;
30
39
  saturation: number;
40
+ /** Blue to amber, the warmth of the white balance */
41
+ temperature: number;
42
+ /** Green to magenta, the other white balance axis */
43
+ tint: number;
44
+ /** Local contrast around edges */
45
+ sharpen: number;
31
46
  }
32
47
 
33
- export declare type Annotation = DrawAnnotation | ArrowAnnotation | BoxAnnotation | TextAnnotation | RedactAnnotation;
48
+ export declare type Annotation = DrawAnnotation | ArrowAnnotation | LineAnnotation | BoxAnnotation | TextAnnotation | RedactAnnotation;
34
49
 
35
50
  export declare interface ArrowAnnotation {
36
51
  id: string;
@@ -144,6 +159,15 @@ container: HTMLDivElement;
144
159
  */
145
160
  export declare function isPristine(state: EditorState): boolean;
146
161
 
162
+ declare interface LineAnnotation {
163
+ id: string;
164
+ type: 'line';
165
+ /** [fromX, fromY, toX, toY] in oriented image coordinates */
166
+ points: [number, number, number, number];
167
+ color: string;
168
+ strokeWidth: number;
169
+ }
170
+
147
171
  export declare interface Rect {
148
172
  x: number;
149
173
  y: number;