New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@annotorious/annotorious

Package Overview
Dependencies
Maintainers
1
Versions
127
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@annotorious/annotorious - npm Package Compare versions

Comparing version
3.7.18
to
3.7.19
+2
-1
dist/Annotorious.d.ts

@@ -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>;
{
"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