New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@annotorious/annotorious

Package Overview
Dependencies
Maintainers
0
Versions
64
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.0.0-rc.32 to 3.0.0

1

dist/keyboardCommands.d.ts
import { Annotation, UndoStack } from '@annotorious/core';
export declare const isMac: boolean;
export declare const initKeyboardCommands: <T extends Annotation>(undoStack: UndoStack<T>, container?: Element) => {
destroy: () => void;
};

6

package.json
{
"name": "@annotorious/annotorious",
"version": "3.0.0-rc.32",
"version": "3.0.0",
"description": "Add image annotation functionality to any web page with a few lines of JavaScript",

@@ -42,3 +42,3 @@ "author": "Rainer Simon",

"@types/rbush": "^3.0.4",
"jsdom": "^24.1.1",
"jsdom": "^25.0.0",
"svelte": "^4.2.19",

@@ -52,3 +52,3 @@ "svelte-preprocess": "^6.0.2",

"dependencies": {
"@annotorious/core": "3.0.0-rc.32",
"@annotorious/core": "3.0.0",
"rbush": "^4.0.1",

@@ -55,0 +55,0 @@ "uuid": "^10.0.0"

@@ -1,4 +0,9 @@

export const isTouch = window && navigator && (
// @ts-ignore
'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0
);
export const isTouch = (() => {
if (typeof window === 'undefined' || typeof navigator === 'undefined')
return false;
return 'ontouchstart' in window ||
navigator.maxTouchPoints > 0 ||
// @ts-ignore
navigator.msMaxTouchPoints > 0;
})();
import type { Annotation, UndoStack } from '@annotorious/core';
const isMac = navigator.userAgent.indexOf('Mac OS X') !== -1;
export const isMac = (() => {
if (typeof navigator === 'undefined') return false;
return navigator.userAgent.indexOf('Mac OS X') !== -1;
})();
export const initKeyboardCommands = <T extends Annotation>(

@@ -6,0 +10,0 @@ undoStack: UndoStack<T>,

@@ -40,3 +40,4 @@ import type { ImageAnnotation, ImageAnnotationTarget } from '../model';

const selection = createSelectionState(store, opts.userSelectAction);
const selection = createSelectionState(store);
selection.setUserSelectAction(opts.userSelectAction);

@@ -43,0 +44,0 @@ const hover = createHoverState(store);

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc