Skip to content

pencil-js/accessibility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Accessibility

This is a Pencil.js plugin to allow each object to describe itself for blind or visually impaired people.

📢 I'm looking for someone with a visual deficiency and primarily using screen descriptor to help me out. Get in touch if you want to be part of the design process.

Installation

npm install @pencil.js/accessibility

Usage

You need to tell Pencil to use the accessibility plugin to change its behavior.

import Pencil from "pencil.js";
import accessibility from "@pencil.js/accessibility";

Pencil.use(accessibility);

Example

import Pencil from "pencil.js";
import accessibility from "@pencil.js/accessibility";

Pencil.use(accessibility);

const example = new Pencil.Circle([10, 20], 100, {
    fill: "#f00",
});

console.log(example.description());__
// a red Circle of radius 100 at [10, 20]

Contributions

You want to help us improve ? Please read the contributing manual.

License

MIT

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published