Hanging Porotocols: viewportOptions ingnored in stages

Describe Your Question

  • A clear and concise description of what problem you are having.
    When trying to apply stages to a hanging protocol, the viewportOptions only apply to the first viewport of the second stage. All viewports after this (either in this stage or the next ones) do not get the modifications on viewportOptions. Other modifiers like background colors still work.

What I am trying to do is set up the image to be on the right/left border of the viewport for mamographies.
image

Also, modifying the imagePoint values does move the image arond 10 times more than expected from the documentation in https://www.cornerstonejs.org/live-examples/stackapi.

  • Which OHIF version you are using?
    3.7 release
    const leftDisplayArea = {
      imageArea: [1, 1],
      imageCanvasPoint: {
        imagePoint: [0.5, 0.5],
        canvasPoint: [0.7, 0.5],
      },
      storeAsInitialCamera: true,
    };

    {
      name: 'RCC/MLO',
      viewportStructure: {
        type: 'grid',
        layoutType: 'grid',
        properties: {
          rows: 1,
          columns: 2,
        },
      },
      viewports: [
        {
          viewportOptions: {
            toolGroupId: 'default',
            flipHorizontaly: true,
          },
          displaySets: [
            {
              id: 'RCC',
            },
          ],
        },
        {
          viewportOptions: {
            toolGroupId: 'default',
            flipHorizontaly: true,
          },
          displaySets: [
            {
              id: 'RMLO',
            },
          ],
        },
      ],
    },