@annotorious/openseadragon 3.0.0-rc.9 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Annotorious.d.ts +5 -6
- package/dist/annotation/index.d.ts +0 -1
- package/dist/annotation/pixi/PixiLayer.svelte.d.ts +1 -1
- package/dist/annotation/pixi/PixiLayerClickEvent.d.ts +1 -2
- package/dist/annotation/pixi/PixiLayerConfiguration.d.ts +1 -2
- package/dist/annotation/pixi/index.d.ts +0 -1
- package/dist/annotation/pixi/stageRenderer.d.ts +9 -8
- package/dist/annotation/svg/OSDLayer.svelte.d.ts +1 -1
- package/dist/annotation/svg/drawing/OSDToolMount.svelte.d.ts +1 -1
- package/dist/annotation/svg/drawing/SVGDrawingLayer.svelte.d.ts +1 -1
- package/dist/annotation/svg/index.d.ts +0 -1
- package/dist/annotation/svg/presence/SVGPresenceLabel.svelte.d.ts +1 -1
- package/dist/annotation/svg/presence/SVGPresenceLayer.svelte.d.ts +1 -1
- package/dist/annotation/svg/presence/shapes/PresencePolygon.svelte.d.ts +1 -1
- package/dist/annotation/svg/presence/shapes/PresenceRectangle.svelte.d.ts +1 -1
- package/dist/annotorious-openseadragon.css +1 -1
- package/dist/annotorious-openseadragon.es.js +29381 -20357
- package/dist/annotorious-openseadragon.es.js.map +1 -1
- package/dist/annotorious-openseadragon.js +627 -1038
- package/dist/annotorious-openseadragon.js.map +1 -1
- package/dist/api/fitBounds.d.ts +2 -3
- package/dist/api/index.d.ts +0 -1
- package/dist/index.d.ts +7 -15
- package/dist/themes/index.d.ts +0 -1
- package/dist/themes/setTheme.d.ts +2 -3
- package/package.json +17 -16
- package/dist/Annotorious.d.ts.map +0 -1
- package/dist/annotation/index.d.ts.map +0 -1
- package/dist/annotation/pixi/PixiLayerClickEvent.d.ts.map +0 -1
- package/dist/annotation/pixi/PixiLayerConfiguration.d.ts.map +0 -1
- package/dist/annotation/pixi/index.d.ts.map +0 -1
- package/dist/annotation/pixi/stageRenderer.d.ts.map +0 -1
- package/dist/annotation/svg/index.d.ts.map +0 -1
- package/dist/api/fitBounds.d.ts.map +0 -1
- package/dist/api/index.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/themes/index.d.ts.map +0 -1
- package/dist/themes/setTheme.d.ts.map +0 -1
package/dist/Annotorious.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
1
|
+
import { default as OpenSeadragon } from 'openseadragon';
|
|
2
|
+
import { SvelteComponent } from 'svelte';
|
|
3
|
+
import { Annotator } from '@annotorious/core';
|
|
4
|
+
import { AnnotoriousOpts, DrawingTool, DrawingToolOpts, ImageAnnotation, ShapeType } from '@annotorious/annotorious';
|
|
5
|
+
import { FitboundsOptions } from './api';
|
|
6
6
|
export interface OpenSeadragonAnnotator<E extends unknown = ImageAnnotation> extends Annotator<ImageAnnotation, E> {
|
|
7
7
|
viewer: OpenSeadragon.Viewer;
|
|
8
8
|
fitBounds(arg: {
|
|
@@ -19,4 +19,3 @@ export interface OpenSeadragonAnnotator<E extends unknown = ImageAnnotation> ext
|
|
|
19
19
|
setTheme(theme: 'light' | 'dark' | 'auto'): void;
|
|
20
20
|
}
|
|
21
21
|
export declare const createOSDAnnotator: <E extends unknown = ImageAnnotation>(viewer: OpenSeadragon.Viewer, options?: AnnotoriousOpts<ImageAnnotation, E>) => OpenSeadragonAnnotator<E>;
|
|
22
|
-
//# sourceMappingURL=Annotorious.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ImageAnnotation } from '@annotorious/annotorious/src';
|
|
2
2
|
export interface PixiLayerClickEvent {
|
|
3
3
|
originalEvent: PointerEvent;
|
|
4
4
|
annotation?: ImageAnnotation;
|
|
5
5
|
}
|
|
6
|
-
//# sourceMappingURL=PixiLayerClickEvent.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { DrawingStyle, ImageAnnotation } from '@annotorious/annotorious/src';
|
|
2
2
|
export interface PixiLayerConfiguration {
|
|
3
3
|
/**
|
|
4
4
|
* Filter functions determine whether an annotation
|
|
@@ -11,4 +11,3 @@ export interface PixiLayerConfiguration {
|
|
|
11
11
|
export type PixiLayerFilter = {
|
|
12
12
|
(annotation: ImageAnnotation): boolean;
|
|
13
13
|
};
|
|
14
|
-
//# sourceMappingURL=PixiLayerConfiguration.d.ts.map
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { default as OpenSeadragon } from 'openseadragon';
|
|
2
|
+
import { AnnotationState, DrawingStyleExpression, Filter, Selection } from '@annotorious/core';
|
|
3
|
+
import { ImageAnnotation } from '@annotorious/annotorious';
|
|
4
4
|
export declare const createStage: (viewer: OpenSeadragon.Viewer, canvas: HTMLCanvasElement) => {
|
|
5
|
-
addAnnotation: (annotation: ImageAnnotation) => void;
|
|
5
|
+
addAnnotation: (annotation: ImageAnnotation, state?: AnnotationState) => void;
|
|
6
6
|
destroy: () => void;
|
|
7
7
|
redraw: () => void;
|
|
8
8
|
removeAnnotation: (annotation: ImageAnnotation) => void;
|
|
9
9
|
resize: (width: number, height: number) => void;
|
|
10
|
-
setFilter: (filter
|
|
10
|
+
setFilter: (filter?: Filter<ImageAnnotation>) => void;
|
|
11
|
+
setHovered: (annotationId?: string) => void;
|
|
11
12
|
setSelected: (selection: Selection) => void;
|
|
12
|
-
setStyle: (s
|
|
13
|
-
|
|
13
|
+
setStyle: (s?: DrawingStyleExpression<ImageAnnotation>) => void;
|
|
14
|
+
setVisible: (visible: boolean) => void;
|
|
15
|
+
updateAnnotation: (oldValue: ImageAnnotation, newValue: ImageAnnotation, state?: AnnotationState) => void;
|
|
14
16
|
};
|
|
15
|
-
//# sourceMappingURL=stageRenderer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { SvelteComponent as default } from 'svelte';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
canvas.a9s-gl-canvas{height:100%;left:0;position:absolute;top:0;width:100%}canvas.a9s-gl-canvas.hover{cursor:pointer!important}svg.svelte-190cqdf.svelte-190cqdf{pointer-events:none}svg.drawing.svelte-190cqdf.svelte-190cqdf{pointer-events:all}svg.svelte-190cqdf .svelte-190cqdf{pointer-events:all}text.svelte-1rehw2p{fill:#fff;font-family:Arial,Helvetica,sans-serif;font-weight:600}rect.svelte-1rehw2p{stroke-width:1.2;vector-effect:non-scaling-stroke}polygon.svelte-fgq4n0{stroke-width:1.2;vector-effect:non-scaling-stroke}rect.svelte-gze948{stroke-width:1.2;vector-effect:non-scaling-stroke}svg.svelte-1krwc4m{position:absolute;top:0;left:0;width:100%;height:100%;outline:none;pointer-events:none}.a9s-annotationlayer{box-sizing:border-box;height:100%;left:0;outline:none;position:absolute;top:0;touch-action:none;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.a9s-annotationlayer ellipse,.a9s-annotationlayer polygon,.a9s-annotationlayer rect{fill:transparent;shape-rendering:geometricPrecision;vector-effect:non-scaling-stroke}.a9s-edge-handle{fill:transparent;stroke:transparent;stroke-width:6px}.a9s-shape-handle,.a9s-
|
|
1
|
+
canvas.a9s-gl-canvas{height:100%;left:0;position:absolute;top:0;width:100%}canvas.a9s-gl-canvas.hidden{display:none}canvas.a9s-gl-canvas.hover{cursor:pointer!important}svg.svelte-190cqdf.svelte-190cqdf{pointer-events:none}svg.drawing.svelte-190cqdf.svelte-190cqdf{pointer-events:all}svg.svelte-190cqdf .svelte-190cqdf{pointer-events:all}text.svelte-1rehw2p{fill:#fff;font-family:Arial,Helvetica,sans-serif;font-weight:600}rect.svelte-1rehw2p{stroke-width:1.2;vector-effect:non-scaling-stroke}polygon.svelte-fgq4n0{stroke-width:1.2;vector-effect:non-scaling-stroke}rect.svelte-gze948{stroke-width:1.2;vector-effect:non-scaling-stroke}svg.svelte-1krwc4m{position:absolute;top:0;left:0;width:100%;height:100%;outline:none;pointer-events:none}.a9s-touch-halo.svelte-1sgkh33{fill:transparent;stroke-width:0}.a9s-touch-halo.touched.svelte-1sgkh33{fill:#ffffff40}.a9s-annotationlayer{box-sizing:border-box;height:100%;left:0;outline:none;position:absolute;top:0;touch-action:none;width:100%;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none}.a9s-annotationlayer.hidden{display:none}.a9s-annotationlayer .a9s-annotation{cursor:pointer}.a9s-annotationlayer ellipse,.a9s-annotationlayer polygon,.a9s-annotationlayer rect{fill:transparent;shape-rendering:geometricPrecision;vector-effect:non-scaling-stroke}.a9s-edge-handle{fill:transparent;stroke:transparent;stroke-width:6px}.a9s-shape-handle,.a9s-handle{cursor:move}.a9s-edge-handle-top{cursor:n-resize}.a9s-edge-handle-right{cursor:e-resize}.a9s-edge-handle-bottom{cursor:s-resize}.a9s-edge-handle-left{cursor:w-resize}.a9s-handle.a9s-corner-handle-topleft{cursor:nw-resize}.a9s-handle.a9s-corner-handle-topright{cursor:ne-resize}.a9s-handle.a9s-corner-handle-bottomright{cursor:se-resize}.a9s-handle.a9s-corner-handle-bottomleft{cursor:sw-resize}.a9s-annotationlayer .a9s-outer,div[data-theme=dark] .a9s-annotationlayer .a9s-outer{display:none}.a9s-annotationlayer .a9s-inner,div[data-theme=dark] .a9s-annotationlayer .a9s-inner{fill:#0000001f;stroke:#000;stroke-width:1px}rect.a9s-handle,div[data-theme=dark] rect.a9s-handle{fill:#000;rx:2px}rect.a9s-close-polygon-handle,div[data-theme=dark] rect.a9s-close-polygon-handle{fill:#000;rx:1px}.a9s-annotationlayer .a9s-outer,div[data-theme=light] .a9s-annotationlayer .a9s-outer{display:block;stroke:#00000040;stroke-width:3.5px}.a9s-annotationlayer .a9s-inner,div[data-theme=light] .a9s-annotationlayer .a9s-inner{fill:#ffffff26;stroke:#fff;stroke-width:1.5px}rect.a9s-handle,div[data-theme=light] rect.a9s-handle{fill:#fff;rx:1px;stroke:#00000073;stroke-width:1px}rect.a9s-close-polygon-handle,div[data-theme=light] rect.a9s-close-polygon-handle{fill:#fff;rx:1px;stroke:#00000073;stroke-width:1px}
|