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.collection.pitch-histogram", Daniel@0: inherit: "view.collection._histogram", Daniel@0: Daniel@0: Daniel@0: defaultConfigParameterValues: { Daniel@0: weighting: "none", Daniel@0: pitchMin: 20, Daniel@0: pitchMax: 100, Daniel@0: //quant: 5 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: _generateCustomParamsForBasePerspectiveRequestParams: function(viewConfig) { Daniel@0: var result = { Daniel@0: "weighting": this.getConfigParameterValueOrDefaultValue(viewConfig, "weighting", true), Daniel@0: "min": this.getConfigParameterValueOrDefaultValue(viewConfig, "pitchMin", true), Daniel@0: "max": this.getConfigParameterValueOrDefaultValue(viewConfig, "pitchMax", true), Daniel@0: //"quant": this.getConfigParameterValueOrDefaultValue(viewConfig, "quant", true), Daniel@0: }; Daniel@0: return result; Daniel@0: }, Daniel@0: }); Daniel@0: }); Daniel@0: }, Logger);