@annotorious/core
Advanced tools
Comparing version 3.0.0-rc.21 to 3.0.0-rc.22
@@ -7,3 +7,3 @@ import type { Annotation } from './Annotation'; | ||
import { type FormatAdapter } from './FormatAdapter'; | ||
import type { DrawingStyle } from './DrawingStyle'; | ||
import type { DrawingStyleExpression } from './DrawingStyle'; | ||
import type { Filter } from './Filter'; | ||
@@ -33,4 +33,5 @@ /** | ||
setSelected(arg?: string | string[]): void; | ||
setStyle(arg: DrawingStyle | ((annotation: I) => DrawingStyle) | undefined): void; | ||
setStyle(style: DrawingStyleExpression<I> | undefined): void; | ||
setUser(user: User): void; | ||
setVisible(visible: boolean): void; | ||
undo(): void; | ||
@@ -37,0 +38,0 @@ updateAnnotation(annotation: E): E; |
@@ -0,1 +1,3 @@ | ||
import type { Annotation } from "./Annotation"; | ||
import type { AnnotationState } from "./AnnotationState"; | ||
type RGB = `rgb(${number}, ${number}, ${number})`; | ||
@@ -12,3 +14,4 @@ type RGBA = `rgba(${number}, ${number}, ${number}, ${number})`; | ||
} | ||
export type DrawingStyleExpression<T extends Annotation> = DrawingStyle | ((annotation: T, state?: AnnotationState) => DrawingStyle); | ||
export {}; | ||
//# sourceMappingURL=DrawingStyle.d.ts.map |
export * from './Annotation'; | ||
export * from './AnnotationState'; | ||
export * from './Annotator'; | ||
@@ -3,0 +4,0 @@ export * from './DrawingStyle'; |
{ | ||
"name": "@annotorious/core", | ||
"version": "3.0.0-rc.21", | ||
"version": "3.0.0-rc.22", | ||
"description": "Annotorious core types and functions", | ||
@@ -29,3 +29,3 @@ "author": "Rainer Simon", | ||
"@sveltejs/vite-plugin-svelte": "^3.0.2", | ||
"@tsconfig/svelte": "^5.0.2", | ||
"@tsconfig/svelte": "^5.0.4", | ||
"@types/deep-equal": "^1.0.4", | ||
@@ -35,4 +35,4 @@ "@types/uuid": "^9.0.8", | ||
"svelte-preprocess": "^5.1.3", | ||
"typescript": "^5.3.3", | ||
"vite": "^5.2.2", | ||
"typescript": "^5.4.3", | ||
"vite": "^5.2.6", | ||
"vite-plugin-dts": "^3.7.3", | ||
@@ -47,2 +47,2 @@ "vitest": "^1.4.0" | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
176045
68
1245