MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / getSetNodeProperty

Function getSetNodeProperty

src/pages/Workspace/BluePrint.jsx:214–229  ·  view source on GitHub ↗
(id, type)

Source from the content-addressed store, hash-verified

212 return temp
213 }
214 const getSetNodeProperty = (id, type) => {
215 const result = {}
216 if (type === 'element' || type === 'interActive') {
217 type = 'component'
218 }
219 const config = findNodeConfigById(id, type)// 获取Node的config
220 config && config.property.forEach(property => {
221 const { value } = property
222 if (property.name === 'customFunction') {
223 result[property.name] = `function adapter(data){${value}}`
224 } else {
225 result[property.name] = value
226 }
227 })
228 return result
229 }
230 const getChildrenProperty = (saveNodeData, startNode) => {
231 // 根据起始node获取所有连接的node
232 const find = (node) => {

Callers 1

findFunction · 0.85

Calls 1

findNodeConfigByIdFunction · 0.85

Tested by

no test coverage detected