Skip to content
@ng-doc/ui-kit / Class

NgDocMagnifierComponent

Lets the user pan its content by dragging and zoom it with the mouse wheel. Use ng-doc-magnifier-controller for buttons that do the same.

Decorators
@Component
Selectors
ng-doc-magnifier
Implements
OnInit
DeclarationTypeScript
@Component({ … })
export class NgDocMagnifierComponent implements OnInit { … }

Members

Properties

8
destroyRef: DestroyRef
protectedreadonly
—
document: Document
protectedreadonly
—
drag: WritableSignal<boolean>
protectedreadonly
—
element: HTMLElement
protectedreadonly
—
scale: WritableSignal<number>
protectedreadonly
—
transform: Signal<string>
protectedreadonly
—
x: WritableSignal<number>
protectedreadonly
—
y: WritableSignal<number>
protectedreadonly
—

Methods

5
(…): void

Moves the content horizontally.

(…): void

Moves the content vertically.

(): void
implements OnInit
—
(): void

Resets the position and the scale.

(…): void

Zooms in (positive diff) or out (negative diff); the scale never goes below 1.

Symbol
Kind
Class
Decorators
@Component
Selectors
ng-doc-magnifier
Implements
OnInit
Scope
@ng-doc/ui-kit
Edit this page