0.1.12 • Published 2 years ago

vue-svg-belt v0.1.12

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Vue 3 component to easily create any style martial arts belt in SVG format.

Highlights

  • Vite + Vue + TypeScript
  • SVG vector images
  • Predefine belts
  • Random belt generator
  • Clean and focused
  • Actively maintained

Install

npm install vue-svg-belt

Usage

JavaScript

// Get IBJJF White Belt
import { SVGBelt, BeltSystem, ibjjfJSON } from "vue-svg-belt";

const ibjjfSystem = new BeltSystem(ibjjfJSON);

const whiteBelt = ibjjfSystem.getBeltPropsByName("White", 0);

TypeScript

// Get IBJJF White Belt
import { SVGBelt, BeltProps, BeltSystem, ibjjfJSON } from "vue-svg-belt";

const ibjjfSystem: BeltSystem = new BeltSystem(ibjjfJSON);

const whiteBelt: BeltProps[] = ibjjfSystem.getBeltPropsByName("White", 0);

Vue Component

<template>
  <SVGBelt :beltProps="whiteBelt" />
</template>

Predefined Belts

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago