UNPKG

kibana-123

Version:

Kibana is an open source (Apache Licensed), browser based analytics and search dashboard for Elasticsearch. Kibana is a snap to setup and start using. Kibana strives to be easy to get started with, while also being flexible and powerful, just like Elastic

27 lines (21 loc) 877 B
import VisSchemasProvider from './schemas'; export default function VisTypeFactory(Private) { let VisTypeSchemas = Private(VisSchemasProvider); 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 this.implementsRenderComplete = opts.implementsRenderComplete || false; } VisType.prototype.createRenderbot = function (vis, $el, uiState) { throw new Error('not implemented'); }; return VisType; };