MCPcopy Create free account
hub / github.com/facebook/Rapid / hideViewer

Method hideViewer

modules/core/PhotoSystem.js:678–686  ·  view source on GitHub ↗

* hideViewer * Hide the photo viewer. If the viewer was showing a photo, deselect the photo.

()

Source from the content-addressed store, hash-verified

676 * Hide the photo viewer. If the viewer was showing a photo, deselect the photo.
677 */
678 hideViewer() {
679 for (const layerID of this.photoLayerIDs) {
680 if (layerID === this._currPhotoLayerID) {
681 this.selectPhoto(); // deselect
682 }
683 const service = this.context.services[layerID];
684 service?.hideViewer();
685 }
686 }
687
688
689 /**

Callers 2

_layerchangeMethod · 0.95
renderMethod · 0.45

Calls 1

selectPhotoMethod · 0.95

Tested by

no test coverage detected