🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

matoran-alphabet

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

matoran-alphabet

Package for drawing Matoran alphabet characters

2.0.3
latest
Source
npm
Version published
Maintainers
0
Created
Source

matoran-alphabet

Package for drawing Matoran alphabet characters

npm node

size downloads

main

Overview

Currently supports drawing multiple different character styles as SVG code.

Usage

Basic Usage

import {CharactersRound, SvgEncoder} from 'matoran-alphabet';

const characters = new CharactersRound();
const svg = new SvgEncoder(characters);
console.log(svg.encode('A'));

Characters Styles

Multple styles are available.

  • CharactersRound
  • CharactersHex1
  • CharactersHex2

Line Stroke and Margins

The stroke and marign around the characters can be adjusted.

characters.stroke = 16;
characters.margin.top = 2;
characters.margin.right = 4;
characters.margin.left = 6;
characters.margin.bottom = 8;

SVG Options

The SVG code can be customized.

svg.header = '<?xml version="1.0" encoding="UTF-8"?>\n';
svg.svgAttrs['xmlns:svg'] = 'http://www.w3.org/2000/svg';
svg.pathAttrs.stroke = '#808080';
svg.prepend = '<g>';
svg.append = '</g>';

Bugs

If you find a bug or have compatibility issues, please open a ticket under issues section for this repository.

License

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.

Keywords

matoran

FAQs

Package last updated on 07 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts