我需要使用 jquery 更新 rappidjs 的单元格属性的值。我们怎么能做到这一点?
问问题
66 次
1 回答
0
某处需要做类似的工作
makeIconInElements(app.graph.toJSON());
function makeIconInElements(json2) {
if (json2 != undefined) {
let changedJson = json2;
changedJson.cells.forEach(function (cell) {
if (cell.type == ){ }
});
app.graph.fromJSON(changedJson);
//resizeCell(app.paper.model);
//Resizing the cell if icons are outside the box.
changedJson.cells.forEach(function (cell) {
let getAllCells = app.graph.getCells();
if (cell.showIcons) {
let currentResizingStep = getAllCells.filter(function (el) { return el.attributes.id == cell.id; });
autoResize(app, currentResizingStep[0]);
}
});
if (lastModifiedStep.attrs.task.status != abs") {
currentRunningPosition = lastModifiedStep.position;
app.paperScroller.scroll(currentRunningPosition.x, currentRunningPosition.y);
}
}
}
于 2020-08-06T07:43:14.190 回答