Skip to content

Commit

Permalink
Remove worker changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ggetz committed Jul 6, 2022
1 parent 6ae6cda commit 647a2f7
Show file tree
Hide file tree
Showing 18 changed files with 2,487 additions and 148 deletions.
12 changes: 12 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,18 @@ https://github.com/sole/tween.js
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
### RequireJS

https://github.com/jrburke/requirejs

> Copyright (c) 2010-2015, The Dojo Foundation
>
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
### Knockout

http://knockoutjs.com/
Expand Down
10 changes: 7 additions & 3 deletions Source/Core/TaskProcessor.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,14 @@ function createWorker(processor) {
worker.postMessage
);

const moduleName = processor._workerPath.replace(/\.js/, ""); // Truncate the extension if provided.
const bootstrapMessage = {
baseUrl: buildModuleUrl.getCesiumBaseUrl().url,
workerModule: buildModuleUrl(`${moduleName}.js`),
loaderConfig: {
paths: {
Workers: buildModuleUrl("Workers"),
},
baseUrl: buildModuleUrl.getCesiumBaseUrl().url,
},
workerModule: processor._workerPath,
};

worker.postMessage(bootstrapMessage);
Expand Down
Loading

0 comments on commit 647a2f7

Please sign in to comment.