jsyg-container
v1.0.0
Published
Container plugin for JSYG framework
Downloads
856
Maintainers
Readme
JSYG.Container
Container plugin for JSYG framework
Demo
http://yannickbochatay.github.io/JSYG.Container/
Installation
npm install jsyg-container
Example with es6 bundler
import Container from "jsyg-container"
let container = new Container()
container.appendTo('svg') //it's actually a g element
container.addItems("svg > *") //put elements inside the g element
container.translate(50,50).rotate(30) // apply transformation on group
container.freeItems() //free elements. They keep the transformation