@linalgo/annotate-core
Advanced tools
Comparing version 0.0.14 to 0.0.15
@@ -19,3 +19,10 @@ export interface XPathSelection { | ||
} | ||
export declare type Selection = XPathSelection | TextPositionSelection | TextQuoteSelection; | ||
export interface BoundingBoxSelection { | ||
type?: string; | ||
x: number; | ||
y: number; | ||
width: number; | ||
height: number; | ||
} | ||
export declare type Selection = XPathSelection | TextPositionSelection | TextQuoteSelection | BoundingBoxSelection; | ||
export declare function isXPathSelection(obj: any): obj is XPathSelection; | ||
@@ -22,0 +29,0 @@ export declare function isTextPositionSelection(obj: any): obj is TextPositionSelection; |
{ | ||
"name": "@linalgo/annotate-core", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"description": "A library for html document annotations following W3C standards.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -22,4 +22,12 @@ export interface XPathSelection { | ||
export type Selection = XPathSelection | TextPositionSelection | TextQuoteSelection; | ||
export interface BoundingBoxSelection { | ||
type?: string; | ||
x: number; | ||
y: number; | ||
width: number; | ||
height: number; | ||
} | ||
export type Selection = XPathSelection | TextPositionSelection | TextQuoteSelection | BoundingBoxSelection; | ||
export function isXPathSelection(obj: any): obj is XPathSelection { | ||
@@ -26,0 +34,0 @@ if ('startContainer' in obj && 'endContainer' in obj && 'startOffset' in obj && 'endOffset' in obj) { |
Sorry, the diff of this file is too big to display
1461
2290676
35