Skip to main content

Subspace

BRICKS TOOLS avatar
Written by BRICKS TOOLS
Updated over a week ago

A Subspace is a collection that contains canvases, bricks, animations, generators, properties, property calculations, and its own application logic.

  • Root Subspace is the primary Application.

  • A Subspace can include other Subspaces, but it cannot include the Root Subspace.

  • A Subspace can be converted into a Module for use in other Applications.

  • By adding a Brick component linked to a Subspace, you can embed a fully defined Subspace—including multiple canvases, bricks, animations, generators, properties, and property calculations—inside the canvas of another Subspace.


  • Layout Block

    1. Width and Height: Define the proportional layout size of the application. These values are not related to screen resolution. Since the application can run across devices of different sizes and resolutions, proportional layout ensures easy adaptation and conversion between devices.

    2. Resize Mode: Determines how the Subspace is displayed when placed inside another Subspace’s canvas.

      • Cover: Scales the Subspace while maintaining aspect ratio until both width and height are greater than or equal to the container’s size. Content fully covers or even exceeds the container, leaving no empty space.

      • Stretch: Stretches the Subspace without maintaining aspect ratio until both width and height exactly fill the container.


  • Operation Block (Only available for non-Root Subspaces)

    • Become Root Subspace: Convert this Subspace into the Root Subspace.

    • Use this to create Module: Convert this Subspace into a Module that can be used in other Applications.

    • Change Module Version (available only when the Subspace was imported as a Module): Switch between different versions of the Module. Since created Modules support version control, imported Subspaces can also be version-managed.

    • Remove this Subspace: Remove this Subspace. ⚠️ Use with caution, as this action cannot be undone.


  • Use Cases

    Example 1: You can build a complete Slideshow Subspace that automatically downloads a file list via Generators. Once completed, link it to the Root Subspace as a component to obtain an advanced Slideshow element with built-in file download functionality.

    Example 2: Alternatively, you can package the Subspace into a Module, then import it into another Application and connect it via a component.

Did this answer your question?