GithubHelp home page GithubHelp logo

mzusin / mz-svg Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 1.0 3.25 MB

TypeScript-based library for managing SVG in the browser and Node.js. The modular approach allows you to select only the required functions. It works well with all modern bundlers and Node.js and supports tree shaking ๐ŸŒฒ.

Home Page: https://svg.mzsoft.org/

License: Other

JavaScript 49.29% TypeScript 44.98% CSS 1.27% HTML 4.46%
svg svg-path svg-paths vector-graphics clippath svg-mask path-parser path-parsing path-validation relative-path

mz-svg's Introduction

ใƒŸโ˜† mzSVG โ˜†ๅฝก

GitHub package.json version NPM

TypeScript-based library for managing SVG in the browser and Node.js. The modular approach allows you to select only the required functions. It works well with all modern bundlers and Node.js and supports tree shaking ๐ŸŒฒ.

Links ๐Ÿ”—

Features ๐Ÿš€

  • Works in browser and Node.js.
  • Based on TypeScript.
  • Save the SVG to the file system in Node.js, or download it as SVG, PNG, JPG, etc. in a browser environment.
  • Extensive Unit Testing.

Working with path data ('d' property)

  • Translate, rotate, and scale path.
  • Convert path to relative or absolute commands.
  • Find path bounding box.
  • Minify path data.
  • Beautify path data.
  • Path data validation.
  • Path data parser.

Create SVG elements in browser & Node.js

  • Primitive shapes like path, rectangle, circle, ellipse, polygon, polyline, etc.
  • Container objects like <g>, <defs>, <use>, etc.
  • SVG <pattern>, <clipPath>, <mask>, etc.
  • Rectangle path element.
  • Star shape, flower shape.

Animation

  • Create animation elements like <animate>, <animateMotion>, <animateTransform>, etc.

Documentation ๐Ÿ”–

Main

Create SVG

Shapes

Containers

Path Data

IO

Animation

Helpers

Other


mz-svg's People

Contributors

mzusin avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

barionleg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.