|
|
@ -24,10 +24,10 @@ import InteractionHandler from './modules/InteractionHandler'; |
|
|
|
import SelectionHandler from "./modules/SelectionHandler"; |
|
|
|
import LayoutEngine from "./modules/LayoutEngine"; |
|
|
|
import ManipulationSystem from "./modules/ManipulationSystem"; |
|
|
|
import ConfigurationSystem from "./modules/ConfigurationSystem"; |
|
|
|
import Validator from "./modules/Validator"; |
|
|
|
import {printStyle} from "./modules/Validator"; |
|
|
|
import {allOptions, configureOptions} from './modules/components/AllOptions.js'; |
|
|
|
import ConfigurationSystem from "./../shared/ConfigurationSystem"; |
|
|
|
import Validator from "./../shared/Validator"; |
|
|
|
import {printStyle} from "./../shared/Validator"; |
|
|
|
import {allOptions, configureOptions} from './options.js'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -146,8 +146,7 @@ Network.prototype.setOptions = function (options) { |
|
|
|
|
|
|
|
let errorFound = Validator.validate(options, allOptions); |
|
|
|
if (errorFound === true) { |
|
|
|
options = {}; |
|
|
|
console.log('%cErrors have been found in the supplied options object. None of the options will be used.', printStyle); |
|
|
|
console.log('%cErrors have been found in the supplied options object.', printStyle); |
|
|
|
} |
|
|
|
|
|
|
|
// copy the global fields over
|
|
|
|