Debian Codegraph @

html_renderer/src/lib/model/modelUtil.ts

raw symbols SCIP
1 import type Frame from "./Frame"
2 import type { Processor, ProcessorFunction, ProcessorOptions } from "./processors"
3
4 export function applyProcessors(rootFrame: Frame | null, processors: ProcessorFunction[], options: ProcessorOptions) {
5 let frame: Frame | null = rootFrame
6 for (const processor of processors) {
7 frame = processor(frame, options)
8 if (!frame) {
9 return null
10 }
11 }
12 return frame
13 }