From 0c7416c98a9f21eb3a10a59a8553228ecb8338af Mon Sep 17 00:00:00 2001 From: Patrick Simianer
Date: Mon, 14 Dec 2015 12:41:38 +0100
Subject: extract raw svg as fun.
---
derivation-editor.js | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/derivation-editor.js b/derivation-editor.js
index 968d591..29f95c1 100644
--- a/derivation-editor.js
+++ b/derivation-editor.js
@@ -980,6 +980,14 @@ var DE_enter_edit_mode = function (sh, kbd=false)
* extract data from ui
*
*/
+var DE_get_raw_svg_data = function()
+{
+ if (DE_paper)
+ return btoa(DE_paper.canvas.innerHTML);
+ else
+ return "";
+}
+
var DE_extract_data = function ()
{
el = document.getElementById("data");
@@ -1013,16 +1021,12 @@ var DE_extract_data = function ()
}
// source_raw
if (DE_data_source_raw) {
- for (var i=0; i