MCPcopy
hub / github.com/witheve/Eve / DisplayUpdate

Function DisplayUpdate

src/codemirror.js:639–652  ·  view source on GitHub ↗
(cm, viewport, force)

Source from the content-addressed store, hash-verified

637 // DISPLAY DRAWING
638
639 function DisplayUpdate(cm, viewport, force) {
640 var display = cm.display;
641
642 this.viewport = viewport;
643 // Store some values that we'll need later (but don't want to force a relayout for)
644 this.visible = visibleLines(display, cm.doc, viewport);
645 this.editorIsHidden = !display.wrapper.offsetWidth;
646 this.wrapperHeight = display.wrapper.clientHeight;
647 this.wrapperWidth = display.wrapper.clientWidth;
648 this.oldDisplayWidth = displayWidth(cm);
649 this.force = force;
650 this.dims = getDimensions(cm);
651 this.events = [];
652 }
653
654 DisplayUpdate.prototype.signal = function(emitter, type) {
655 if (hasHandler(emitter, type))

Callers

nothing calls this directly

Calls 3

visibleLinesFunction · 0.85
displayWidthFunction · 0.85
getDimensionsFunction · 0.85

Tested by

no test coverage detected