From 5f651b4fa34c554412c5e86cab9d7bab4482421c Mon Sep 17 00:00:00 2001
From: Carsten  Rose <carsten.rose@math.uzh.ch>
Date: Tue, 12 Sep 2017 14:56:47 +0200
Subject: [PATCH] Fabric: Entwurf Prokoll

---
 doc/FABRIC.md   | 26 ++++++++++++++++++++++++++
 doc/PROTOCOL.md |  2 +-
 2 files changed, 27 insertions(+), 1 deletion(-)
 create mode 100644 doc/FABRIC.md

diff --git a/doc/FABRIC.md b/doc/FABRIC.md
new file mode 100644
index 000000000..f0c18f40a
--- /dev/null
+++ b/doc/FABRIC.md
@@ -0,0 +1,26 @@
+Design / Notes for fabric.js
+==========================================
+
+General
+=======
+
+* grafische Annotierung von PNG, SVG,.... 
+* Fuer die erste Vorstellung noch kein Fullscreen.
+
+Concept
+=======
+
+* Das fabric Element 
+** ist als FormElement implementiert.
+** Wird ganz normal asl FE Element in col-md gewrapped.
+* Server sendet alle vom User hochgeladenen Bilder inline/hidden im HTML Code mit einer HTML-ID.
+* Die Bilder werden als JSON Array an das Element 'fabric' via 'data-images' uebergeben:
+
+<HTML>
+...
+<div id="fabric" data-images='{"images": [{"page": 1, "selector": "#qfq-fabric-image-1"}, {"page":2, "selector": "#qfq..."}]}'> 
+...
+</HTML>
+
+* Form Submit ist ein regualeres Save.
+* Pro Aufgabe gibt es ein FormElemnt das die Fabric Drwaing JSON Daten enthaelt.
\ No newline at end of file
diff --git a/doc/PROTOCOL.md b/doc/PROTOCOL.md
index a2ed32fca..9c758fa0f 100644
--- a/doc/PROTOCOL.md
+++ b/doc/PROTOCOL.md
@@ -389,7 +389,7 @@ On one of`"error"|"conflict"|"conflict_allow_force"` the Client must display `"<
 On `"conflict"` the Client opens the alert as modal dialog (user can't change anything on the form) with a 'reload current
 form' button.
 On `"conflict_allow_force"` the Client opens the alert non-modal (default).
-
+  
 ## Glossary
 
 SIP
-- 
GitLab