@benmaclaurin/hanzigrid

2.1.0 • Public • Published

Hanzi Grid

JS module for creating hanzi grids/tables

This is a simple module (my first) which generates SVG-based hanzi grids/tables for Chinese language learners. You can use Browserify to require this module on the web.

Install

npm install @benmaclaurin/hanzigrid

Usage

const grid = require('@benmaclaurin/hanzigrid');

document.getElementById('grid').innerHTML = grid.generate(14, 10, options = {
  dashes: 20,
  opacity: 0.1,
  lines: 4
});

Generates a new grid with 14 rows and 10 columns. Options:

  • dashes - dash density of guidelines
  • opacity - opacity of guidelines
  • lines - number of guidelines (2 or 4)

More options/features to come.

Readme

Keywords

none

Package Sidebar

Install

npm i @benmaclaurin/hanzigrid

Weekly Downloads

15

Version

2.1.0

License

none

Unpacked Size

5.54 kB

Total Files

4

Last publish

Collaborators

  • benmaclaurin