comparison src/DML/MainVisBundle/Resources/assets/marionette/modules/RepresentationModule/RepresentationModule.31-Master.view.recording.tempo-histogram.js @ 0:493bcb69166c

added public content
author Daniel Wolff
date Tue, 09 Feb 2016 20:54:02 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:493bcb69166c
1 "use strict";
2
3 App.module("RepresentationModule", function(RepresentationModule, App, Backbone, Marionette, $, _, Logger) {
4
5 RepresentationModule.addInitializer(function(options){
6
7 RepresentationModule.registerMaster({
8 id: "view.recording.tempo-histogram",
9 inherit: "view.recording._histogram",
10
11 defaultConfigParameterValues: {
12 tempoMin: 30,
13 tempoMax: 300,
14 tempoNumBins: 50,
15 tempoPeriod: 1,
16 },
17
18 // =================================================================
19 // vis instance rendering
20
21
22 // -----------------------------------------------------------------
23 // vis instance rendering - base
24
25 _generateCustomParamsForRecordingPerspectiveRequestParams: function(viewConfig) {
26 var result = {
27 "min": this.getConfigParameterValueOrDefaultValue(viewConfig, "tempoMin"),
28 "max": this.getConfigParameterValueOrDefaultValue(viewConfig, "tempoMax"),
29 //"num_bins": this.getConfigParameterValueOrDefaultValue(viewConfig, "tempoNumBins"),
30 //"period": this.getConfigParameterValueOrDefaultValue(viewConfig, "tempoPeriod"),
31 };
32 return result;
33 },
34 });
35 });
36
37
38
39
40 }, Logger);