Cartographer User and Technical Documentation
Home
User Docs
Technical Docs
Home
User Docs
Technical Docs
  • User Documentation
    • Introduction
    • Cartographer App
    • User Interface
    • Actions
  • Technical Documentation
    • Components

      • AppFooter Component
      • AppHeader Component
      • AppSidebar Component
      • ContentPreviewMdiv Component
      • Content Preview Measure
      • Content Preview Pane
      • ImageSelection Modal
      • LoadGitModal Component
      • LoadIIIFModal Component
      • LoadXMLModal Component
      • MainMenu Component
      • MeasureModal Component
      • MdivModal Component
      • OsdComponent Component
      • PageImportModal Component
      • PagesListEntry Component
      • PagesModal Component
    • Store
      • Vuex Store (src/store/index.js)
    • Tools
      • IIIF Tools (src/tools/iiif.js)
      • MEI Mapping Tools (src/tools/meimapping.js)

MeasureModal Component

Displays a modal dialog for viewing and editing the properties of the current measure.


Overview

The MeasureModal component:

  • Shows a modal dialog with the current measure's number and label.
  • Allows assigning the measure to a different movement (mdiv) or creating a new mdiv.
  • Enables editing or removing the explicit measure label.
  • Supports enabling and setting a multi-measure rest value.
  • Modal can be closed with the Close button or overlay.
  • Uses Vuex store for state management and actions.

Layout

  • Header: Modal title with measure number/label and close button.
  • Body:
    • Dropdown for selecting or creating an mdiv.
    • Switch and input for explicit measure label.
    • Switch and input for multi-measure rest value.
  • Footer: Close button.

Props

None


Computed Properties

NameDescription
mdivsReturns the list of all mdivs from the store
currentMdivReturns the current mdiv object from the store
measureReturns the current measure object from the store
measureLabelActivatedBoolean for explicit label activation
measureLabelValueTwo-way binding for the measure label
multiRestActivatedBoolean for multi-rest activation
multiRestValueTwo-way binding for the multi-rest value

Methods

NameDescription
selectMdivAssigns the measure to a selected mdiv
createNewMdivCreates a new mdiv and opens the mdiv modal
closeModalCloses the modal dialog
handleChangeHandles mdiv selection or creation from dropdown

Example

<MeasureModal />
Prev
MainMenu Component
Next
MdivModal Component