🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

react-mindee-js

Package Overview
Dependencies
Maintainers
7
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-mindee-js - npm Package Compare versions

Comparing version

to
1.3.3

10

CHANGELOG.md
# 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 @@

5

dist/common/types.d.ts

@@ -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;
}

2

dist/utils/orientation.d.ts
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",