@opencor/opencor 0.20250827.0 → 0.20250904.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/README.md +5 -5
- package/dist/opencor.css +1 -1
- package/dist/opencor.es.js +5546 -5394
- package/package.json +4 -2
package/README.md
CHANGED
|
@@ -13,10 +13,10 @@ This package is a [Vue 3](https://vuejs.org/) component for OpenCOR, built with
|
|
|
13
13
|
|
|
14
14
|
The component comes with the following props:
|
|
15
15
|
|
|
16
|
-
| Name | Type
|
|
17
|
-
| ------- |
|
|
18
|
-
| `omex` | String
|
|
19
|
-
| `theme` | `light`, `dark`, or `system` | `system` | The theme to use.
|
|
16
|
+
| Name | Type | Default | Description |
|
|
17
|
+
| ------- | ------------------------------------------ | ---------- | -------------------------------------------------------------------------------- |
|
|
18
|
+
| `omex` | String | `null` | The URL of the [OMEX file](https://combinearchive.org/) to use. |
|
|
19
|
+
| `theme` | String: `'light'`, `'dark'`, or `'system'` | `'system'` | The theme to use. Note that it is set once and for all, i.e. it is not reactive. |
|
|
20
20
|
|
|
21
21
|
- **main.ts:**
|
|
22
22
|
|
|
@@ -45,7 +45,7 @@ import '@opencor/opencor/style.css'
|
|
|
45
45
|
</script>
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
###
|
|
48
|
+
### `omex` prop provided
|
|
49
49
|
|
|
50
50
|
When an `omex` prop is provided, the component goes straight into OpenCOR's simulation mode, using the specified OMEX file.
|
|
51
51
|
|