HabitatMap/AirCasting

View on GitHub
app/javascript/elm/src/Ports.elm

Summary

Maintainability
Test Coverage
port module Ports exposing
    ( deselectSession
    , drawFixed
    , drawMobile
    , fetchSessions
    , graphRangeSelected
    , isShowingTimeRangeFilter
    , loadMoreSessions
    , locationCleared
    , locationUpdated
    , mapMoved
    , observeSessionsList
    , profileSelected
    , pulseSessionMarker
    , refreshTimeRange
    , saveScrollPosition
    , selectSensorId
    , selectSession
    , setScroll
    , setZoom
    , showCopyLinkTooltip
    , tagSelected
    , timeRangeSelected
    , toggleActive
    , toggleCrowdMap
    , toggleIndoor
    , toggleIsSearchOn
    , toggleSessionSelection
    , toggleTheme
    , updateGraphData
    , updateGraphYAxis
    , updateHeatMapThresholds
    , updateHeatMapThresholdsFromJavaScript
    , updateIsHttping
    , updateParams
    , updateProfiles
    , updateResolution
    , updateSessions
    , updateTags
    , zoomChanged
    )

import Data.GraphData exposing (GraphData, GraphHeatData, GraphMeasurementsData, GraphTimeRange)
import Data.HeatMapThresholds exposing (HeatMapThresholdValues)
import Data.Markers exposing (SessionMarkerData)
import Data.SelectedSession exposing (SelectedSessionForJavaScript)
import Json.Encode as Encode


port tagSelected : (String -> msg) -> Sub msg


port profileSelected : (String -> msg) -> Sub msg


port timeRangeSelected : (Encode.Value -> msg) -> Sub msg


port locationCleared : (() -> msg) -> Sub msg


port locationUpdated : (String -> msg) -> Sub msg


port showCopyLinkTooltip : String -> Cmd a


port toggleCrowdMap : Bool -> Cmd a


port toggleIndoor : Bool -> Cmd a


port toggleActive : Bool -> Cmd a


port updateResolution : Int -> Cmd a


port selectSensorId : String -> Cmd a


port updateSessions : (Encode.Value -> msg) -> Sub msg


port selectSession : SelectedSessionForJavaScript -> Cmd msg


port deselectSession : () -> Cmd msg


port loadMoreSessions : () -> Cmd msg


port updateIsHttping : (Bool -> msg) -> Sub msg


port updateTags : List String -> Cmd a


port updateProfiles : List String -> Cmd a


port toggleSessionSelection : (Maybe Int -> msg) -> Sub msg


port refreshTimeRange : () -> Cmd a


port updateHeatMapThresholds : HeatMapThresholdValues -> Cmd a


port updateHeatMapThresholdsFromJavaScript : (HeatMapThresholdValues -> msg) -> Sub msg


port drawMobile : GraphData -> Cmd a


port drawFixed : GraphData -> Cmd a


port toggleIsSearchOn : Bool -> Cmd a


port mapMoved : (() -> msg) -> Sub msg


port fetchSessions : () -> Cmd a


port pulseSessionMarker : Maybe SessionMarkerData -> Cmd a


port graphRangeSelected : (GraphTimeRange -> msg) -> Sub msg


port isShowingTimeRangeFilter : (Bool -> msg) -> Sub msg


port saveScrollPosition : Float -> Cmd a


port setScroll : (() -> msg) -> Sub msg


port observeSessionsList : () -> Cmd a


port toggleTheme : String -> Cmd a


port updateGraphYAxis : GraphHeatData -> Cmd a


port updateGraphData : GraphMeasurementsData -> Cmd a


port updateParams : { key : String, value : Bool } -> Cmd a


port setZoom : Int -> Cmd a


port zoomChanged : (Int -> msg) -> Sub msg