Skip to content

NgDiagramPaletteItemPreviewComponent

since v0.8.0

The NgDiagramPaletteItemPreviewComponent defines the preview of a palette item shown while it is dragged onto the canvas.

<ng-diagram-palette-item-preview>
<!-- Palette item content here -->
</ng-diagram-palette-item-preview>

readonly preview: Signal<undefined | ElementRef<HTMLElement>>

The element holding the preview content. It is not rendered in the page flow, so read the preview’s natural size or content from it — its position is meaningless.

get scaleTransform(): string

string