MCPcopy Create free account
hub / github.com/facebook/Rapid / perform

Method perform

modules/core/EditSystem.js:296–300  ·  view source on GitHub ↗

* perform * This performs a bit of work. Perform accepts a variable number of "action" arguments. * "Actions" are functions that accept a Graph and return a modified Graph. * All work is performed against the `staging` work-in-progress edit. * If multiple functions are passed, they will

(...args)

Source from the content-addressed store, hash-verified

294 * @return {Difference} Difference between before and after of `staging` Edit
295 */
296 perform(...args) {
297 d3_select(document).interrupt('editTransition'); // complete any transition already in progress
298 this._perform(args, 1);
299 return this._updateChanges(); // only one place in the code uses this return - split operation?
300 }
301
302
303 /**

Callers 15

_detectConflictsMethod · 0.80
_doDoubleClickMethod · 0.80
_doPasteMethod · 0.80
lineTaggedAsAreaIssueFunction · 0.80
lineToAreaDynamicFixesFunction · 0.80
extractPointDynamicFixesFunction · 0.80
makeIssueFunction · 0.80
makeAddRoleFixFunction · 0.80
getWayIssueIfAnyFunction · 0.80
oldTagIssuesFunction · 0.80

Calls 2

_performMethod · 0.95
_updateChangesMethod · 0.95

Tested by 1

prepareTestHistoryFunction · 0.64