MCPcopy
hub / github.com/THU-MAIC/OpenMAIC / getTextByPathList

Function getTextByPathList

packages/@openmaic/importer/src1/utils.js:56–65  ·  view source on GitHub ↗
(node, path)

Source from the content-addressed store, hash-verified

54}
55
56export function getTextByPathList(node, path) {
57 if (!node) return node
58
59 for (const key of path) {
60 node = node[key]
61 if (!node) return node
62 }
63
64 return node
65}
66
67export function angleToDegrees(angle) {
68 if (!angle) return 0

Callers 15

getPicFillFunction · 0.90
getPicFillOpacityFunction · 0.90
getPicFiltersFunction · 0.90
getBgPicFillFunction · 0.90
getGradientFillFunction · 0.90
getPatternFillFunction · 0.90
getBgGradientFillFunction · 0.90
getSlideBackgroundFillFunction · 0.90
getShapeFillFunction · 0.90
getSolidFillFunction · 0.90
getShapePathFunction · 0.90
getTableCellParamsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected