npm jointjs 0.9.6
Release v0.9.6

latest releases: 4.0.0-alpha.1, 3.7.7, 3.7.6...
8 years ago

CHANGELOG

  • dia.Graph introduces new functions for traversing graphs: dfs(), bfs(), search(), isSuccessor(), isPredecessor(), getPredecessors(), getSuccessors(), isNeighbor(), isSource(), isSink(), getSources(), getSinks(), getSubgraph(), getFirstCell(), getLastCell() and getCells()
  • new functions for cloning cells dia.Graph.cloneCells(), dia.Graph.cloneSubgraph()
  • dia.Element resize() function has been extended with direction option allowing for resizing to any side
  • new convenient methods for getting source/target elements added to dia.Link: getSourceElement() and getTargetElement()
  • dia.Paper has a new option multiLinks that when set to false, prevents from creating multiple links between the same elements
  • dia.Paper has a new option function guard that allows for preventing the paper from handling UI events
  • dia.Paper findViewsInArea() has been extended with strict option that when set, returns only views that are contained within the area passed in the argument
  • Vectorizer adds a new method transformPoint() for a convenient way transform points via SVG transformation matrices
  • Geometry adds a new function rect.union()
  • another new utility function added: joint.util.setAttributesBySelector() for setting attributes on DOM elements referenced by a selector
  • dia.Element and dia.Link has a new function getAncestors() that returs an array of ancestor cells
  • dia.Link has a new method hasLoop() for checking whether the link is a loop-link
  • dia.LinkView enables for setting a custom markup for its secondary tools (enabled via the doubleLinkTools option)
  • dia.Graph getNeighbors() function extended with inbound and outbound options
  • dia.Graph has a new translate() method for translating all elements in the graph
  • routers.manhattan introduces new options startDirections, endDirections to control what direction a link can start/end and excludeTypes to ignore certain element types as obstacles
  • routers and connectors can now be defined directly on links as functions
  • links are now much faster when used with manhattan router
  • fixed a critical bug in upcoming Google Chrome which removed the native getTransformToElement() method on SVG elements
  • other bug fixes and improvements

Don't miss a new jointjs release

NewReleases is sending notifications on new releases.