diff options
| author | victor | 2026-10-24 15:57:01 +0200 |
|---|---|---|
| committer | victor | 2026-10-24 15:57:01 +0200 |
| commit | 4533910bce394e7a0ee6debfc05ca1221ee51899 (patch) | |
| tree | 73aaa5b2c7a48dbf226e6b81d499ba1a8ecc33a1 /src/core/model.ts | |
| parent | Tilføj dansk (diff) | |
| download | 3D-Electrophysics-ny-start.tar.gz 3D-Electrophysics-ny-start.zip | |
Astra!ny-start
Diffstat (limited to '')
| -rw-r--r-- | src/core/model.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/core/model.ts b/src/core/model.ts new file mode 100644 index 0000000..f250839 --- /dev/null +++ b/src/core/model.ts @@ -0,0 +1,16 @@ +import type { I18n, MessageKey } from '../i18n'; + +export interface ModelContext { + i18n: I18n; +} + +export interface ModelInstance { + /** Release animation frames, GPU resources, observers, and event listeners. */ + dispose(): void; +} + +export interface ModelDefinition { + id: string; + titleKey: MessageKey; + mount(host: HTMLElement, context: ModelContext): ModelInstance | Promise<ModelInstance>; +} |