JointJS
- Added
env
namespace withenv.test(name)
andenv.addTest(name, fn)
methods - Added
highlighters
namespace with two highlighters (stroke and opacity). Highlighting now done automatically when: embedding an element, connecting a link to a port or element. - dia.Paper:
- Added paper.drawGrid(opt) - draws grid lines on the paper's DOM element.
- Added paper.setGridSize(gridSize) - changes the grid size of the paper.
- Added paper.setInteractivity() for changing interactivity.
- Added blank:mousewheel and cell:mousewheel events to paper
- Added link:connect, link:disconnect paper events for easier link source/target change detection
- Changed the link tool event signature (e.g.
link:options
) to be the same as the rest of the cell events.
- dia.Cell:
- Added isElement() and isLink() methods
- dia.Element:
- Added scale() for transforming element by providing a scale ratio and origin.
- dia.Link:
- Added scale() for transforming link by providing a scale ratio and origin.
- dia.Graph:
- Added resize(), resizeCells() for a group resizing
- Added getCellsBBox() for getting a group bounding box
- Added removeCells()
- Can now use addCells(), removeCells(), and resetCells() with the same method signature. For example: addCells(cell, cell) addCells(cell, cell, opt) addCells([cell, cell]) addCells([cell, cell], opt) are all valid usage.
- layout.DirectedGraph:
- Added layout()
align
option for rank nodes alignment.
- Added layout()
Vectorizer
- Added transform() method to apply SVG matrix to SVG element
- Added empty(), before() method
- prepend() method now accepts single or multiple nodes
- createSVGTransform() now accepts optionally an SVG matrix
Geometry
- Added point.scale(), rect.scale() - scale point/rect with given origin.
- Added point.toJSON(), rect.toJSON() - converts point/rect into JSON object.
- Added leftMiddle(), rightMiddle(), topMiddle(), bottomMiddle() for finding middle points of rect sides.
- Added ellipse.fromRect(), rect.fromEllipse() for rect-ellipse interchangeability.