jsyg-alignment
v1.0.0
Published
Alignment plugin for JSYG framework
Downloads
855
Maintainers
Readme
JSYG.Alignment
Alignment plugin for JSYG framework
Demo
http://yannickbochatay.github.io/JSYG.Alignment/
Installation
npm install jsyg-alignment
Examples with webpack/babel
with the constructor
import Alignment from "jsyg-alignment"
let alignElmts = new Alignment("#svgContainer > *")
alignElmts.alignTop().alignLeft()
as a JSYG plugin
import JSYG from "jsyg"
import "jsyg-alignment"
JSYG("#svgContainer > *").align("top").align("left")