Commit graph

32 commits

Author SHA1 Message Date
Eddie Antonio Santos
f1382fe58c
Remove undeveloped "model" interface. 2018-11-30 13:44:58 -07:00
Eddie Antonio Santos
36e18e4019
Refactor: extract interfaces common to worker and top-level. 2018-11-30 13:43:29 -07:00
Eddie Antonio Santos
140efa7dc7
Require the capabilities object in the initialize message. 2018-11-30 13:35:40 -07:00
Joshua A. Horton
cf13caa98e Merge branch 'lmlayer-init' into lmlayer-build-reorg 2018-11-29 23:35:37 +07:00
Joshua A. Horton
32b834521e Reorganized the build structure into something simpler to -clean. 2018-11-29 09:11:26 +07:00
Eddie Antonio Santos
8404ef3c13
Comment ALL THE THINGS. 2018-11-28 14:20:09 -07:00
Eddie Antonio Santos
17dfd2d76e
Merge branch 'lmlayer-init' into lmlayer-sans-import-scripts 2018-11-19 19:58:35 -07:00
Eddie Antonio Santos
0dfa36a3b6
Attempt to clarify comment on LMLayerWorker.install(). 2018-11-19 18:35:58 -07:00
Eddie Antonio Santos
d774f08cc7
Clarify comment. 2018-11-19 17:23:43 -07:00
Eddie Antonio Santos
5e3f59f68b
Fix invalid invocation. 2018-11-19 17:05:50 -07:00
Eddie Antonio Santos
d1f8d71026
Install an LMLayerWorker when in a Worker scope. 2018-11-19 15:29:26 -07:00
Eddie Antonio Santos
e7fe927718
Clean up recently imported interfaces. 2018-11-19 13:52:19 -07:00
Eddie Antonio Santos
bb25564c92
Add a bunch of types that may or may not be useful. 2018-11-19 13:41:10 -07:00
Eddie Antonio Santos
ef3e718639
Raise an error when sent a message other than 'initialize' on instantiation. 2018-11-19 13:30:39 -07:00
Eddie Antonio Santos
f0decd6204
Extact method: loadModel(). 2018-11-19 13:20:24 -07:00
Eddie Antonio Santos
2f3eb5d10e
Set configuration from values sent by keyboard. 2018-11-19 13:07:41 -07:00
Eddie Antonio Santos
748a504e14
Run source code passed in as 'model' 2018-11-19 12:58:08 -07:00
Eddie Antonio Santos
ef3a93fd4a
Remove usage of importScripts(). 2018-11-19 12:35:48 -07:00
Eddie Antonio Santos
88b181286a
Convert Message type to OutgoingMessage. 2018-11-19 11:19:54 -07:00
Eddie Antonio Santos
963aa634d0
Import the model. 2018-11-19 11:10:41 -07:00
Eddie Antonio Santos
feeb7ffbdb
Add need for importScripts(); but this breaks all the tests :c 2018-11-19 11:00:35 -07:00
Eddie Antonio Santos
84257770da
Implement .install() static method. 2018-11-19 10:42:43 -07:00
Eddie Antonio Santos
06f5bb55a5
Factor out cast() method. 2018-11-16 15:15:48 -07:00
Eddie Antonio Santos
86a72d4985
Send back a fake, but reasonable configuration. 2018-11-16 15:10:15 -07:00
Eddie Antonio Santos
0d9aa37db8
#onMessage() throws an error if not receiving a message. 2018-11-16 14:34:57 -07:00
Eddie Antonio Santos
1cf1e444d6
Only export class as worker's export. 2018-11-16 10:56:13 -07:00
Eddie Antonio Santos
ede432e225
Revert tsconfig.json; addresses @jahorton's comment. 2018-11-16 10:55:49 -07:00
Eddie Antonio Santos
e52221de2b
Export for both browser; resolve typing issue. 2018-11-16 10:53:49 -07:00
Eddie Antonio Santos
538393930d
Comment existing methods. 2018-11-15 14:48:24 -07:00
Eddie Antonio Santos
a33be397d0
Implement postMessage() mocking. 2018-11-15 14:40:19 -07:00
Eddie Antonio Santos
35af8a3f27
Scaffolding for the LMLayerWorker. 2018-11-15 14:20:00 -07:00
Eddie Antonio Santos
6148e4811d
Get headless TDD working for ./worker. 2018-11-15 13:18:41 -07:00