MCPcopy
hub / github.com/clientIO/joint / set

Method set

packages/joint-core/src/mvc/Data.mjs:24–32  ·  view source on GitHub ↗
(obj, key, value)

Source from the content-addressed store, hash-verified

22 }
23
24 set(obj, key, value) {
25 if (key === undefined) return;
26 const data = this.create(obj);
27 if (typeof key === 'string') {
28 data[key] = value;
29 } else {
30 Object.assign(data, key);
31 }
32 }
33
34 remove(obj, key) {
35 if (!this.has(obj)) return;

Callers 15

SVGDecoratorFunction · 0.45
ComponentFunction · 0.45
diffUpdateFunction · 0.45
cell-map.test.tsFile · 0.45
setFunction · 0.45
onRenderPortsFunction · 0.45
updateStoreFunction · 0.45
setCellHelperFunction · 0.45
useMeasureNodeSizeFunction · 0.45
setSizeFunction · 0.45

Calls 1

createMethod · 0.95

Tested by 2

setPositionMethod · 0.36
resetPositionMethod · 0.36