MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / mark

Function mark

packages/app-core/src/lib/cm-code-block-font.ts:34–38  ·  view source on GitHub ↗
(from: number, key: 'line' | 'begin' | 'end')

Source from the content-addressed store, hash-verified

32 // builder in strictly-ascending order.
33 const lineClasses = new Map<number, { line: boolean; begin: boolean; end: boolean }>()
34 const mark = (from: number, key: 'line' | 'begin' | 'end'): void => {
35 const entry = lineClasses.get(from) ?? { line: false, begin: false, end: false }
36 entry[key] = true
37 lineClasses.set(from, entry)
38 }
39 for (const { from, to } of view.visibleRanges) {
40 tree.iterate({
41 from,

Callers 1

buildDecorationsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected