@zag-js/signature-pad
Version:
Core logic for the signature-pad widget implemented as a state machine
16 lines (13 loc) • 751 B
TypeScript
import { DataUrlOptions } from './signature-pad.types.js';
import { Scope } from '@zag-js/core';
import '@zag-js/types';
import 'perfect-freehand';
declare const getRootId: (ctx: Scope) => any;
declare const getControlId: (ctx: Scope) => any;
declare const getLabelId: (ctx: Scope) => any;
declare const getHiddenInputId: (ctx: Scope) => any;
declare const getControlEl: (ctx: Scope) => HTMLElement | null;
declare const getSegmentEl: (ctx: Scope) => SVGSVGElement | null;
declare const getHiddenInputEl: (ctx: Scope) => HTMLElement | null;
declare const getDataUrl: (ctx: Scope, options: DataUrlOptions) => Promise<string>;
export { getControlEl, getControlId, getDataUrl, getHiddenInputEl, getHiddenInputId, getLabelId, getRootId, getSegmentEl };