diff --git a/doc/FABRIC.md b/doc/FABRIC.md new file mode 100644 index 0000000000000000000000000000000000000000..f0c18f40a5ab551fa94e4d0d13734be80ab82666 --- /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 a2ed32fcafb8ef448662326c4f4e09562f656c9a..9c758fa0fc4b19a95540dd3f83b8771301400057 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