Skip to content

Commit

Permalink
API polishing
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Dec 4, 2023
1 parent 4cefe66 commit 58a67ad
Show file tree
Hide file tree
Showing 11 changed files with 123 additions and 115 deletions.
154 changes: 77 additions & 77 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,14 @@
},
"devDependencies": {
"@types/node": "~18.18.14",
"@typescript-eslint/eslint-plugin": "~6.13.1",
"@typescript-eslint/eslint-plugin": "~6.13.2",
"editorconfig": "~2.0.0",
"eslint": "~8.55.0",
"shx": "~0.3.4",
"typedoc": "~0.25.4",
"typedoc-plugin-markdown": "~3.17.1",
"typescript": "~5.3.2",
"vite": "~5.0.4",
"vite": "~5.0.5",
"vitest": "~0.34.6"
},
"workspaces": [
Expand Down
4 changes: 2 additions & 2 deletions packages/examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
"dependencies": {
"lil-gui": "~0.19.1",
"three": "~0.159.0",
"wtd-core": "~3.0.0-next.4",
"wtd-three-ext": "~3.0.0-next.4",
"wtd-core": "~3.0.0-next.5",
"wtd-three-ext": "~3.0.0-next.5",
"wwobjloader2": "6.2.0-next.4"
},
"devDependencies": {
Expand Down
7 changes: 4 additions & 3 deletions packages/examples/src/com/WorkerCom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ import {
WorkerTaskMessage,
initChannel,
initOffscreenCanvas,
recalcAspectRatio,
registerResizeHandler
} from 'wtd-core';
import { recalcAspectRatio, updateText } from '../worker/ComWorkerCommon.js';
import { updateText } from '../worker/ComWorkerCommon.js';

/**
* Hello World example using a classic worker
Expand Down Expand Up @@ -65,8 +66,8 @@ class HelloWorldStandardWorkerExample {
promises.push(initOffscreenCanvas(workerTaskCom2, this.canvasCom2));
await Promise.all(promises);

registerResizeHandler(this.canvasCom1, workerTaskCom1);
registerResizeHandler(this.canvasCom2, workerTaskCom2);
registerResizeHandler(workerTaskCom1, this.canvasCom1);
registerResizeHandler(workerTaskCom2, this.canvasCom2);

updateText({
text: 'Main: Init',
Expand Down
Loading

0 comments on commit 58a67ad

Please sign in to comment.