ngx-kit 9.2.4 → 9.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -208,7 +208,7 @@ class DragPreviewRef {
208
208
  this.isCustom = false;
209
209
  const preview = dragEl.cloneNode(true);
210
210
  this.element = preview;
211
- // Avoid duplicated ids in the document.
211
+ // Avoid duplicated ids in the document
212
212
  this.element.removeAttribute('id');
213
213
  this.element.querySelectorAll('[id]').forEach((n) => n.removeAttribute('id'));
214
214
  copyVisualStyles(dragEl, this.element);
@@ -359,7 +359,7 @@ function multiplyLinear(left, right) {
359
359
  }
360
360
  /**
361
361
  * Converts a client-space point from one same-origin Document viewport to another.
362
- * The conversion walks both frameElement chains through their common top-level document.
362
+ * The conversion walks both frameElement chains through their common top-level document
363
363
  * Cross-origin frame boundaries cannot be inspected and return null.
364
364
  */
365
365
  function convertPointBetweenDocuments(point, fromDocument, toDocument) {
@@ -943,7 +943,6 @@ class DragRef {
943
943
  const targetDocument = list.el?.ownerDocument;
944
944
  if (!targetDocument)
945
945
  continue;
946
- // Pointer coordinates originate in the draggable's document. A same-origin iframe has
947
946
  // its own viewport coordinate space, so convert before testing its DropList geometry.
948
947
  const targetPoint = convertPointBetweenDocuments(pointer, this.el.ownerDocument, targetDocument);
949
948
  if (!targetPoint || !list._containsPoint(targetPoint.x, targetPoint.y))
@@ -2279,7 +2278,6 @@ class DropListRef {
2279
2278
  if (ph.custom)
2280
2279
  return;
2281
2280
  placeholder.style.display = drag.originalDisplay;
2282
- // `rect` is in the VIEWPORT pixels of the dragged item's document. CSS sizes are local to the
2283
2281
  // list: convert across an (optionally scaled) iframe boundary first, then through the
2284
2282
  // list's own scaled/zoomed ancestors. Without this a placeholder inside a `scale(.5)` canvas
2285
2283
  // would be drawn at half the size it reserves.