MCPcopy Create free account
hub / github.com/angular/components / constructor

Method constructor

src/cdk/drag-drop/preview-ref.ts:46–60  ·  view source on GitHub ↗
(
    private _document: Document,
    private _rootElement: HTMLElement,
    private _direction: Direction,
    private _initialDomRect: DOMRect,
    private _previewTemplate: DragPreviewTemplate | null,
    private _previewClass: string | string[] | null,
    private _pickupPositionOnPage: {
      x: number;
      y: number;
    },
    private _initialTransform: string | null,
    private _zIndex: number,
    private _renderer: Renderer2,
  )

Source from the content-addressed store, hash-verified

44 }
45
46 constructor(
47 private _document: Document,
48 private _rootElement: HTMLElement,
49 private _direction: Direction,
50 private _initialDomRect: DOMRect,
51 private _previewTemplate: DragPreviewTemplate | null,
52 private _previewClass: string | string[] | null,
53 private _pickupPositionOnPage: {
54 x: number;
55 y: number;
56 },
57 private _initialTransform: string | null,
58 private _zIndex: number,
59 private _renderer: Renderer2,
60 ) {}
61
62 attach(parent: HTMLElement): void {
63 this._preview = this._createPreview();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected