-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
API revisions for 3.0 #1092
Labels
Milestone
Comments
Closed
This was referenced Feb 21, 2017
@maxkfranz Did you remove the Thread method from the cytoscape.js object? I am getting |
@mj3cheun Yes, you should |
Ok thanks |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Improvements to the API that break backwards compatibility (sorted by most-to-least significant amount of changes needed to update your app):
function(i, ele)
signature becomefunction(ele, i)
etc, e.g.eles.each()
Functions with thefunction(i, ele)
signature becomefunction(ele, i)
etc, e.g.eles.each()
#1531eles.bfs()
eles.dfs()
eles.each()
eles.filter()
eles.positions()
eles.layoutPositions()
cy.layout()
andeles.layout()
return the layout rather than chaining the calling objectcy.layout()
andeles.layout()
return the layout rather than chaining the calling object #1533weight
should not setthis
Callbacks likeweight
should not setthis
#1535eles.each()
eles.filter()
eles.positions()
eles.layoutPositions()
eles.bfs()
eles.dfs()
eles.dijkstra()
eles.aStar()
eles.bellmanFord()
eles.kruskal()
eles.floydWarshall()
eles.pageRank()
eles.closenessCentrality()
&eles.closenessCentralityNormalized()
eles.betweennessCentrality()
&eles.betweennessCentralityNormalized()
eles.degreeCentrality()
&eles.degreeCentralityNormalized()
concentric
layout (already deprecated)cose
layout (already deprecated)cy
prefix on event fields, because we don't merge with the original event (as left open); e.g.cyTarget
=>target
Removecy
prefix on event fields, because we don't merge with the original event (as left open); e.g.cyTarget
=>target
#1537:touch
selector -- not reliable as some desktop browsers now implement touch APIs without hardware support Remove:touch
selector -- not reliable as some desktop browsers now implement touch APIs without hardware support #1540cy.onRender()
andcy.offRender()
with arender
event Replacecy.onRender()
andcy.offRender()
with arender
event #1541grab
event should happen on nodes being dragged; usegrabon
for differentiating which element the cursor or finger holdsgrab
event should happen on nodes being dragged; usegrabon
for differentiating which element the cursor or finger holds #1545$('#cy-div').cytoscape(...)
syntax) Remove jQuery plugin (still allow passing a jQuery element to init, but don't allow$('#cy-div').cytoscape(...)
syntax) #1539cy.load()
Remove the already deprecatedcy.load()
#1534layout()
andscratch()
mapper support in code Remove deprecatedlayout()
andscratch()
mapper support in code #1536cy.initrender()
Remove deprecatedcy.initrender()
#1538inhibitor
arrow shape alias Removeinhibitor
arrow shape alias #1655data
parameters in.on()
etc Removedata
parameters in.on()
etc #1764The text was updated successfully, but these errors were encountered: