MCPcopy Index your code
hub / github.com/simstudioai/sim / relsPathFor

Function relsPathFor

apps/sim/lib/pptx-renderer/model/presentation.ts:45–49  ·  view source on GitHub ↗

* For a given XML file path, find its corresponding .rels file path. * E.g., "ppt/slides/slide1.xml" → "ppt/slides/_rels/slide1.xml.rels"

(filePath: string)

Source from the content-addressed store, hash-verified

43 * E.g., "ppt/slides/slide1.xml""ppt/slides/_rels/slide1.xml.rels"
44 */
45function relsPathFor(filePath: string): string {
46 const dir = basePath(filePath)
47 const fileName = filePath.substring(filePath.lastIndexOf('/') + 1)
48 return `${dir}/_rels/${fileName}.rels`
49}
50
51/**
52 * Detect WPS (Kingsoft Office / WPS Office) by checking for known markers

Callers 1

buildPresentationFunction · 0.85

Calls 1

basePathFunction · 0.85

Tested by

no test coverage detected