Skip to content

Commit

Permalink
[Primitives] Fix namespace
Browse files Browse the repository at this point in the history
Move from Aardvark.UI to Aardvark.UI.Primitives namespace
  • Loading branch information
hyazinthh committed Jul 18, 2024
1 parent 5de96b2 commit 52f3bd8
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions src/Aardvark.UI.Primitives/Notifications/Notifications.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
namespace Aardvark.UI.Primitives.Notifications

open Aardvark.UI
open Aardvark.UI.Primitives
open FSharp.Data.Adaptive

[<AutoOpen>]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Aardvark.UI
namespace Aardvark.UI.Primitives

open Aardvark.Base
open FSharp.Data.Adaptive
Expand Down
5 changes: 3 additions & 2 deletions src/Aardvark.UI.Primitives/Primitives/UI.Primitives.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace Aardvark.UI
namespace Aardvark.UI.Primitives

open System

Expand All @@ -7,6 +7,7 @@ open FSharp.Data.Adaptive

open Aardvark.UI
open Aardvark.UI.Operators
open Aardvark.UI.Primitives



Expand Down Expand Up @@ -85,7 +86,7 @@ module Html =
onBoot' ["chDocumentTitle", AVal.channel title] code node

let semui =
Primitives.SimplePrimitives.Html.semui
SimplePrimitives.Html.semui

let multiselectList (entries : list<'a>) (getId : 'a -> string) (getDomNode : 'a -> DomNode<'msg>) (getValue : string -> 'a) (onSelected : list<'a> -> 'msg) =
div [attribute "style" "width:100%"] [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

open Aardvark.Rendering
open Aardvark.UI
open Aardvark.UI.Primitives

open RenderingParametersModel

Expand Down
3 changes: 1 addition & 2 deletions src/Examples (dotnetcore)/15 - Svg/App.fs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ open Aardvark.Base
open FSharp.Data.Adaptive
open Aardvark.Rendering
open Model
open Aardvark.UI.Html

let (%) (v : V2d) (f : float) = V2d(f * float (int v.X / int f), f * float (int v.Y / int f))

Expand Down Expand Up @@ -58,7 +57,7 @@ let view (model : AdaptiveModel) =
)
]
br []
SemUi.dropDown model.dragMode SetDragMode
Html.SemUi.dropDown model.dragMode SetDragMode
br []
text "StepSize "
Numeric.numericField (SetStepSize >> Seq.singleton) AttributeMap.empty model.stepSize Slider
Expand Down
6 changes: 3 additions & 3 deletions src/Scratch/01 - PerfTest/Model.fs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ type Message =
| Tick of float
| ToggleAnimation

| SetUpdateLoad of Aardvark.UI.Numeric.Action
| SetGpuLoad of Aardvark.UI.Numeric.Action
| SetModLoad of Aardvark.UI.Numeric.Action
| SetUpdateLoad of Numeric.Action
| SetGpuLoad of Numeric.Action
| SetModLoad of Numeric.Action

[<ModelType>]
type Model =
Expand Down

0 comments on commit 52f3bd8

Please sign in to comment.