Mercurial > hg > dml-open-vis
annotate src/DML/MainVisBundle/Resources/assets/marionette/modules/RepresentationModule/RepresentationModule.31-Master.view.collection.pitch-histogram.js @ 1:f38015048f48 tip
Added GPL
author | Daniel Wolff |
---|---|
date | Sat, 13 Feb 2016 20:43:38 +0100 |
parents | 493bcb69166c |
children |
rev | line source |
---|---|
Daniel@0 | 1 "use strict"; |
Daniel@0 | 2 |
Daniel@0 | 3 App.module("RepresentationModule", function(RepresentationModule, App, Backbone, Marionette, $, _, Logger) { |
Daniel@0 | 4 |
Daniel@0 | 5 RepresentationModule.addInitializer(function(options){ |
Daniel@0 | 6 |
Daniel@0 | 7 RepresentationModule.registerMaster({ |
Daniel@0 | 8 id: "view.collection.pitch-histogram", |
Daniel@0 | 9 inherit: "view.collection._histogram", |
Daniel@0 | 10 |
Daniel@0 | 11 |
Daniel@0 | 12 defaultConfigParameterValues: { |
Daniel@0 | 13 weighting: "none", |
Daniel@0 | 14 pitchMin: 20, |
Daniel@0 | 15 pitchMax: 100, |
Daniel@0 | 16 //quant: 5 |
Daniel@0 | 17 }, |
Daniel@0 | 18 |
Daniel@0 | 19 |
Daniel@0 | 20 // ================================================================= |
Daniel@0 | 21 // vis instance rendering |
Daniel@0 | 22 |
Daniel@0 | 23 |
Daniel@0 | 24 // ----------------------------------------------------------------- |
Daniel@0 | 25 // vis instance rendering - base |
Daniel@0 | 26 |
Daniel@0 | 27 _generateCustomParamsForBasePerspectiveRequestParams: function(viewConfig) { |
Daniel@0 | 28 var result = { |
Daniel@0 | 29 "weighting": this.getConfigParameterValueOrDefaultValue(viewConfig, "weighting", true), |
Daniel@0 | 30 "min": this.getConfigParameterValueOrDefaultValue(viewConfig, "pitchMin", true), |
Daniel@0 | 31 "max": this.getConfigParameterValueOrDefaultValue(viewConfig, "pitchMax", true), |
Daniel@0 | 32 //"quant": this.getConfigParameterValueOrDefaultValue(viewConfig, "quant", true), |
Daniel@0 | 33 }; |
Daniel@0 | 34 return result; |
Daniel@0 | 35 }, |
Daniel@0 | 36 }); |
Daniel@0 | 37 }); |
Daniel@0 | 38 }, Logger); |