Spector Vision
  • Home
  • Getting started
    • Install
    • Device pairing
  • Features
    • 🔬NDT
      • Measurement mesh
      • Measurement display
    • 🗜️Laminate repair tool
    • 📐Space aware positioning
      • Origin manipulation
    • 📹Video capture
    • 🪄Detection
      • Streaming
    • Advanced use
      • Changing API Environment in Spector
  • UI elements
    • 🎛️Defect panel
    • 📍Origin handler
  • API
    • Overview
    • Startup [Admin API]
    • Device [Content API]
      • Main
      • Marker manipulations
    • Documents [Content API]
      • View documents
    • LRT [Detection API]
    • Defect dimensions [Detection API]
    • Space settings
      • Endpoints
  • Releases
    • 1.2
    • 1.1
    • 1.0
    • Pilot 1.8
      • 🥽Fixes
      • 🥽Alignment marker along z-axis
      • 🥽Nodes rotation
    • Pilot 1.7
      • 🥽Status bar and header
      • 🥽Defect description
      • 🥽Defect codes relations
      • 🥽Disposition: select number of plies
      • 🥽Disposition: all plies table
      • 📡Disposition API: get all plies
      • 📡Disposition API: get selected plies
      • 🥽Disposition: selected plies table
      • 🥽Disposition: display layup image
      • 📡Disposition API: Get image layup
      • 📡Disposition API: Update LRT data
      • 🥽Handler (Scene Origin) Rotation
      • 🖥️Portal laminate repair tool
      • 📡Detection API: Defect dimensions
    • Pilot 1.6
    • Pilot 1.5
    • Pilot 1.4
    • Pilot 1.3
    • Pilot 1.1-2
    • 🔵Pilot 1.0
    • Pilot 0.3
    • Pilot 0.2
    • Pilot 0.1
    • 🟢Demo 1.0
    • Demo 0.3
    • Demo 0.2
    • Demo 0.1
  • Identity
    • Spector logo
Powered by GitBook
On this page
  • Description
  • Data Fields
  • API Functions

Was this helpful?

  1. API

Space settings

The Space Settings module manages the configuration and visibility settings for spaces within the application. It includes settings for handler visibility, model visibility, and associations with doc

Last updated 5 months ago

Was this helpful?

Description

The Space Settings module is designed to handle various settings related to spaces. It allows for the configuration of visibility options for handlers and models, as well as the management of associated documents, media, and components. This module includes entities, DTOs, services, and controllers to facilitate the creation, updating, and retrieval of space settings.

Data Fields

SpaceSettingsEntity

  • : Unique index for the space settings.

  • : Boolean indicating if the handler is visible.

  • : Boolean indicating if the model is visible.

  • components: Array of associated components.

  • selectedComponent: The selected component.

  • documents: Array of associated documents.

  • media: Array of associated media.

  • space: The associated space.

CreateSpaceSettingsDto

  • : Optional boolean indicating if the handler is visible.

  • spaceIndex: Unique index for the space.

UpdateSpaceSettingsDto

  • spaceIndex: Unique index for the space.

  • isModelListVisible: Optional boolean indicating if the model list is visible.

  • selectedComponentIndex: Optional index of the selected component.

  • documentIndexes: Optional array of document indexes.

  • componentIndexes: Optional array of component indexes.

  • mediaIndexes: Optional array of media indexes.

SpaceSettingsDto

  • spaceIndex: Unique index for the space.

  • documentIndexes: Array of document indexes.

  • mediaIndexes: Array of media indexes.

  • componentIndexes: Array of component indexes.

  • selectedComponentIndex: Index of the selected component or null.

API Functions

SpaceSettingsService

  • getSpaceSettings(spaceIndex: string): Retrieves the space settings for a given space index.

  • createSpaceSettings(createSpaceSettingsDto: CreateSpaceSettingsDto): Creates new space settings.

  • updateSpaceSettings(updateSpaceSettingsDto: UpdateSpaceSettingsDto): Updates existing space settings.

  • updateLists(spaceSettingsEntity: SpaceSettingsEntity, listName: 'documents' | 'media' | 'components', indexes: string[]): Updates the lists of documents, media, or components.

SpaceSettingsController

  • getSpaceSettings(spaceIndex: string): Handles GET requests to retrieve space settings.

  • createSpaceSettings(createSpaceSettingsDto: CreateSpaceSettingsDto): Handles POST requests to create new space settings.

  • updateSpaceSettings(updateSpaceSettingsDto: UpdateSpaceSettingsDto): Handles PATCH requests to update existing space settings.

: Optional boolean indicating if the handler is visible.

: Optional boolean indicating if the model is visible.

: Boolean indicating if the handler is visible.

: Boolean indicating if the model is visible.

spaceSettingsIndex
isHandlerVisible
isModelVisible
isHandlerVisible
isHandlerVisible
isModelVisible
isHandlerVisible
isModelVisible