@annotorious/react-manifold 3.2.3 → 3.2.4
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.
|
@@ -5,6 +5,8 @@ export interface AnnotoriousManifoldInstance<I extends Annotation = Annotation,
|
|
|
5
5
|
annotators: Annotator<I, E>[];
|
|
6
6
|
sources: string[];
|
|
7
7
|
addBody(body: AnnotationBody, origin?: Origin): void;
|
|
8
|
+
bulkDeleteAnnotations(annotationsOrIds: (I | string)[], origin?: Origin): void;
|
|
9
|
+
bulkUpdateAnnotations(annotations: I[], origin?: Origin): void;
|
|
8
10
|
clear(origin: Origin): void;
|
|
9
11
|
deleteAnnotation(id: string, origin?: Origin): I | undefined;
|
|
10
12
|
deleteBody(body: AnnotationBody, origin?: Origin): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AnnotoriousManifoldInstance.d.ts","sourceRoot":"","sources":["../src/AnnotoriousManifoldInstance.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAEhF,MAAM,WAAW,2BAA2B,CAAC,CAAC,SAAS,UAAU,GAAG,UAAU,EAAE,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,UAAU;IAEnH,UAAU,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC;IAE9B,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB,OAAO,CAAC,IAAI,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErD,KAAK,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAE5B,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,GAAG,SAAS,CAAC;IAE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B,CAAC,IAAI,EAAE,MAAM,GAAG,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAE5E;AAED,eAAO,MAAM,sBAAsB,GAAI,CAAC,SAAS,UAAU,GAAG,UAAU,EAAE,CAAC,SAAS;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,UAAU,EAC7G,YAAY,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KACvC,2BAA2B,CAAC,CAAC,EAAE,CAAC,CAoIlC,CAAA"}
|
|
@@ -1,52 +1,74 @@
|
|
|
1
|
-
import { Origin as
|
|
2
|
-
const
|
|
3
|
-
const
|
|
1
|
+
import { Origin as u } from "@annotorious/react";
|
|
2
|
+
const j = (c) => {
|
|
3
|
+
const a = (t) => Array.from(c.entries()).reduce((o, [n, s]) => {
|
|
4
4
|
if (o)
|
|
5
5
|
return o;
|
|
6
|
-
const
|
|
7
|
-
if (
|
|
8
|
-
return { annotation:
|
|
9
|
-
}, void 0) || { annotation: void 0, annotator: void 0, source: void 0 },
|
|
10
|
-
const { annotator: n } =
|
|
6
|
+
const e = s.state.store.getAnnotation(t);
|
|
7
|
+
if (e)
|
|
8
|
+
return { annotation: e, annotator: s, source: n };
|
|
9
|
+
}, void 0) || { annotation: void 0, annotator: void 0, source: void 0 }, l = (t, o = u.LOCAL) => {
|
|
10
|
+
const { annotator: n } = a(t.annotation);
|
|
11
11
|
n && n.state.store.addBody(t, o);
|
|
12
|
-
},
|
|
13
|
-
const
|
|
12
|
+
}, A = (t = u.LOCAL) => Array.from(c.values()).forEach((o) => o.state.store.clear(t)), p = (t, o = u.LOCAL) => {
|
|
13
|
+
const s = t.map((r) => typeof r == "string" ? r : r.id).map((r) => {
|
|
14
|
+
const { source: i } = a(r);
|
|
15
|
+
return { source: i, id: r };
|
|
16
|
+
}).filter((r) => r.source), e = Object.groupBy(s, (r) => r.source);
|
|
17
|
+
Object.entries(e).forEach(([r, i]) => {
|
|
18
|
+
const d = c.get(r);
|
|
19
|
+
d && d.state.store.bulkDeleteAnnotation(i.map((f) => f.id), o);
|
|
20
|
+
});
|
|
21
|
+
}, y = (t, o = u.LOCAL) => {
|
|
22
|
+
const n = t.map((e) => {
|
|
23
|
+
const { source: r, annotator: i } = a(e.id);
|
|
24
|
+
return { source: r, annotation: e };
|
|
25
|
+
}).filter((e) => e.source), s = Object.groupBy(n, (e) => e.source);
|
|
26
|
+
Object.entries(s).forEach(([e, r]) => {
|
|
27
|
+
const i = c.get(e);
|
|
28
|
+
if (!i) return;
|
|
29
|
+
const d = r.map((f) => f.annotation).filter(Boolean);
|
|
30
|
+
i.state.store.bulkUpdateAnnotation(d, o);
|
|
31
|
+
});
|
|
32
|
+
}, L = (t, o = u.LOCAL) => {
|
|
33
|
+
const { annotation: n, annotator: s } = a(t);
|
|
14
34
|
if (s)
|
|
15
35
|
return s.state.store.deleteAnnotation(t, o), n;
|
|
16
|
-
},
|
|
17
|
-
const { annotator: n } =
|
|
36
|
+
}, m = (t, o = u.LOCAL) => {
|
|
37
|
+
const { annotator: n } = a(t.annotation);
|
|
18
38
|
n && n.state.store.deleteBody(t, o);
|
|
19
|
-
},
|
|
20
|
-
const { annotator: o } =
|
|
39
|
+
}, O = () => Array.from(c.values()).forEach((t) => t.destroy()), b = (t) => {
|
|
40
|
+
const { annotator: o } = a(t);
|
|
21
41
|
return o;
|
|
22
|
-
},
|
|
23
|
-
const { source: o } =
|
|
42
|
+
}, v = (t) => {
|
|
43
|
+
const { source: o } = a(t);
|
|
24
44
|
return o;
|
|
25
|
-
},
|
|
26
|
-
const s = typeof t == "string" ? t : t.id, { annotator:
|
|
27
|
-
|
|
28
|
-
},
|
|
29
|
-
const { annotator: n } =
|
|
45
|
+
}, g = (t) => a(t).annotation, B = () => Array.from(c.values()).reduce((t, o) => [...t, ...o.state.store.all()], []), h = (t) => c.get(t), C = (t, o, n) => {
|
|
46
|
+
const s = typeof t == "string" ? t : t.id, { annotator: e } = a(s);
|
|
47
|
+
e && e.state.store.updateAnnotation(t, o, n);
|
|
48
|
+
}, k = (t, o) => {
|
|
49
|
+
const { annotator: n } = a(t);
|
|
30
50
|
n && n.setSelected(t, o);
|
|
31
51
|
};
|
|
32
52
|
return {
|
|
33
|
-
annotators: [...
|
|
34
|
-
sources: [...
|
|
35
|
-
addBody:
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
53
|
+
annotators: [...c.values()],
|
|
54
|
+
sources: [...c.keys()],
|
|
55
|
+
addBody: l,
|
|
56
|
+
bulkDeleteAnnotations: p,
|
|
57
|
+
bulkUpdateAnnotations: y,
|
|
58
|
+
clear: A,
|
|
59
|
+
deleteAnnotation: L,
|
|
60
|
+
deleteBody: m,
|
|
61
|
+
destroy: O,
|
|
62
|
+
findAnnotator: b,
|
|
63
|
+
findSource: v,
|
|
64
|
+
getAnnotation: g,
|
|
65
|
+
getAnnotations: B,
|
|
66
|
+
getAnnotator: h,
|
|
67
|
+
setSelected: k,
|
|
68
|
+
updateAnnotation: C
|
|
47
69
|
};
|
|
48
70
|
};
|
|
49
71
|
export {
|
|
50
|
-
|
|
72
|
+
j as createManifoldInstance
|
|
51
73
|
};
|
|
52
74
|
//# sourceMappingURL=annotorious-react-manifold.es8.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"annotorious-react-manifold.es8.js","sources":["../src/AnnotoriousManifoldInstance.ts"],"sourcesContent":["import { Origin } from '@annotorious/react';\nimport type { Annotation, AnnotationBody, Annotator } from '@annotorious/react';\n\nexport interface AnnotoriousManifoldInstance<I extends Annotation = Annotation, E extends { id: string } = Annotation> {\n\n annotators: Annotator<I, E>[];\n\n sources: string[];\n\n addBody(body: AnnotationBody, origin?: Origin): void;\n\n clear(origin: Origin): void;\n\n deleteAnnotation(id: string, origin?: Origin): I | undefined;\n\n deleteBody(body: AnnotationBody, origin?: Origin): void;\n\n destroy(): void;\n\n findAnnotator(annotationId: string): Annotator<I, E> | undefined;\n\n findSource(annotationId: string): string | undefined;\n\n getAnnotation(id: string): I | undefined;\n \n getAnnotations(): I[];\n\n getAnnotator(id: string): Annotator<I, E> | undefined;\n \n setSelected(annotationId: string, editable?: boolean): void;\n\n updateAnnotation(arg1: string | I, arg2?: I | Origin, arg3?: Origin): void;\n\n}\n\nexport const createManifoldInstance = <I extends Annotation = Annotation, E extends { id: string } = Annotation>(\n annotators: Map<string, Annotator<I, E>>\n): AnnotoriousManifoldInstance<I, E> => {\n\n const find = (annotationId: string): { annotation?: I, source?: string, annotator?: Annotator<I, E> } =>\n Array.from(annotators.entries()).reduce((found, [source, annotator]) => {\n if (found)\n return found;\n\n const annotation = annotator.state.store.getAnnotation(annotationId);\n if (annotation) \n return { annotation, annotator, source };\n }, undefined as { annotation: I, annotator: Annotator<I, E> } | undefined ) || \n\n { annotation: undefined, annotator: undefined, source: undefined };\n\n /*********/\n /** API **/\n /*********/\n\n const addBody = (body: AnnotationBody, origin = Origin.LOCAL) => {\n const { annotator } = find(body.annotation);\n if (annotator)\n annotator.state.store.addBody(body, origin);\n }\n\n const clear = (origin = Origin.LOCAL) =>\n Array.from(annotators.values()).forEach(a => a.state.store.clear(origin));\n\n const deleteAnnotation = (id: string, origin = Origin.LOCAL) => {\n const { annotation, annotator } = find(id);\n\n if (annotator) {\n annotator.state.store.deleteAnnotation(id, origin);\n return annotation;\n }\n }\n\n const deleteBody = (body: AnnotationBody, origin = Origin.LOCAL) => {\n const { annotator } = find(body.annotation);\n if (annotator)\n annotator.state.store.deleteBody(body, origin);\n }\n\n const destroy = () =>\n Array.from(annotators.values()).forEach(a => a.destroy());\n\n const findAnnotator = (annotationId: string) => {\n const { annotator } = find(annotationId);\n return annotator;\n }\n\n const findSource = (annotationId: string) => {\n const { source } = find(annotationId);\n return source;\n }\n\n const getAnnotation = (annotationId: string) => \n find(annotationId).annotation;\n\n const getAnnotations = () => \n Array.from(annotators.values()).reduce((all, annotator) =>\n [...all, ...annotator.state.store.all()], [] as I[]);\n\n const getAnnotator = (id: string) => annotators.get(id);\n\n const updateAnnotation = (arg1: string | I, arg2?: I | Origin, arg3?: Origin) => {\n const oldId: string = typeof arg1 === 'string' ? arg1 : arg1.id;\n\n const { annotator } = find(oldId);\n if (annotator)\n annotator.state.store.updateAnnotation(arg1, arg2, arg3);\n }\n\n const setSelected = (id: string, editable?: boolean) => {\n const { annotator } = find(id);\n if (annotator)\n annotator.setSelected(id, editable);\n }\n\n return {\n annotators: [...annotators.values()],\n sources: [...annotators.keys()],\n addBody,\n clear,\n deleteAnnotation,\n deleteBody,\n destroy,\n findAnnotator,\n findSource,\n getAnnotation,\n getAnnotations,\n getAnnotator,\n setSelected,\n updateAnnotation\n }\n\n}"],"names":["createManifoldInstance","annotators","find","annotationId","found","source","annotator","annotation","addBody","body","origin","Origin","clear","a","
|
|
1
|
+
{"version":3,"file":"annotorious-react-manifold.es8.js","sources":["../src/AnnotoriousManifoldInstance.ts"],"sourcesContent":["import { Origin } from '@annotorious/react';\nimport type { Annotation, AnnotationBody, Annotator } from '@annotorious/react';\n\nexport interface AnnotoriousManifoldInstance<I extends Annotation = Annotation, E extends { id: string } = Annotation> {\n\n annotators: Annotator<I, E>[];\n\n sources: string[];\n\n addBody(body: AnnotationBody, origin?: Origin): void;\n\n bulkDeleteAnnotations(annotationsOrIds: (I | string)[], origin?: Origin): void;\n\n bulkUpdateAnnotations(annotations: I[], origin?: Origin): void; \n\n clear(origin: Origin): void;\n\n deleteAnnotation(id: string, origin?: Origin): I | undefined;\n\n deleteBody(body: AnnotationBody, origin?: Origin): void;\n\n destroy(): void;\n\n findAnnotator(annotationId: string): Annotator<I, E> | undefined;\n\n findSource(annotationId: string): string | undefined;\n\n getAnnotation(id: string): I | undefined;\n \n getAnnotations(): I[];\n\n getAnnotator(id: string): Annotator<I, E> | undefined;\n \n setSelected(annotationId: string, editable?: boolean): void;\n\n updateAnnotation(arg1: string | I, arg2?: I | Origin, arg3?: Origin): void;\n\n}\n\nexport const createManifoldInstance = <I extends Annotation = Annotation, E extends { id: string } = Annotation>(\n annotators: Map<string, Annotator<I, E>>\n): AnnotoriousManifoldInstance<I, E> => {\n\n const find = (annotationId: string): { annotation?: I, source?: string, annotator?: Annotator<I, E> } =>\n Array.from(annotators.entries()).reduce((found, [source, annotator]) => {\n if (found)\n return found;\n\n const annotation = annotator.state.store.getAnnotation(annotationId);\n if (annotation) \n return { annotation, annotator, source };\n }, undefined as { annotation: I, annotator: Annotator<I, E> } | undefined ) || \n\n { annotation: undefined, annotator: undefined, source: undefined };\n\n /*********/\n /** API **/\n /*********/\n\n const addBody = (body: AnnotationBody, origin = Origin.LOCAL) => {\n const { annotator } = find(body.annotation);\n if (annotator)\n annotator.state.store.addBody(body, origin);\n }\n\n const clear = (origin = Origin.LOCAL) =>\n Array.from(annotators.values()).forEach(a => a.state.store.clear(origin));\n\n const bulkDeleteAnnotations = (annotationsOrIds: (I | string)[], origin = Origin.LOCAL) => {\n const ids = annotationsOrIds.map(arg => typeof arg === 'string' ? arg : arg.id);\n\n const withAnnotator = ids.map(id => {\n const { source } = find(id);\n return { source, id };\n }).filter(t => t.source);\n\n const bySource = Object.groupBy(withAnnotator, t => t.source);\n\n Object.entries(bySource).forEach(([source, data]) => {\n const annotator = annotators.get(source);\n if (annotator)\n annotator.state.store.bulkDeleteAnnotation(data.map(d => d.id), origin);\n });\n }\n\n const bulkUpdateAnnotations = (annotations: I[], origin = Origin.LOCAL) => {\n const withAnnotator = annotations.map(annotation => {\n // Keep source and annotator, but replace annotation\n const { source, annotator } = find(annotation.id);\n return { source, annotation };\n }).filter(t => t.source);\n\n const bySource = Object.groupBy(withAnnotator, t => t.source);\n\n Object.entries(bySource).forEach(([source, data]) => {\n const annotator = annotators.get(source);\n if (!annotator) return;\n\n const toUpdate: I[] = data.map(d => d.annotation).filter(Boolean);\n annotator.state.store.bulkUpdateAnnotation(toUpdate, origin);\n })\n }\n\n const deleteAnnotation = (id: string, origin = Origin.LOCAL) => {\n const { annotation, annotator } = find(id);\n\n if (annotator) {\n annotator.state.store.deleteAnnotation(id, origin);\n return annotation;\n }\n }\n\n const deleteBody = (body: AnnotationBody, origin = Origin.LOCAL) => {\n const { annotator } = find(body.annotation);\n if (annotator)\n annotator.state.store.deleteBody(body, origin);\n }\n\n const destroy = () =>\n Array.from(annotators.values()).forEach(a => a.destroy());\n\n const findAnnotator = (annotationId: string) => {\n const { annotator } = find(annotationId);\n return annotator;\n }\n\n const findSource = (annotationId: string) => {\n const { source } = find(annotationId);\n return source;\n }\n\n const getAnnotation = (annotationId: string) => \n find(annotationId).annotation;\n\n const getAnnotations = () => \n Array.from(annotators.values()).reduce((all, annotator) =>\n [...all, ...annotator.state.store.all()], [] as I[]);\n\n const getAnnotator = (id: string) => annotators.get(id);\n\n const updateAnnotation = (arg1: string | I, arg2?: I | Origin, arg3?: Origin) => {\n const oldId: string = typeof arg1 === 'string' ? arg1 : arg1.id;\n\n const { annotator } = find(oldId);\n if (annotator)\n annotator.state.store.updateAnnotation(arg1, arg2, arg3);\n }\n\n const setSelected = (id: string, editable?: boolean) => {\n const { annotator } = find(id);\n if (annotator)\n annotator.setSelected(id, editable);\n }\n\n return {\n annotators: [...annotators.values()],\n sources: [...annotators.keys()],\n addBody,\n bulkDeleteAnnotations,\n bulkUpdateAnnotations,\n clear,\n deleteAnnotation,\n deleteBody,\n destroy,\n findAnnotator,\n findSource,\n getAnnotation,\n getAnnotations,\n getAnnotator,\n setSelected,\n updateAnnotation\n }\n\n}"],"names":["createManifoldInstance","annotators","find","annotationId","found","source","annotator","annotation","addBody","body","origin","Origin","clear","a","bulkDeleteAnnotations","annotationsOrIds","withAnnotator","arg","id","t","bySource","data","d","bulkUpdateAnnotations","annotations","toUpdate","deleteAnnotation","deleteBody","destroy","findAnnotator","findSource","getAnnotation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L;AAAA,EACF;AAEF;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@annotorious/react-manifold",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.4",
|
|
4
4
|
"description": "A utility to manage multiple parallel Annotorious instances more efficiently",
|
|
5
5
|
"author": "Rainer Simon",
|
|
6
6
|
"license": "BSD-3-Clause",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"vite-tsconfig-paths": "^5.1.4"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@annotorious/react": "3.2.
|
|
43
|
+
"@annotorious/react": "3.2.4",
|
|
44
44
|
"openseadragon": "^5.0.1",
|
|
45
45
|
"react": "16.8.0 || >=17.x || >=18.x || >=19.x",
|
|
46
46
|
"react-dom": "16.8.0 || >=17.x || >=18.x|| >=19.x"
|