0.1.12 • Published 3 years ago

vue-svg-belt v0.1.12

Weekly downloads
-
License
MIT
Repository
-
Last release
3 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

3 years ago

0.1.11

3 years ago

0.1.10

3 years ago

0.1.9

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago