| structuredClone | const clone = structuredClone(data)
| ready |
| spread destruct | const clone = {...data};
| ready |
| manual 1 | const { x, y, rotation, scaleX, scaleY, skewX, skewY } = data;
const clone = { x, y, rotation, scaleX, scaleY, skewX, skewY };
| ready |
| manual 2 | const clone = { x: data.x, y: data.y, rotation: data.rotation, scaleX: data.scaleX, scaleY: data.scaleY, skewX: data.skewX, skewY: data.skewY }
| ready |
| manual 3 | const { x, y, rotation, scaleX, scaleY, skewX, skewY } = data;
const clone = { x:x, y:y, rotation:rotation, scaleX:scaleX, scaleY:scaleY, skewX:skewX, skewY:skewY };
| ready |
| Object.assign 1 | const clone = Object.assign({ x: 0, y: 0, rotation: 0, scaleX: 0, scaleY: 0, skewX: 0, skewY: 0 }, data);
| ready |
| Object.assign 2 | const clone = Object.assign({}, data);
| ready |
| Object.create | const clone = Object.create(data)
| ready |