@nmmty/lazycanvas
Version:
A simple way to interact with @napi-rs/canvas in an advanced way!
23 lines (22 loc) • 737 B
TypeScript
import { AnyLinkType, ILink, ScaleType } from "../../types";
export declare class Link {
source: string;
type: AnyLinkType;
additionalSpacing: ScaleType;
constructor(props?: ILink);
/**
* @description Sets the source of the link.
* @param source {string} - The `id` of the layer to link.
*/
setSource(source: string): this;
/**
* @description Sets the type of the link.
* @param type {AnyLinkType} - The `type` of the link.
*/
setType(type: AnyLinkType): this;
/**
* @description Sets the additional spacing of the link.
* @param additionalSpacing {ScaleType} - The `additionalSpacing` of the link.
*/
setSpacing(additionalSpacing: ScaleType): this;
}