@juliocesar-io/nano-protein-viewer-react 0.0.4 → 0.0.5
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/README.md +13 -8
- package/dist/index.cjs +1 -7309
- package/dist/index.d.ts +69 -2
- package/dist/index.esm.js +503 -90288
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
2
|
-
import { MolstarViewerInstance } from 'molstar/build/viewer/molstar';
|
|
3
2
|
|
|
4
3
|
declare type ChainColorParams = {
|
|
5
4
|
chainColors: Record<string | number, string | number>;
|
|
@@ -30,8 +29,74 @@ export declare interface LoadedStructure {
|
|
|
30
29
|
};
|
|
31
30
|
}
|
|
32
31
|
|
|
32
|
+
declare type MolstarPluginLike = {
|
|
33
|
+
init: UnknownFn;
|
|
34
|
+
mountAsync: UnknownFn;
|
|
35
|
+
clear?: UnknownFn;
|
|
36
|
+
dispose?: UnknownFn;
|
|
37
|
+
plugin?: never;
|
|
38
|
+
canvas3d?: {
|
|
39
|
+
props: {
|
|
40
|
+
postprocessing: unknown;
|
|
41
|
+
};
|
|
42
|
+
setProps: UnknownFn;
|
|
43
|
+
};
|
|
44
|
+
build: UnknownFn;
|
|
45
|
+
managers: {
|
|
46
|
+
structure: {
|
|
47
|
+
hierarchy: {
|
|
48
|
+
current: {
|
|
49
|
+
structures: Array<{
|
|
50
|
+
components?: Array<{
|
|
51
|
+
representations?: Array<{
|
|
52
|
+
cell: {
|
|
53
|
+
transform: {
|
|
54
|
+
params?: Record<string, unknown>;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}>;
|
|
58
|
+
cell: unknown;
|
|
59
|
+
}>;
|
|
60
|
+
}>;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
component: {
|
|
64
|
+
updateRepresentationsTheme: UnknownFn;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
camera: {
|
|
68
|
+
reset: UnknownFn;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
builders: {
|
|
72
|
+
data: {
|
|
73
|
+
rawData: UnknownFn;
|
|
74
|
+
};
|
|
75
|
+
structure: {
|
|
76
|
+
parseTrajectory: UnknownFn;
|
|
77
|
+
hierarchy: {
|
|
78
|
+
applyPreset: UnknownFn;
|
|
79
|
+
};
|
|
80
|
+
representation: {
|
|
81
|
+
addRepresentation: UnknownFn;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
};
|
|
85
|
+
representation: {
|
|
86
|
+
structure: {
|
|
87
|
+
themes: {
|
|
88
|
+
colorThemeRegistry: {
|
|
89
|
+
add: UnknownFn;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
|
|
33
96
|
export declare interface MolstarViewerHandle {
|
|
34
|
-
viewer:
|
|
97
|
+
viewer: {
|
|
98
|
+
plugin: MolstarPluginLike;
|
|
99
|
+
} | null;
|
|
35
100
|
mount: (container: HTMLElement) => Promise<void>;
|
|
36
101
|
clear: () => Promise<void>;
|
|
37
102
|
loadStructureText: (data: string, format: StructureFormat, maintainView?: boolean) => Promise<void>;
|
|
@@ -84,4 +149,6 @@ export declare interface StructureUrl {
|
|
|
84
149
|
};
|
|
85
150
|
}
|
|
86
151
|
|
|
152
|
+
declare type UnknownFn = (...args: unknown[]) => unknown;
|
|
153
|
+
|
|
87
154
|
export { }
|