@annotorious/annotorious
Advanced tools
Comparing version 3.0.0-rc.32 to 3.0.0
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; | ||
}; |
{ | ||
"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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
889129
6187
0
+ Added@annotorious/core@3.0.0(transitive)
- Removed@annotorious/core@3.0.0-rc.32(transitive)
Updated@annotorious/core@3.0.0