@annotorious/annotorious
Advanced tools
@@ -6,3 +6,3 @@ import { SvelteComponent } from 'svelte'; | ||
| import { ImageAnnotation, ShapeType } from './model'; | ||
| import { Theme, AnnotoriousOpts } from './AnnotoriousOpts'; | ||
| import { Theme, AnnotoriousOpts, DrawingMode } from './AnnotoriousOpts'; | ||
| export interface ImageAnnotator<I extends Annotation = ImageAnnotation, E extends unknown = ImageAnnotation> extends Annotator<I, E> { | ||
@@ -18,4 +18,5 @@ element: HTMLDivElement; | ||
| setDrawingEnabled(enabled: boolean): void; | ||
| setDrawingMode(mode: DrawingMode): void; | ||
| setTheme(theme: Theme): void; | ||
| } | ||
| export declare const createImageAnnotator: <I extends Annotation = ImageAnnotation, E extends unknown = ImageAnnotation>(image: string | HTMLImageElement | HTMLCanvasElement, options?: AnnotoriousOpts<I, E>) => ImageAnnotator<I, E>; |
+2
-2
| { | ||
| "name": "@annotorious/annotorious", | ||
| "version": "3.7.18", | ||
| "version": "3.7.19", | ||
| "description": "Add image annotation functionality to any web page with a few lines of JavaScript", | ||
@@ -54,3 +54,3 @@ "author": "Rainer Simon", | ||
| "dependencies": { | ||
| "@annotorious/core": "3.7.18", | ||
| "@annotorious/core": "3.7.19", | ||
| "dequal": "^2.0.3", | ||
@@ -57,0 +57,0 @@ "rbush": "^4.0.1", |
@@ -13,3 +13,3 @@ import type { SvelteComponent } from 'svelte'; | ||
| import { fillDefaults, type Theme } from './AnnotoriousOpts'; | ||
| import type { AnnotoriousOpts } from './AnnotoriousOpts'; | ||
| import type { AnnotoriousOpts, DrawingMode } from './AnnotoriousOpts'; | ||
| import { initKeyboardCommands } from './keyboardCommands'; | ||
@@ -41,2 +41,4 @@ | ||
| setDrawingMode(mode: DrawingMode): void; | ||
| setTheme(theme: Theme): void; | ||
@@ -161,2 +163,5 @@ | ||
| annotationLayer.$set({ drawingEnabled: enabled }); | ||
| const setDrawingMode = (mode: DrawingMode) => | ||
| annotationLayer.$set({ preferredDrawingMode: mode }); | ||
@@ -194,2 +199,3 @@ const setFilter = (_: Filter) => { | ||
| setDrawingEnabled, | ||
| setDrawingMode, | ||
| setDrawingTool, | ||
@@ -196,0 +202,0 @@ setFilter, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
1294976
0.07%9883
0.06%+ Added
- Removed
Updated