MCPcopy Create free account
hub / github.com/TruthHun/BookStack / DisplayUpdate

Function DisplayUpdate

static/mergely/lib/codemirror.js:637–650  ·  view source on GitHub ↗
(cm, viewport, force)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

visibleLinesFunction · 0.70
displayWidthFunction · 0.70
getDimensionsFunction · 0.70

Tested by

no test coverage detected