MCPcopy
hub / github.com/chenglou/pretext / prepareWithSegments

Function prepareWithSegments

src/layout.ts:688–690  ·  view source on GitHub ↗
(text: string, font: string, options?: PrepareOptions)

Source from the content-addressed store, hash-verified

686// Rich variant used by callers that need enough information to render the
687// laid-out lines themselves.
688export function prepareWithSegments(text: string, font: string, options?: PrepareOptions): PreparedTextWithSegments {
689 return prepareInternal(text, font, true, options) as PreparedTextWithSegments
690}
691
692function getInternalPrepared(prepared: PreparedText): InternalPreparedText {
693 return prepared as InternalPreparedText

Callers 15

runSweepFunction · 0.90
loadCorpusFunction · 0.90
buildCorpusBenchmarksFunction · 0.90
runFunction · 0.90
buildProbeReportFunction · 0.90
measureWidthFunction · 0.90
getPreparedFunction · 0.90
createDemoResourcesFunction · 0.90
prepareBubbleTextsFunction · 0.90
fitHeadlineFunction · 0.90
buildCodeBlockFunction · 0.90

Calls 1

prepareInternalFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…