cadre/component

View on A-Frame document

Values

pub fn anchored(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn animation(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn animation_(
  id: String,
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn ar_hit_test(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn background(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn camera(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn cursor(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn debug(is_debug: Bool) -> attribute.Attribute(message)
pub fn device_orientation_permission_ui(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn embedded(
  is_embedded: Bool,
) -> attribute.Attribute(message)
pub fn fog(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn geometry(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn gltf_model(value: String) -> attribute.Attribute(message)
pub fn hand_controls(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn hand_tracking_controls(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn hand_tracking_grab_controls(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn hide_on_enter_ar(
  is_hide_on_enter_ar: Bool,
) -> attribute.Attribute(message)
pub fn hide_on_enter_vr(
  is_hide_on_enter_vr: Bool,
) -> attribute.Attribute(message)
pub fn keyboard_shortcuts(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn laser_controls(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn layer(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn light(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn line(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn line_(
  id: String,
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn link(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn loading_screen(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn logitech_mx_ink_controls(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn look_controls(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn magicleap_controls(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn material(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn meta_touch_controls(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn obb_collider(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn obj_model(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn pool(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn pool_(
  id: String,
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn position(
  position: vec3.Vec3(Float),
) -> attribute.Attribute(message)
pub fn property(property: anything) -> String

Deprecated: Please convert value to string manually instead

Returns a String property for any of these types:

Other type will returns an empty string.

View on A-Frame document

pub fn raycaster(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn real_world_meshing(
  is_real_world_meshing: Bool,
) -> attribute.Attribute(message)
pub fn reflection(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn renderer(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn rotation(
  rotation: vec3.Vec3(Float),
) -> attribute.Attribute(message)
pub fn scale(
  scale: vec3.Vec3(Float),
) -> attribute.Attribute(message)
pub fn screenshot(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn shadow(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn sound(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn stats(is_stats: Bool) -> attribute.Attribute(message)
pub fn text(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn tracked_controls(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn visible(visible: Bool) -> attribute.Attribute(message)
pub fn vive_controls(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn vive_focus_controls(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn wasd_controls(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn webxr(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn windows_motion_controls(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
pub fn xr_mode_ui(
  properties: List(#(String, String)),
) -> attribute.Attribute(message)
Search Document