shamansir / elm-aframe / AFrame.Components.Link

Link

href : String -> AFrame.Properties.Property

Destination URL where the link points to.

Default : ''

image : String -> AFrame.Properties.Property

360° image used as scene preview in the portal. Can be a selector to an element or a URL.

Default : ''

title : String -> AFrame.Properties.Property

Text displayed on the link. The href or page URL is used if not defined.

Default : ''

Colors

backgroundColor : Color -> AFrame.Properties.Property

Inner (background) color of the portal.

Default : red

borderColor : Color -> AFrame.Properties.Property

Border color of the portal.

Default : white

highlightedColor : Color -> AFrame.Properties.Property

Border color when highlighted.

Default : #24CAFF

titleColor : Color -> AFrame.Properties.Property

Color of the text displayed on the link.

Default : white

Configuration

highlighted : Basics.Bool -> AFrame.Properties.Property

Boolean to toggle link highlight color.

Default : false

peekMode : Basics.Bool -> AFrame.Properties.Property

Whether the 360° image is fully expanded for preview.

Default : false

visualAspectEnabled : Basics.Bool -> AFrame.Properties.Property

Whether to enable the default visual appearance of a portal. Set to false if we want to implement our own pattern or form of link traversal.

Default : true

Events

on : AFrame.EventRefs.EventRef -> AFrame.Properties.Property

Event to listen to that triggers link traversal.

Default : click