Package for drawing Matoran alphabet characters
npm install matoran-alphabetPackage for drawing Matoran alphabet characters





Currently supports drawing multiple different character styles as SVG code.
``js
import {CharactersRound, SvgEncoder} from 'matoran-alphabet';
const characters = new CharactersRound();
const svg = new SvgEncoder(characters);
console.log(svg.encode('A'));
`
Multple styles are available.
- CharactersRoundCharactersHex1
- CharactersHex2
-
The stroke and marign around the characters can be adjusted.
`js`
characters.stroke = 16;
characters.margin.top = 2;
characters.margin.right = 4;
characters.margin.left = 6;
characters.margin.bottom = 8;
The SVG code can be customized.
`js``
svg.header = '\n';
svg.svgAttrs['xmlns:svg'] = 'http://www.w3.org/2000/svg';
svg.pathAttrs.stroke = '#808080';
svg.prepend = '
svg.append = '
If you find a bug or have compatibility issues, please open a ticket under issues section for this repository.
Copyright (c) 2021-2023 JrMasterModelBuilder
Licensed under the Mozilla Public License, v. 2.0.
If this license does not work for you, feel free to contact me.