pen-customizations-polyfill

0.0.1 • Public • Published

Pen Customizations API polyfill

This is a polyfill for the proposed Pen Customizations API. The full explainer is located over here.

This polyfill implements the proposed API on top of WebHID. This means that a permission will be prompted for the user to accept connecting to the touch panel.

This polyfill will only work if the hardware supports Universal Stylus Initiative capabilities. At present most ChromeOS devices will work.

How to use the polyfill

This polyfill is packaged as a JavaScript module. It is available on NPM over here.

To install the polyfill just run:

npm install --save pen-customizations-polyfill

Then you can include it in your project:

<script type="module" src="/path/to/modules/pen-customizations-polyfill.js"></script>

or in your JavaScript source file

import "/path/to/modules/pen-customizations-polyfill/pen-customizations-polyfill.js";

That's it.

See the demo/ directory for an example how to use the API.

Known issues

Check GitHub here.

Readme

Keywords

none

Package Sidebar

Install

npm i pen-customizations-polyfill

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

9.37 kB

Total Files

3

Last publish

Collaborators

  • darktears