-
Notifications
You must be signed in to change notification settings - Fork 49
Update children interactions #168
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
743a72a
Add example using a rotating plane
jamesrweb fb20c84
Cover and error for the runtime issue when a sketch is not provided
jamesrweb 3a888b3
Update dependencies
jamesrweb d56128d
Update logic to actually throw rather than log until a workaround for…
jamesrweb f12f1e0
Document how to handle the styling / positioning of children with a w…
jamesrweb dc39b9d
Update constant name and remove future tag on non-future test
jamesrweb 636627a
Update README.md
jamesrweb 7e5deb0
Update README.md
jamesrweb 36c3ee2
update major changes in dependencies (#169)
jamesrweb fe440af
Add pnpm support for the project (#170)
jamesrweb a5550fb
remove duplicate jest environment key
jamesrweb 139c749
Add PNPM install instructions
jamesrweb fd2438f
Add audit, update and install script for future dependency management
jamesrweb 9cdc5eb
Migrate remaining scripts to use PNPM
jamesrweb d18e98a
Update dependencies
jamesrweb e64be9c
Update CI workflow to use PNPM over NPM
jamesrweb File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ | |
coverage | ||
node_modules | ||
dist | ||
.DS_Store | ||
.DS_Store | ||
package-lock.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
const { join } = require("path"); | ||
|
||
module.exports = { | ||
rootDir: "..", | ||
rootDir: join(__dirname, "..", ".."), | ||
silent: true, | ||
testEnvironment: "jsdom", | ||
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$", | ||
transform: { | ||
"^.+\\.tsx?$": "ts-jest" | ||
}, | ||
moduleFileExtensions: ["ts", "tsx", "js", "jsx"], | ||
globals: { | ||
"ts-jest": { | ||
tsconfig: join(__dirname, "tsconfig.json") | ||
tsconfig: join(__dirname, "..", "typescript", "tsconfig.json") | ||
} | ||
} | ||
}, | ||
testEnvironment: join(__dirname, "jest.environment.js") | ||
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
const Environment = require("jest-environment-jsdom-global"); | ||
const { TextEncoder, TextDecoder } = require("util"); | ||
|
||
class CustomTestEnvironment extends Environment { | ||
async setup() { | ||
await super.setup(); | ||
this.polyfillTextEncoder(); | ||
this.polyfillTextDecoder(); | ||
} | ||
|
||
polyfillTextEncoder() { | ||
if (typeof this.global.TextEncoder !== "undefined") { | ||
return; | ||
} | ||
|
||
this.global.TextEncoder = TextEncoder; | ||
} | ||
|
||
polyfillTextDecoder() { | ||
if (typeof this.global.TextDecoder !== "undefined") { | ||
return; | ||
} | ||
|
||
this.global.TextDecoder = TextDecoder; | ||
} | ||
} | ||
|
||
module.exports = CustomTestEnvironment; |
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
export function sketch(p5) { | ||
let rotation = 0; | ||
|
||
p5.setup = () => p5.createCanvas(300, 300, p5.WEBGL); | ||
|
||
p5.updateWithProps = props => { | ||
if (props.rotation) { | ||
rotation = (props.rotation * Math.PI) / 180; | ||
} | ||
}; | ||
|
||
p5.draw = () => { | ||
p5.background(100); | ||
p5.normalMaterial(); | ||
|
||
p5.push(); | ||
p5.rotateZ(rotation); | ||
p5.rotateX(rotation); | ||
p5.rotateY(rotation); | ||
p5.plane(100); | ||
p5.pop(); | ||
}; | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.