From 826b51704fd10a6730cdcd46ddf507d4bb247108 Mon Sep 17 00:00:00 2001 From: j Date: Wed, 5 Dec 2018 17:44:19 +0100 Subject: [PATCH] more data in csv --- static/index.html | 2 +- static/js/cccc.js | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/static/index.html b/static/index.html index 8e4b674..d0e5755 100644 --- a/static/index.html +++ b/static/index.html @@ -100,8 +100,8 @@
  • Global Speed:
  • Export:

  • -
  • +
  • Import:

  • import sequence
  • import presets
  • diff --git a/static/js/cccc.js b/static/js/cccc.js index 54060ed..4d5b404 100644 --- a/static/js/cccc.js +++ b/static/js/cccc.js @@ -498,7 +498,9 @@ function getPreset(id) { function exportSequenceCSV() { var position = 0; - return data.map(function(row) { + return [ + ['preset', 'name', 'time', 'duration', 'speed', 'sleep', 'elevation', 'azimuth', 'zoom'] + ].concat(data.map(function(row) { var r = []; r.push(row.preset) var preset = getPreset(row.preset) @@ -513,8 +515,11 @@ function exportSequenceCSV() { } r.push(row.speed) r.push(row.sleep) + r.push(preset.position.elevation) + r.push(preset.position.azimuth) + r.push(preset.position.absoluteZoom) return r.join(','); - }).join('\n'); + })).join('\n'); } $('button.export_sequence_csv').on({click: function() {