googlecreativelab / creatability-components Goto Github PK
View Code? Open in Web Editor NEWWeb components for making creative tools more accessible.
Home Page: https://creatability.withgoogle.com
License: Other
Web components for making creative tools more accessible.
Home Page: https://creatability.withgoogle.com
License: Other
I'm getting the following errors when running npm install
then npm start
[0] ERROR in /Users/smayo/projects/creatability-components/src/components/decorators.ts [0] ./src/components/decorators.ts [0] [tsl] ERROR in /Users/smayo/projects/creatability-components/src/components/decorators.ts(121,14) [0] TS2304: Cannot find name 'NodeSelector'.
[0] ERROR in /Users/smayo/projects/creatability-components/src/components/decorators.ts [0] ./src/components/decorators.ts [0] [tsl] ERROR in /Users/smayo/projects/creatability-components/src/components/decorators.ts(134,14) [0] TS2304: Cannot find name 'NodeSelector'.
[0] ERROR in /Users/smayo/projects/creatability-components/src/components/decorators.ts [0] ./src/components/decorators.ts [0] [tsl] ERROR in /Users/smayo/projects/creatability-components/src/components/decorators.ts(144,23) [0] TS2304: Cannot find name 'NodeSelector'.
am I missing part of the setup? Apologies - new to TS.
I received this error:
pose-input.ts:13 Uncaught (in promise) Your browser does not support WebRTC. Please try another one.
Browsers I tried:
I also tried to fix this error by:
<!-- webcomponents-loader loads polyfills only for browsers not supporting Shadow DOM -->
<script src="//cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/2.0.2/webcomponents-loader.js"></script>
<script src="dist/acc-components.min.js"></script>
<acc-input-mode-select>
<acc-mouse-input amplification="10"></acc-mouse-input>
<acc-pose-input smoothing="0.5" selected></acc-pose-input>
</acc-input-mode-select>
<script>
const inputSelector = document.querySelector('acc-input-mode-select');
// all of the input's events bubble up to the selector
inputSelector.addEventListener('input', function onInput(event){
const input = event.target;
// position mapped to the content's coordinate space
// by default this is document.body, it can be set to any
// element with inputSelector.contentElement = htmlElement;
// or <acc-input-mode-select contentselector="#content">
// exists on individual inputs as well
const x = input.contentX;
const y = input.contentY;
}
</script>
</body>
And I continued to receive this error:
pose-input.ts:13 Uncaught (in promise) Your browser does not support WebRTC. Please try another one.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.