From 8c6d835377aefb9cb5fdb4ac29abccd5b14c6910 Mon Sep 17 00:00:00 2001 From: abdulhasib <abdulhasib.reee@gmail.com> Date: Tue, 7 Jul 2020 09:59:18 +0200 Subject: [PATCH] =?UTF-8?q?letzte=20=C3=84nderung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/ShapePicture_Editor.elm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ShapePicture_Editor.elm b/src/ShapePicture_Editor.elm index 362e20e..de6925a 100644 --- a/src/ShapePicture_Editor.elm +++ b/src/ShapePicture_Editor.elm @@ -39,8 +39,11 @@ init _ url key = 800 600 ) - url - key + ,url = url + ,key = key + ,errorString = "" + ,stringToShapes = "[ { \"shape\": { \"polygon\": [ { \"x\": \"157\", \"y\": \"265\" }, { \"x\": \"26\", \"y\": \"116\" }, { \"x\": \"34\", \"y\": \"212\" }, { \"x\": \"229\", \"y\": \"188\" }, { \"x\": \"117\", \"y\": \"124\" } ] }, \"shapeprop\": { \"hFC\": \"white\", \"hFO\": \"0.5\", \"hSC\": \"red\", \"hSW\": \"3\", \"hSO\": \"1.0\", \"uFC\": \"white\", \"uFO\": \"0.0\", \"uSC\": \"red\", \"uSW\": \"3\", \"uSO\": \"1.0\", \"title\": \"default\", \"body\": \"default\" } }, { \"shape\": { \"rect\": { \"x\": \"486\", \"y\": \"60\", \"width\": \"84\", \"height\": \"74\" } }, \"shapeprop\": { \"hFC\": \"white\", \"hFO\": \"0.5\", \"hSC\": \"red\", \"hSW\": \"3\", \"hSO\": \"1.0\", \"uFC\": \"white\", \"uFO\": \"0.0\", \"uSC\": \"red\", \"uSW\": \"3\", \"uSO\": \"1.0\", \"title\": \"default\", \"body\": \"default\" } }, { \"shape\": { \"ellipse\": { \"cx\": \"410\", \"cy\": \"319\", \"rx\": \"110\", \"ry\": \"52\" } }, \"shapeprop\": { \"hFC\": \"white\", \"hFO\": \"0.5\", \"hSC\": \"red\", \"hSW\": \"3\", \"hSO\": \"1.0\", \"uFC\": \"white\", \"uFO\": \"0.0\", \"uSC\": \"red\", \"uSW\": \"3\", \"uSO\": \"1.0\", \"title\": \"default\", \"body\": \"default\" } }, { \"shape\": { \"circle\": { \"cx\": \"395\", \"cy\": \"104\", \"r\": \"66\" } }, \"shapeprop\": { \"hFC\": \"white\", \"hFO\": \"0.5\", \"hSC\": \"red\", \"hSW\": \"3\", \"hSO\": \"1.0\", \"uFC\": \"white\", \"uFO\": \"0.0\", \"uSC\": \"red\", \"uSW\": \"3\", \"uSO\": \"1.0\", \"title\": \"default\", \"body\": \"default\" } } ]" + } , Cmd.none ) -- SUBSCRIPTIONS @@ -50,4 +53,4 @@ subscriptions model = Sub.none documentView : Model -> Browser.Document Msg documentView model = { title = "ShapePicture_Editor" , body = [view model] - } \ No newline at end of file + } -- GitLab