@@ -747,7 +747,7 @@ Cytoscape.propTypes = {
747
747
*/
748
748
tapNode : PropTypes . exact ( {
749
749
/** node specific item */
750
- edgesData : PropTypes . object ,
750
+ edgesData : PropTypes . array ,
751
751
/** node specific item */
752
752
renderedPosition : PropTypes . object ,
753
753
/** node specific item */
@@ -771,15 +771,15 @@ Cytoscape.propTypes = {
771
771
/** General item (for all elements) */
772
772
style : PropTypes . object ,
773
773
/** Item for compound nodes */
774
- ancestorsData : PropTypes . object ,
774
+ ancestorsData : PropTypes . oneOfType ( [ PropTypes . object , PropTypes . array ] ) ,
775
775
/** Item for compound nodes */
776
- childrenData : PropTypes . object ,
776
+ childrenData : PropTypes . oneOfType ( [ PropTypes . object , PropTypes . array ] ) ,
777
777
/** Item for compound nodes */
778
- descendantsData : PropTypes . object ,
778
+ descendantsData : PropTypes . oneOfType ( [ PropTypes . object , PropTypes . array ] ) ,
779
779
/** Item for compound nodes */
780
- parentData : PropTypes . object ,
780
+ parentData : PropTypes . oneOfType ( [ PropTypes . object , PropTypes . array ] ) ,
781
781
/** Item for compound nodes */
782
- siblingsData : PropTypes . object ,
782
+ siblingsData : PropTypes . oneOfType ( [ PropTypes . object , PropTypes . array ] ) ,
783
783
/** Item for compound nodes */
784
784
isParent : PropTypes . bool ,
785
785
/** Item for compound nodes */
@@ -872,9 +872,9 @@ Cytoscape.propTypes = {
872
872
* the image, it may be prudent to invoke `'download'` for `action` instead of
873
873
* `'store'` to improve performance by preventing transfer of data to the server.
874
874
*/
875
- generateImage : PropTypes . exact ( {
875
+ generateImage : PropTypes . shape ( {
876
876
/** File type to output */
877
- type : PropTypes . oneOf ( [ 'svg' , 'png' , 'jpg' , 'jpeg' ] ) . isRequired ,
877
+ type : PropTypes . oneOf ( [ 'svg' , 'png' , 'jpg' , 'jpeg' ] ) ,
878
878
/** Dictionary of options to cy.png() / cy.jpg() or cy.svg() for image generation.
879
879
* See https://js.cytoscape.org/#core/export for details. For `'output'`, only 'base64'
880
880
* and 'base64uri' are supported. Default: `{'output': 'base64uri'}`.*/
0 commit comments