svg.pablopie.xyz
A simple SVG markup editor for the web
Name | Size | Mode | |
.. | |||
src/Types.elm | 584B | -rw-r--r-- |
01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37
module Types exposing (..) import Http import File exposing (File) import Regex exposing (Regex) type alias Model = { image : String , status : Status , darkModeOn : Bool , uriEncoder : Regex , fileName : String , editorScroll : (Int, Int) , load : Load } type Status = Valid | Invalid type Load = Loading | Loaded type Upload = Requested | Selected File type Msg = Update String | Load (Result Http.Error String) | Validation Status | ToggleDarkMode | Download | Upload Upload | Scroll (Int, Int)