MCPcopy Index your code
hub / github.com/markmap/markmap / getUsedAssets

Method getUsedAssets

packages/markmap-lib/src/transform.ts:117–122  ·  view source on GitHub ↗

* Get used assets by features object returned by `transform`.

(features: IFeatures)

Source from the content-addressed store, hash-verified

115 * Get used assets by features object returned by `transform`.
116 */
117 getUsedAssets(features: IFeatures): IAssets {
118 const keys = this.plugins
119 .map((plugin) => plugin.name)
120 .filter((name) => features[name]);
121 return this.getAssets(keys);
122 }
123}

Callers 2

createMarkmapFunction · 0.95
index.test.tsFile · 0.80

Calls 1

getAssetsMethod · 0.95

Tested by

no test coverage detected