* Applies a `transform` to the preview, taking into account any existing transforms on it. * @param x New transform value along the X axis. * @param y New transform value along the Y axis.
(x: number, y: number)
| 1412 | * @param y New transform value along the Y axis. |
| 1413 | */ |
| 1414 | private _applyPreviewTransform(x: number, y: number) { |
| 1415 | // Only apply the initial transform if the preview is a clone of the original element, otherwise |
| 1416 | // it could be completely different and the transform might not make sense anymore. |
| 1417 | const initialTransform = this._previewTemplate?.template ? undefined : this._initialTransform; |
| 1418 | const transform = getTransform(x, y); |
| 1419 | this._preview!.setTransform(combineTransforms(transform, initialTransform)); |
| 1420 | } |
| 1421 | |
| 1422 | /** |
| 1423 | * Gets the distance that the user has dragged during the current drag sequence. |
no test coverage detected