Daniel@0: "use strict"; Daniel@0: Daniel@0: App.module("RepresentationModule", function(RepresentationModule, App, Backbone, Marionette, $, _, Logger) { Daniel@0: Daniel@0: RepresentationModule.addInitializer(function(options){ Daniel@0: Daniel@0: RepresentationModule.registerMaster({ Daniel@0: id: "view._histogram", Daniel@0: inherit: "view._", Daniel@0: Daniel@0: options: { Daniel@0: canHaveBase: true, Daniel@0: Daniel@0: visInstanceContentHeightMin: 50, Daniel@0: visInstanceContentHeightMax: 1000, Daniel@0: Daniel@0: visInstanceSupportedComparisonModes: ["superposition", "direct"], Daniel@0: }, Daniel@0: Daniel@0: Daniel@0: // ================================================================= Daniel@0: // vis instance rendering Daniel@0: Daniel@0: Daniel@0: // ----------------------------------------------------------------- Daniel@0: // vis instance rendering - base Daniel@0: Daniel@0: _doRenderVisInstanceViewBaseWithKnownComparisonMode: function(visInstanceView, comparisonMode) { Daniel@0: var options = this._generateHistogramOptions(_.str.trim(visInstanceView.options.viewConfig.getParameterValue("kind"))); Daniel@0: options.comparisonMode = comparisonMode; Daniel@0: Daniel@0: App.GraphicsRenderingModule.render("histogram", visInstanceView.$content, this._groupDataForGraphicsRendering(visInstanceView, "base"), options); Daniel@0: }, Daniel@0: Daniel@0: _generateHistogramOptions: function(pid) {} Daniel@0: }); Daniel@0: }); Daniel@0: }, Logger);