@opencor/opencor 0.20260319.0 → 0.20260410.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/index.d.ts CHANGED
@@ -1,12 +1,29 @@
1
- export {
2
- IOpenCOREmits,
3
- IOpenCORExpose,
4
- IOpenCORProps,
5
- IOpenCORSimulationDataEvent,
6
- IOpenCORSimulationDataValue,
7
- OpenCORSimulationData,
8
- OpenCORTheme
9
- } from './index.ts';
10
-
11
- export declare const OpenCOR: import('vue').Component<IOpenCORProps>;
12
- export default OpenCOR;
1
+ export type OpenCORTheme = 'light' | 'dark' | 'system';
2
+ export interface IOpenCORProps {
3
+ omex?: string | Uint8Array;
4
+ theme?: OpenCORTheme;
5
+ }
6
+ export interface IOpenCORExpose {
7
+ addExternalData: (csv: string, voiExpression: string | undefined, modelParameters: string[]) => void;
8
+ trackSimulationData: (modelParameters: string[]) => void;
9
+ untrackSimulationData: (modelParameters: string[]) => void;
10
+ untrackAllSimulationData: () => void;
11
+ }
12
+ export interface IOpenCOREmits extends /* @vue-ignore */ Record<string, unknown[]> {
13
+ externalData: [IOpenCORExternalDataEvent];
14
+ simulationData: [IOpenCORSimulationDataEvent];
15
+ }
16
+ export interface IOpenCORSimulationDataValue {
17
+ data: Float64Array;
18
+ unit: string;
19
+ }
20
+ export interface IOpenCORExternalDataEvent {
21
+ csv: string;
22
+ issues: string[];
23
+ }
24
+ export type OpenCORSimulationData = Record<string, IOpenCORSimulationDataValue>;
25
+ export interface IOpenCORSimulationDataEvent {
26
+ simulationData: OpenCORSimulationData;
27
+ issues: string[];
28
+ }
29
+ export { default, default as OpenCOR } from './src/components/OpenCOR.vue';