nx.graphic.Topology.LinkSet Class
LinkSet class
Item Index
Methods
- animate
- append
- attach
- clear
- clearBinding
- destroy
- detach
- dispose
- eachLink
- eachLinkSet
- getBinding
- getBound
- getContainer
- getLinkSet
- getLinkSetByLinkKey
- hide
- highlightlinkSets
- highlightlinkSets
- notify
- onAttach
- onChildAttach
- onChildDetach
- onDetach
- register
- remove
- resolve
- setBinding
- setModel
- setStyle
- setTransform
- show
- unregister
- unwatch
- update
Properties
- centerPoint
- class
- collapsed
- color
- count
- enable
- id
- line
- linkKey
- links
- linkType
- model
- owner
- parent
- reverse
- scale
- sourceNode
- sourceNodeID
- sourcePosition
- sourceVector
- sourceX
- sourceY
- targetNode
- targetNodeID
- targetPosition
- targetVector
- targetX
- targetY
- topology
- translate
- translateX
- translateY
- updateLinkSet
- visible
Methods
animate
-
config
Set animation for element,pass a config to this function { to :{ attr1:value, attr2:value, ... }, duration:Number, complete:Function }
Parameters:
-
config
JSON
append
-
[parent]
Append component's element to parent node or other dom element
Parameters:
-
[parent]
nx.graphic.Component optional
clear
()
Clear links layer
destroy
()
Destroy the component.
detach
()
Detach the component from parent.
dispose
()
Dispose the component.
getBinding
-
prop
Get existing binding object for specified property.
Parameters:
-
prop
Object
Returns:
getBound
()
| ClientRect
Get component's bound, delegate element's getBoundingClientRect function
Returns:
getContainer
-
comp
Get the container for component.
Parameters:
-
comp
Object
Returns:
getLinkSet
-
sourceVertexID
-
targetVertexID
Get linkSet by source node id and target node id
Returns:
getLinkSetByLinkKey
-
linkKey
Get linkSet by linkKey
Parameters:
-
linkKey
StringlinkKey
Returns:
hide
()
Hide component
onAttach
()
Template method for component attach.
onChildAttach
()
Template method for child component attach.
onChildDetach
()
Template method for child component detach.
onDetach
()
Template method for component detach.
register
-
name
-
value
-
force
Register a resource.
remove
()
Remove component's element from dom tree
setBinding
-
prop
-
expr
-
source
Set binding for specified property.
setModel
()
Factory function , will be call when set model
setStyle
-
key
-
value
-
[duration=0]
-
[callback]
-
[context]
Set component's css style
setTransform
-
[translateX]
-
[translateY]
-
[scale]
-
[duration=0]
Set component's transform
show
()
Show component
update
()
Factory function , will be call when relate data updated
Properties
centerPoint
Unknown
Get this center point's position
class
Unknown
Set/get css class
collapsed
Unknown
Collapsed statues
color
Unknown
LinkSet's color
id
Unknown
Get link's id
line
Unknown
Get link's line object
linkKey
Unknown
Get link's linkKey
links
Unknown
Sub links collection
model
Any
reverse
Unknown
Get is link is reverse link
scale
Unknown
Set/get scale
sourceNode
Unknown
Get source node's instance
sourceNodeID
Unknown
Get source node's id
sourcePosition
Unknown
Get source node's position
sourceVector
Unknown
Get source node's vector
sourceX
Unknown
Get source node's x position
sourceY
Unknown
Get source node's y position
targetNode
Unknown
Get target node's instance
targetNodeID
Unknown
Get target node's id
targetPosition
Unknown
Get target node's position
targetVector
Unknown
Get target node's vector
targetX
Unknown
Get target node's x position
targetY
Unknown
Get target node's x position
topology
Unknown
Get topology instance
translate
Unknown
Set/get translate, it set/get as {x:number,y:number}
translateX
Unknown
Set/get x translate
translateY
Unknown
Set/get y translate
updateLinkSet
Unknown
Update linkSet
visible
Unknown
Set/get element's visibility
Events
animationCompleted
Fired when animation completed
clickLinkSetNumber
Fired when click number element
collapseLinkSet
Fired when collapse linkSet
dragend
Fire when drag end
dragmove
Fire when drag move
dragstart
Fire when drag start
expandLinkSet
Fired when expend linkSet
numberenter
Fired when mouse enter number element
numberleave
Fired when mouse leave number element