Skip to content

Class: SurfViewControlSession ​

Defined in: controls/ControlSession.ts:231

Headless state machine for one control panel.

The target remains the canonical state owner and is never disposed by the session. Target updates are incorporated immediately into getSnapshot(), while listener delivery is coalesced to the latest canonical revision in a microtask. Local focus and disclosure remain independent across sessions.

Implements ​

Constructors ​

Constructor ​

ts
new SurfViewControlSession(target, options?): SurfViewControlSession;

Defined in: controls/ControlSession.ts:246

Parameters ​

target ​

SurfViewControlTarget

options? ​

SurfViewControlSessionOptions = {}

Returns ​

SurfViewControlSession

Methods ​

getSnapshot() ​

ts
getSnapshot(): SurfViewControlSessionSnapshot;

Defined in: controls/ControlSession.ts:285

Returns ​

SurfViewControlSessionSnapshot


subscribe() ​

ts
subscribe(listener): SurfViewControlSubscription;

Defined in: controls/ControlSession.ts:289

Parameters ​

listener ​

SurfViewControlSessionSnapshotListener

Returns ​

SurfViewControlSubscription


isDisposed() ​

ts
isDisposed(): boolean;

Defined in: controls/ControlSession.ts:307

Returns ​

boolean


dispose() ​

ts
dispose(): void;

Defined in: controls/ControlSession.ts:311

Returns ​

void


setFocusedSurface() ​

ts
setFocusedSurface(surfaceId): ControlCommandResult;

Defined in: controls/ControlSession.ts:322

Parameters ​

surfaceId ​

string

Returns ​

ControlCommandResult


setFocusedLayer() ​

ts
setFocusedLayer(address): ControlCommandResult;

Defined in: controls/ControlSession.ts:343

Parameters ​

address ​

LayerControlAddress

Returns ​

ControlCommandResult


setExpandedSections() ​

ts
setExpandedSections(sections): ControlCommandResult;

Defined in: controls/ControlSession.ts:380

Parameters ​

sections ​

readonly SurfViewControlSectionId[]

Returns ​

ControlCommandResult


setSectionExpanded() ​

ts
setSectionExpanded(section, expanded): ControlCommandResult;

Defined in: controls/ControlSession.ts:395

Parameters ​

section ​

SurfViewControlSectionId

expanded ​

boolean

Returns ​

ControlCommandResult


setAdvancedVisible() ​

ts
setAdvancedVisible(visible): ControlCommandResult;

Defined in: controls/ControlSession.ts:414

Parameters ​

visible ​

boolean

Returns ​

ControlCommandResult


setSymmetricRangeLock() ​

ts
setSymmetricRangeLock(enabled): ControlCommandResult;

Defined in: controls/ControlSession.ts:424

Parameters ​

enabled ​

boolean

Returns ​

ControlCommandResult


setAnatomicalView() ​

ts
setAnatomicalView(request): ControlCommandResult;

Defined in: controls/ControlSession.ts:434

Parameters ​

request ​

SetAnatomicalViewRequest

Returns ​

ControlCommandResult

Implementation of ​

SurfViewControlTargetCommands.setAnatomicalView


fitView() ​

ts
fitView(): ControlCommandResult;

Defined in: controls/ControlSession.ts:438

Returns ​

ControlCommandResult

Implementation of ​

SurfViewControlTargetCommands.fitView


resetView() ​

ts
resetView(): ControlCommandResult;

Defined in: controls/ControlSession.ts:442

Returns ​

ControlCommandResult

Implementation of ​

SurfViewControlTargetCommands.resetView


setSurfaceVisibility() ​

ts
setSurfaceVisibility(surfaceId, visible): ControlCommandResult;

Defined in: controls/ControlSession.ts:446

Parameters ​

surfaceId ​

string

visible ​

boolean

Returns ​

ControlCommandResult

Implementation of ​

SurfViewControlTargetCommands.setSurfaceVisibility


setLayerVisibility() ​

ts
setLayerVisibility(address, visible): ControlCommandResult;

Defined in: controls/ControlSession.ts:450

Parameters ​

address ​

LayerControlAddress

visible ​

boolean

Returns ​

ControlCommandResult

Implementation of ​

SurfViewControlTargetCommands.setLayerVisibility


setLayerOpacity() ​

ts
setLayerOpacity(address, opacity): ControlCommandResult;

Defined in: controls/ControlSession.ts:457

Parameters ​

address ​

LayerControlAddress

opacity ​

number

Returns ​

ControlCommandResult

Implementation of ​

SurfViewControlTargetCommands.setLayerOpacity


setLayerBlendMode() ​

ts
setLayerBlendMode(address, blendMode): ControlCommandResult;

Defined in: controls/ControlSession.ts:464

Parameters ​

address ​

LayerControlAddress

blendMode ​

BlendMode

Returns ​

ControlCommandResult

Implementation of ​

SurfViewControlTargetCommands.setLayerBlendMode


setLayerOrder() ​

ts
setLayerOrder(surfaceId, layerIds): ControlCommandResult;

Defined in: controls/ControlSession.ts:471

Parameters ​

surfaceId ​

string

layerIds ​

readonly string[]

Returns ​

ControlCommandResult

Implementation of ​

SurfViewControlTargetCommands.setLayerOrder


updateScalarMapping() ​

ts
updateScalarMapping(address, update): ControlCommandResult;

Defined in: controls/ControlSession.ts:478

Parameters ​

address ​

LayerControlAddress

update ​

ScalarMappingUpdate

Returns ​

ControlCommandResult

Implementation of ​

SurfViewControlTargetCommands.updateScalarMapping


setInspectionSelection() ​

ts
setInspectionSelection(selection): ControlCommandResult;

Defined in: controls/ControlSession.ts:485

Parameters ​

selection ​

InspectionSelection

Returns ​

ControlCommandResult

Implementation of ​

SurfViewControlTargetCommands.setInspectionSelection


applyFigurePreset() ​

ts
applyFigurePreset(presetId): ControlCommandResult;

Defined in: controls/ControlSession.ts:489

Parameters ​

presetId ​

string

Returns ​

ControlCommandResult

Implementation of ​

SurfViewControlTargetCommands.applyFigurePreset


setFigureBackground() ​

ts
setFigureBackground(background, transparent?): ControlCommandResult;

Defined in: controls/ControlSession.ts:493

Parameters ​

background ​

number

transparent? ​

boolean

Returns ​

ControlCommandResult

Implementation of ​

SurfViewControlTargetCommands.setFigureBackground


exportFigure() ​

ts
exportFigure(request?): Promise<ControlCommandResult<FigureExportResult>>;

Defined in: controls/ControlSession.ts:497

Parameters ​

request? ​

FigureExportRequest

Returns ​

Promise<ControlCommandResult<FigureExportResult>>

Implementation of ​

SurfViewControlTargetCommands.exportFigure


setDisplayedLayer() ​

ts
setDisplayedLayer(layerId): ControlCommandResult;

Defined in: controls/ControlSession.ts:505

Returns unsupported when ExclusiveMapCapability is absent.

Parameters ​

layerId ​

string

Returns ​

ControlCommandResult

Implementation of ​

SurfViewControlTargetCommands.setDisplayedLayer

Released under the MIT License.