Skip to content

Commit

Permalink
Move UI.map to Aardvark.UI
Browse files Browse the repository at this point in the history
  • Loading branch information
hyazinthh committed Jul 18, 2024
1 parent d433ecb commit 7735bea
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 0 additions & 8 deletions src/Aardvark.UI.Primitives/Primitives/UI.Primitives.fs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@ open Aardvark.UI
open Aardvark.UI.Operators
open Aardvark.UI.Primitives



module UI =
let map (f : 'a -> 'b) (source : DomNode<'a>) : DomNode<'b> =
MapNode<'a, 'b>(f, source) :> DomNode<_>
//source.Map f


type NumericInputType = Slider | InputBox

module List =
Expand Down
3 changes: 3 additions & 0 deletions src/Aardvark.UI/Core.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1253,6 +1253,9 @@ and DomNode private() =

DomNode.RenderControl(attributes, proc, getState, scene, htmlChildren)

module UI =
let inline map (mapping: 'T1 -> 'T2) (source: DomNode<'T1>) : DomNode<'T2> =
DomNode.Map(mapping, source)

type Unpersist<'model, 'mmodel> =
{
Expand Down

0 comments on commit 7735bea

Please sign in to comment.