@celldl/viewer 0.20260822.0 → 0.20260905.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/CellDLViewer.css +1 -1
- package/dist/CellDLViewer.es.js +5 -17716
- package/dist/CellDLViewer.es.js.map +1 -1
- package/dist/Rdf.es-CTxZ_25c.js +7511 -0
- package/dist/Rdf.es-CTxZ_25c.js.map +1 -0
- package/dist/WrappedViewer-kJtkh6i7.js +10683 -0
- package/dist/WrappedViewer-kJtkh6i7.js.map +1 -0
- package/dist/src/components/ViewerComponent.d.ts +8 -0
- package/dist/src/components/WrappedViewer.vue.d.ts +14 -1
- package/dist/src/index.d.ts +2 -2
- package/dist/vite.config.d.ts +3 -0
- package/dist/vite.lib.config.d.ts +3 -0
- package/package.json +2 -2
- package/dist/src/common/common.d.ts +0 -7
- package/dist/src/common/vueCommon.d.ts +0 -9
- package/dist/src/components/ViewerComponent.vue.d.ts +0 -24
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
declare const ViewerComponent: import('vue').DefineComponent<import('./WrappedViewer.vue').SvgViewerProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
2
|
+
error: (msg: string) => any;
|
|
3
|
+
event: (detail: import('./WrappedViewer.vue').ViewerEvent) => any;
|
|
4
|
+
}, string, import('vue').PublicProps, Readonly<import('./WrappedViewer.vue').SvgViewerProps> & Readonly<{
|
|
5
|
+
onError?: ((msg: string) => any) | undefined;
|
|
6
|
+
onEvent?: ((detail: import('./WrappedViewer.vue').ViewerEvent) => any) | undefined;
|
|
7
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
|
+
export default ViewerComponent;
|
|
@@ -1,5 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Annotation, Annotations, SvgViewerOptions, Theme } from '../index';
|
|
2
2
|
import * as vue from 'vue';
|
|
3
|
+
export interface SvgViewerProps {
|
|
4
|
+
annotations?: Annotations;
|
|
5
|
+
svgData: string;
|
|
6
|
+
options?: SvgViewerOptions;
|
|
7
|
+
theme?: Theme;
|
|
8
|
+
}
|
|
9
|
+
export type ViewerEvent = {
|
|
10
|
+
type: string;
|
|
11
|
+
component?: {
|
|
12
|
+
id: string;
|
|
13
|
+
annotation?: Annotation;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
3
16
|
declare const __VLS_export: vue.DefineComponent<SvgViewerProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
4
17
|
error: (msg: string) => any;
|
|
5
18
|
event: (detail: ViewerEvent) => any;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { default as SvgViewer } from './components/ViewerComponent';
|
|
2
|
+
import { SvgViewerProps, ViewerEvent } from './components/WrappedViewer.vue';
|
|
3
3
|
export type Theme = 'light' | 'dark' | 'system';
|
|
4
4
|
export { SvgViewer };
|
|
5
5
|
export default SvgViewer;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@celldl/viewer",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20260905.0",
|
|
4
4
|
"author": {
|
|
5
5
|
"name": "David Brooks",
|
|
6
6
|
"email": "d.brooks@auckland.ac.nz"
|
|
@@ -84,6 +84,6 @@
|
|
|
84
84
|
"unplugin-vue-components": "^32.1.0",
|
|
85
85
|
"vite": "^8.2.0",
|
|
86
86
|
"vite-plugin-dts": "^5.0.3",
|
|
87
|
-
"vue-tsc": "^3.3.
|
|
87
|
+
"vue-tsc": "^3.3.11"
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export declare function isWindows(): boolean;
|
|
2
|
-
export declare function isLinux(): boolean;
|
|
3
|
-
export declare function isMacOs(): boolean;
|
|
4
|
-
export declare function isDesktop(): boolean;
|
|
5
|
-
export declare function isCtrlOrCmd(event: KeyboardEvent): boolean;
|
|
6
|
-
export declare function formatTime(time: number): string;
|
|
7
|
-
export declare function formatIssue(issue: string): string;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Theme } from '../index';
|
|
2
|
-
import * as vue from 'vue';
|
|
3
|
-
export declare const activeInstanceUid: () => vue.Ref<string | null, string | null>;
|
|
4
|
-
export declare const useTheme: () => {
|
|
5
|
-
theme: () => Theme;
|
|
6
|
-
setTheme: (newTheme: Theme | undefined) => void;
|
|
7
|
-
useLightMode: () => boolean;
|
|
8
|
-
useDarkMode: () => boolean;
|
|
9
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Annotation, Annotations, SvgViewerOptions, Theme } from '../index';
|
|
2
|
-
import * as vue from 'vue';
|
|
3
|
-
export interface SvgViewerProps {
|
|
4
|
-
annotations?: Annotations;
|
|
5
|
-
svgData: string;
|
|
6
|
-
options?: SvgViewerOptions;
|
|
7
|
-
theme?: Theme;
|
|
8
|
-
}
|
|
9
|
-
export type ViewerEvent = {
|
|
10
|
-
type: string;
|
|
11
|
-
component?: {
|
|
12
|
-
id: string;
|
|
13
|
-
annotation?: Annotation;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
declare const __VLS_export: vue.DefineComponent<SvgViewerProps, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {
|
|
17
|
-
error: (msg: string) => any;
|
|
18
|
-
event: (detail: ViewerEvent) => any;
|
|
19
|
-
}, string, vue.PublicProps, Readonly<SvgViewerProps> & Readonly<{
|
|
20
|
-
onError?: ((msg: string) => any) | undefined;
|
|
21
|
-
onEvent?: ((detail: ViewerEvent) => any) | undefined;
|
|
22
|
-
}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
|
|
23
|
-
declare const _default: typeof __VLS_export;
|
|
24
|
-
export default _default;
|