Please add options x, y for manual adjustment because there is a problem with the capture position of dom with Absolute properties and margin properties.
// add please 43 line
@param {Number} options.x - position x to be applied to node before rendering.
@param {Number} options.y - position y to be applied to node before rendering.
// add please 72 line
if (options.x && options.y) {
clone.style.transform = translate(-${options.x}px, -${options.y}px);
} else if (options.x) {
clone.style.transform = translateX(-${options.x}px);
} else if (options.y) {
clone.style.transform = translateY(-${options.y}px);
}
Please add options x, y for manual adjustment because there is a problem with the capture position of dom with Absolute properties and margin properties.
// add please 43 line
// add please 72 line if (options.x && options.y) { clone.style.transform =
translate(-${options.x}px, -${options.y}px)
; } else if (options.x) { clone.style.transform =translateX(-${options.x}px)
; } else if (options.y) { clone.style.transform =translateY(-${options.y}px)
; }