ngx-svg-graphics
Version:
Small svg library to link components or svg elements with arrows and allow to drag components.
14 lines (13 loc) • 629 B
TypeScript
import { BehaviorSubject, Observable } from "rxjs";
import { BoundingBox } from "../models/bounding-box";
import * as i0 from "@angular/core";
export declare class SVGAccessService {
positionChange: BehaviorSubject<string>;
constructor();
notifyPositionChange(id: string): void;
listenToPositionChange(): Observable<string>;
getElemById(id: string): SVGGraphicsElement | undefined;
getRelativePosition(id: string, node: SVGGraphicsElement): BoundingBox | undefined;
static ɵfac: i0.ɵɵFactoryDeclaration<SVGAccessService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<SVGAccessService>;
}