This is an alternative site for discovering Elm packages. You may be looking for the official Elm package site instead.

Here4.App

We did not parse any module docs.
module Here4.App exposing (..)

import Here4.App.Types as Types exposing (..)
import Here4.App.Internal as Internal
import Here4.Body exposing (..)
import Here4.Camera as Camera
import Here4.Camera.Types as Camera
import Here4.Dispatch exposing (..)
import Here4.Ground as Ground
import Here4.Location exposing (Location)
import Here4.Model as Model exposing (PartyKey)
import Task exposing (Task)
import Time


type alias Framing =
    Camera.Framing


type alias Ground =
    Ground.Ground


type alias PartyKey =
    Model.PartyKey


type alias Time =
    Time.Time


create : ( model, Cmd (CtrlMsg msg) ) -> Types.Animated model (CtrlMsg msg) -> ( App, Cmd AppMsg )
create =
    Internal.create


createUncontrolled : ( model, Cmd msg ) -> Types.Animated model msg -> ( App, Cmd AppMsg )
createUncontrolled =
    Internal.createUncontrolled


toFraming : Moving a -> Framing
toFraming =
    Camera.toFraming


appToFocus : Oriented a -> Focus
appToFocus =
    Internal.appToFocus


orientedToFocus : Oriented a -> Focus
orientedToFocus =
    Internal.orientedToFocus


noFraming : PartyKey -> model -> Maybe Framing
noFraming _ _ =
    Nothing


teleport : PartyKey -> Location -> Cmd (CtrlMsg a)
teleport partyKey location =
    Task.succeed location |> Task.perform (Effect << RelocateParty () partyKey)