devextreme
Version:
HTML5 JavaScript Component Suite for Responsive Web Development
24 lines (23 loc) • 671 B
JavaScript
/**
* DevExtreme (esm/viz/sankey/data_validator.js)
* Version: 21.1.4
* Build date: Mon Jun 21 2021
*
* Copyright (c) 2012 - 2021 Developer Express Inc. ALL RIGHTS RESERVED
* Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/
*/
import graphModule from "./graph";
var validator = {
validate: function(data, incidentOccurred) {
var result = null;
if (this._hasCycle(data)) {
result = "E2006";
incidentOccurred("E2006")
}
return result
},
_hasCycle: function(data) {
return graphModule.struct.hasCycle(data)
}
};
export default validator;