diff options
author | Kristóf Marussy <kristof@marussy.com> | 2023-08-17 02:32:26 +0200 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2023-08-17 02:43:55 +0200 |
commit | eb5da232b5954895b449957c73e35d0b36e3a902 (patch) | |
tree | a8714116cfe3102659e9c5e5b90131e7ec248492 /subprojects/frontend/src/editor/EditorStore.ts | |
parent | chore(deps): bump dependencies (diff) | |
download | refinery-eb5da232b5954895b449957c73e35d0b36e3a902.tar.gz refinery-eb5da232b5954895b449957c73e35d0b36e3a902.tar.zst refinery-eb5da232b5954895b449957c73e35d0b36e3a902.zip |
feat: basic semantics mapping and visualization
Diffstat (limited to 'subprojects/frontend/src/editor/EditorStore.ts')
-rw-r--r-- | subprojects/frontend/src/editor/EditorStore.ts | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/subprojects/frontend/src/editor/EditorStore.ts b/subprojects/frontend/src/editor/EditorStore.ts index b98f085e..c79f6ec1 100644 --- a/subprojects/frontend/src/editor/EditorStore.ts +++ b/subprojects/frontend/src/editor/EditorStore.ts | |||
@@ -58,6 +58,8 @@ export default class EditorStore { | |||
58 | 58 | ||
59 | disposed = false; | 59 | disposed = false; |
60 | 60 | ||
61 | semantics: unknown = {}; | ||
62 | |||
61 | constructor(initialValue: string, pwaStore: PWAStore) { | 63 | constructor(initialValue: string, pwaStore: PWAStore) { |
62 | this.id = nanoid(); | 64 | this.id = nanoid(); |
63 | this.state = createEditorState(initialValue, this); | 65 | this.state = createEditorState(initialValue, this); |
@@ -282,6 +284,10 @@ export default class EditorStore { | |||
282 | return true; | 284 | return true; |
283 | } | 285 | } |
284 | 286 | ||
287 | setSemantics(semantics: unknown) { | ||
288 | this.semantics = semantics; | ||
289 | } | ||
290 | |||
285 | dispose(): void { | 291 | dispose(): void { |
286 | this.client?.dispose(); | 292 | this.client?.dispose(); |
287 | this.disposed = true; | 293 | this.disposed = true; |