MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / constructor

Method constructor

lib/web/CodeMirror/src/line/line_data.js:17–21  ·  view source on GitHub ↗
(text, markedSpans, estimateHeight)

Source from the content-addressed store, hash-verified

15// highlighting info (the styles array).
16export class Line {
17 constructor(text, markedSpans, estimateHeight) {
18 this.text = text
19 attachMarkedSpans(this, markedSpans)
20 this.height = estimateHeight ? estimateHeight(this) : 1
21 }
22
23 lineNo() { return lineNo(this) }
24}

Callers

nothing calls this directly

Calls 2

attachMarkedSpansFunction · 0.90
estimateHeightFunction · 0.50

Tested by

no test coverage detected