diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/DML/MainVisBundle/Resources/assets/marionette/modules/RepresentationModule/RepresentationModule.31-Master.view.recording.tempo-histogram.js	Tue Feb 09 20:54:02 2016 +0100
@@ -0,0 +1,40 @@
+"use strict";
+
+App.module("RepresentationModule", function(RepresentationModule, App, Backbone, Marionette, $, _, Logger) {
+
+    RepresentationModule.addInitializer(function(options){
+
+        RepresentationModule.registerMaster({
+            id: "view.recording.tempo-histogram",
+            inherit: "view.recording._histogram",
+
+            defaultConfigParameterValues: {
+                tempoMin: 30,
+                tempoMax: 300,
+                tempoNumBins: 50,
+                tempoPeriod: 1,
+            },
+
+            // =================================================================
+            // vis instance rendering
+
+
+            // -----------------------------------------------------------------
+            // vis instance rendering - base
+
+            _generateCustomParamsForRecordingPerspectiveRequestParams: function(viewConfig) {
+                var result = {
+                        "min": this.getConfigParameterValueOrDefaultValue(viewConfig, "tempoMin"),
+                        "max": this.getConfigParameterValueOrDefaultValue(viewConfig, "tempoMax"),
+                        //"num_bins": this.getConfigParameterValueOrDefaultValue(viewConfig, "tempoNumBins"),
+                        //"period": this.getConfigParameterValueOrDefaultValue(viewConfig, "tempoPeriod"),
+                };
+                return result;
+            },
+        });
+    });
+
+
+
+
+}, Logger);