diff --git a/src/ShapePicture_Editor.elm b/src/ShapePicture_Editor.elm index 362e20ef0820860bb662e5c19b9b85face4da32e..de6925ad2eb71e29f2323cbf509863ecc3d3699d 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 + }