Project

infogra

0.0
No commit activity in last 3 years
No release in over 3 years
This gem provides infographic javascript library for your Rails 3 application.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 0.6
< 5.0, >= 3.0
 Project Readme

infogra

Infographic Modeller & Viewer

Features

  • Canvas base
  • Barcode Symbols
  • Rectangle
  • Circle
  • Line
  • Text
  • Image

Usage

var infogra = require('infogra');

var modeler = infogra.createModeler(canvas, {
	keydown : onKeyDownHandler,
    selectionchange : onSelectionChange,
    propertychange : onPropertyChange
});

var viewer = infogra.createViewer(canvas, {
	keydown : onKeyDownHandler
});

API

Objects

  • modeler / viewer
  • symbol (model)

Modeler(Viewer) Properties

  • get / set
  • edit mode
  • width
  • height
  • root model
  • symbol : get symbol

Symbols (Models) Manipulation

  • add : add symbol(s)
  • remove : remove symbol(s)
  • get : get child symbol(s)

Selections

  • selected : get or set selected symbol

Move

  • move : move delta or move to

Editing

  • undo
  • redo
  • cut
  • copy
  • paste

Align

  • align : top, bottom, left, right, vcenter, hcenter

Arrange Z-Order

  • arrange : front, back, forward, backward

Scale

  • scale : enlarge, reduce or set scale

Events

Modeler(Viewer) Property Change

  • before / after property change
  • before / after close

Symbols Structure Change

  • When symbols structure is changed
  • It means some symbol is added, removed or moved on their symbol hierarchy

Symbol(Model) Property Change

License

Copyright (c) 2014 Hearty, Oh. Licensed under the MIT license.