UNPKG

kibana-with-account

Version:

kibana-with-account is develop based kibana project

22 lines (18 loc) 704 B
define(function (require) { return function VisTypeFactory(Private) { var VisTypeSchemas = Private(require('ui/Vis/Schemas')); function VisType(opts) { opts = opts || {}; this.name = opts.name; this.title = opts.title; this.responseConverter = opts.responseConverter; this.hierarchicalData = opts.hierarchicalData || false; this.icon = opts.icon; this.description = opts.description; this.schemas = opts.schemas || new VisTypeSchemas(); this.params = opts.params || {}; this.requiresSearch = opts.requiresSearch == null ? true : opts.requiresSearch; // Default to true unless otherwise specified } return VisType; }; });