MCPcopy Create free account
hub / github.com/breck7/scroll / DisplayUpdate

Function DisplayUpdate

external/.scrollLibs.js:5825–5838  ·  view source on GitHub ↗
(cm, viewport, force)

Source from the content-addressed store, hash-verified

5823 // DISPLAY DRAWING
5824
5825 var DisplayUpdate = function (cm, viewport, force) {
5826 var display = cm.display
5827
5828 this.viewport = viewport
5829 // Store some values that we'll need later (but don't want to force a relayout for)
5830 this.visible = visibleLines(display, cm.doc, viewport)
5831 this.editorIsHidden = !display.wrapper.offsetWidth
5832 this.wrapperHeight = display.wrapper.clientHeight
5833 this.wrapperWidth = display.wrapper.clientWidth
5834 this.oldDisplayWidth = displayWidth(cm)
5835 this.force = force
5836 this.dims = getDimensions(cm)
5837 this.events = []
5838 }
5839
5840 DisplayUpdate.prototype.signal = function (emitter, type) {
5841 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