Mercurial > hg > orthanc-stone
comparison Applications/Samples/SimpleViewer/Wasm/simple-viewer.ts @ 510:97a16b694321 bgo-commands-codegen
Fixes for API changes related to message passing
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Wed, 06 Mar 2019 18:26:35 +0100 |
parents | 7105a0bad250 |
children | 79bb0a02d1cc |
comparison
equal
deleted
inserted
replaced
509:1b9973905e15 | 510:97a16b694321 |
---|---|
7 command: "selectTool:" + toolName, | 7 command: "selectTool:" + toolName, |
8 commandType: "generic-no-arg-command", | 8 commandType: "generic-no-arg-command", |
9 args: { | 9 args: { |
10 } | 10 } |
11 }; | 11 }; |
12 wasmApplicationRunner.SendMessageToStoneApplication(JSON.stringify(command)); | 12 wasmApplicationRunner.SendCommandToStoneApplication(JSON.stringify(command)); |
13 } | 13 } |
14 | 14 |
15 function PerformAction(actionName: string) { | 15 function PerformAction(actionName: string) { |
16 var command = { | 16 var command = { |
17 command: "action:" + actionName, | 17 command: "action:" + actionName, |
18 commandType: "generic-no-arg-command", | 18 commandType: "generic-no-arg-command", |
19 args: { | 19 args: { |
20 } | 20 } |
21 }; | 21 }; |
22 wasmApplicationRunner.SendMessageToStoneApplication(JSON.stringify(command)); | 22 wasmApplicationRunner.SendCommandToStoneApplication(JSON.stringify(command)); |
23 } | 23 } |
24 | 24 |
25 class SimpleViewerUI { | 25 class SimpleViewerUI { |
26 | 26 |
27 private _labelPatientId: HTMLSpanElement; | 27 private _labelPatientId: HTMLSpanElement; |