comparison Applications/Samples/Web/simple-viewer-single-file.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", 7 command: "selectTool",
8 args: { 8 args: {
9 toolName: toolName 9 toolName: toolName
10 } 10 }
11 }; 11 };
12 wasmApplicationRunner.SendMessageToStoneApplication(JSON.stringify(command)); 12 wasmApplicationRunner.SendCommandToStoneApplication(JSON.stringify(command));
13 13
14 } 14 }
15 15
16 function PerformAction(commandName: string) { 16 function PerformAction(commandName: string) {
17 var command = { 17 var command = {
18 command: commandName, 18 command: commandName,
19 commandType: "simple", 19 commandType: "simple",
20 args: {} 20 args: {}
21 }; 21 };
22 wasmApplicationRunner.SendMessageToStoneApplication(JSON.stringify(command)); 22 wasmApplicationRunner.SendCommandToStoneApplication(JSON.stringify(command));
23 } 23 }
24 24
25 //initializes the buttons 25 //initializes the buttons
26 //----------------------- 26 //-----------------------
27 // install "SelectTool" handlers 27 // install "SelectTool" handlers