0.0.6 • Published 2 years ago

hzpx v0.0.6

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

hzpx

hzpx backend in Typescript

prerequsite

  • esbuild
  • prebuild glyphwiki font

run esbuild background watch to test offline application

npm run dev

to pack a minified bundle

npm run build 

usage

see dist/index.html

API

wait for font file ready, take up 8MB ram for 87000+ glyphs await Hzpx.ready();

replace entire element with a given text or innerText

Hzpx.renderElement(e:HTMLElement, text?:string)

inject glyphs into a HTML tree, normal text are intact

Hzpx.inject(e:HTMLElement, options:InjectOptions );

text enclosed by pair will be treated as Pinx, cjk to specify with code range to be replaced, case insensitive.

InjectOptions={ pair?='︻︼', cjk?='CDEFG' } 

license

ISC

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago