Lasso plugin for NetV.js(http://netv.zjuvag.org/)
Create lasso handler
netv: NetV
: pass core NetV objectconfigs: {}
: key-value pair configsenable: bool
: default enable lasso or notmultiSelectKey: string
: key pressed when using multi-select, default is'Shift'
pathStyle: {}
: lasso path style (below is supported attribute and their default value)fill
:rgba(200, 200, 200, 0.2)
,stroke
:black
,stroke-width
:2
,stroke-dasharray
:[]
,stroke-linejoin
:round
,stroke-linecap
:round
Dispose lasso handler, clean related DOM element
Manually enable lasso selection.
Manually disable lasso selection.
Set lasso's closeDistance to control the tolerance.
Set callback function, the callback can get selected nodes in NetV's Node type.