react-mindee-js
Advanced tools
Comparing version
# CHANGELOG | ||
## v1.3.3 (04/04/2022) | ||
### New | ||
- ✨ add dynamic zoom … | ||
### Fixes | ||
- 🐛 add image cross origin header | ||
## v1.3.2 (06/01/2022) | ||
@@ -4,0 +14,0 @@ |
@@ -0,1 +1,2 @@ | ||
import { Stage } from '..'; | ||
import Konva from 'konva'; | ||
@@ -59,3 +60,3 @@ import { Line, LineConfig } from 'konva/lib/shapes/Line'; | ||
data?: AnnotationData; | ||
getStage?: (stage: Konva.Stage) => void; | ||
getStage?: (stage: Stage) => void; | ||
onShapeMultiSelect?: (shapes: AnnotationShape[]) => void; | ||
@@ -76,5 +77,5 @@ onShapeClick?: (shape: AnnotationShape) => void; | ||
pointerPosition?: PointerPosition; | ||
getStage?: (stage: Konva.Stage) => void; | ||
getStage?: (stage: Stage) => void; | ||
style?: CSSProperties; | ||
options?: AnnotationLensOptions; | ||
} |
import { AnnotationData } from "../common/types"; | ||
export declare const rotateImage: ({ image, orientation: degrees, }: AnnotationData) => Promise<string>; | ||
export declare const rotateLeft: (file: string) => Promise<string>; | ||
export declare const rotateRight: (file: string) => Promise<string>; |
@@ -23,2 +23,3 @@ export const rotateImage = ({ image, orientation: degrees, }) => { | ||
const image = new Image(); | ||
image.crossOrigin = ''; | ||
image.onload = () => { | ||
@@ -87,3 +88,1 @@ // Create canvas (off screen) to render image and apply transformations | ||
}); | ||
export const rotateLeft = (file) => applyRotation(file, 8); | ||
export const rotateRight = (file) => applyRotation(file, 6); |
{ | ||
"name": "react-mindee-js", | ||
"version": "1.3.3-rc.1", | ||
"version": "1.3.3", | ||
"description": "Front-End Computer Vision SDK for React", | ||
@@ -5,0 +5,0 @@ "author": "@mindee", |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
-50%102143
-0.11%1116
-0.18%