Release v0.9.6
CHANGELOG
- dia.Graph introduces new functions for traversing graphs:
dfs()
,bfs()
,search()
,isSuccessor()
,isPredecessor()
,getPredecessors()
,getSuccessors()
,isNeighbor()
,isSource()
,isSink()
,getSources()
,getSinks()
,getSubgraph()
,getFirstCell()
,getLastCell()
andgetCells()
- new functions for cloning cells
dia.Graph.cloneCells()
,dia.Graph.cloneSubgraph()
- dia.Element
resize()
function has been extended withdirection
option allowing for resizing to any side - new convenient methods for getting source/target elements added to dia.Link:
getSourceElement()
andgetTargetElement()
- dia.Paper has a new option
multiLinks
that when set tofalse
, 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 withstrict
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 withinbound
andoutbound
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 andexcludeTypes
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