MCPcopy Create free account
hub / github.com/PAIR-code/lit / resize

Method resize

lit_nlp/client/modules/dive_module.ts:521–524  ·  view source on GitHub ↗

Resizes the Megaplot Scene canvas and resets the scale.

()

Source from the content-addressed store, hash-verified

519
520 /** Resizes the Megaplot Scene canvas and resets the scale. */
521 private resize() {
522 this.scene?.resize();
523 this.resetScale();
524 }
525
526 private updateZoom(scaleX: number, scaleY: number) {
527 if (this.scene != null) {

Callers 5

DiveModuleClass · 0.95
resizePlotsMethod · 0.45
EmbeddingsModuleClass · 0.45
overlay_pixel_saliencyFunction · 0.45

Calls 1

resetScaleMethod · 0.95

Tested by

no test coverage detected