@abidibo/react-cam-roi 0.12.1 → 0.13.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.
@@ -1,3 +1,4 @@
1
+ import * as fabric from 'fabric';
1
2
  type ToolbarProps = {
2
3
  imageSize: {
3
4
  width: number;
@@ -1,5 +1,5 @@
1
1
  export interface FieldProps<T> {
2
- onChange: (value: T) => void;
2
+ onChange: (value: T | null) => void;
3
3
  value: T;
4
4
  label?: string;
5
5
  helperText?: string;
@@ -4,3 +4,5 @@ export declare const humanize: (str: string) => string;
4
4
  export declare const formatString: (str: string, placeholders: Record<string, string | number>) => string;
5
5
  export declare const abs2Perc: (value: number, ref: number) => number;
6
6
  export declare const perc2Abs: (value: number, ref: number) => number;
7
+ export declare const defaultTo: (dft: unknown) => (value: unknown) => unknown;
8
+ export declare const compose: (...fns: Function[]) => (x: any) => any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abidibo/react-cam-roi",
3
- "version": "0.12.1",
3
+ "version": "0.13.1",
4
4
  "description": "A react component for drawing ROI over images and managing metadata",
5
5
  "repository": {
6
6
  "type": "git",