mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Fix for CollectionElements
This commit is contained in:
@@ -80,3 +80,17 @@ cy.on('zoom', (event) => {
|
||||
cy.nodes('$node > node').style('opacity', 0);
|
||||
}
|
||||
});
|
||||
|
||||
cy.animate({
|
||||
fit: {
|
||||
padding: 10,
|
||||
eles: cy.nodes()
|
||||
},
|
||||
duration: 500
|
||||
});
|
||||
|
||||
const node = cy.nodes()[0];
|
||||
cy.animate({
|
||||
center: {eles: node},
|
||||
duration: 500
|
||||
});
|
||||
|
||||
Vendored
+1
-2
@@ -1127,8 +1127,7 @@ declare namespace cytoscape {
|
||||
/**
|
||||
* The output is a collection of node and edge elements OR single element.
|
||||
*/
|
||||
interface CollectionElements extends
|
||||
EdgeCollection, NodeCollection, SingularElement { }
|
||||
type CollectionElements = EdgeCollection | NodeCollection | SingularElement;
|
||||
|
||||
/**
|
||||
* edges -> Cy.EdgeCollection
|
||||
|
||||
Reference in New Issue
Block a user