GithubHelp home page GithubHelp logo

googlecreativelab / creatability-components Goto Github PK

View Code? Open in Web Editor NEW
289.0 24.0 49.0 5.46 MB

Web components for making creative tools more accessible.

Home Page: https://creatability.withgoogle.com

License: Other

TypeScript 94.96% JavaScript 2.09% HTML 2.95%
webcomponents accessibility a11y aria posenet

creatability-components's People

Contributors

alexanderchen avatar hapticdata avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

creatability-components's Issues

pose-input.ts:13 Uncaught (in promise) Your browser does not support WebRTC. Please try another one.

I received this error:

pose-input.ts:13 Uncaught (in promise) Your browser does not support WebRTC. Please try another one.

Browsers I tried:

  • Chromium
  • Firefox
  • Safari

I also tried to fix this error by:

  • running the example in the README.md:
        <!-- 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.

Cannot find name 'NodeSelector'

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.