Skip to main content

src/cadre.gleam

//// View on [A-Frame document](https://aframe.io/docs/master/introduction)

import lustre/attribute.{type Attribute}
import lustre/element.{type Element}

/// View on [A-Frame document](https://aframe.io/docs/master/core/scene.html)
///
pub fn scene(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-scene", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/core/asset-management-system.html)
///
pub fn assets(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-assets", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/core/mixins.html)
///
pub fn mixin(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-mixin", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/core/asset-management-system.html)
///
pub fn asset_item(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-asset-item", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/core/entity.html)
///
pub fn entity(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-entity", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-box.html)
///
pub fn box(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-box", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-camera.html)
///
pub fn camera(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-camera", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-circle.html)
///
pub fn circle(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-circle", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-cone.html)
///
pub fn cone(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-cone", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-cubemap.html)
///
pub fn cubemap(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-cubemap", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-cursor.html)
///
pub fn cursor(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-cursor", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-curvedimage.html)
///
pub fn curvedimage(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-curvedimage", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-cylinder.html)
///
pub fn cylinder(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-cylinder", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-dodecahedron.html)
///
pub fn dodecahedron(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-dodecahedron", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-gltf-model.html)
///
pub fn gltf_model(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-gltf-model", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-icosahedron.html)
///
pub fn icosahedron(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-icosahedron", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-image.html)
///
pub fn image(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-image", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-light.html)
///
pub fn light(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-light", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-link.html)
///
pub fn link(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-link", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-obj-model.html)
///
pub fn obj_model(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-obj-model", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-octahedron.html)
///
pub fn octahedron(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-octahedron", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-plane.html)
///
pub fn plane(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-plane", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-ring.html)
///
pub fn ring(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-ring", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-sky.html)
///
pub fn sky(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-sky", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-sound.html)
///
pub fn sound(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-sound", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-sphere.html)
///
pub fn sphere(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-sphere", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-tetrahedron.html)
///
pub fn tetrahedron(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-tetrahedron", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-text.html)
///
pub fn text(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-text", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-torus-knot.html)
///
pub fn torus_knot(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-torus-knot", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-torus.html)
///
pub fn torus(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-torus", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-triangle.html)
///
pub fn triangle(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-triangle", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-video.html)
///
pub fn video(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-video", attributes, children)
}

/// View on [A-Frame document](https://aframe.io/docs/master/primitives/a-videosphere.html)
///
pub fn videosphere(
  attributes: List(Attribute(message)),
  children: List(Element(message)),
) -> Element(message) {
  element.element("a-videosphere", attributes, children)
}