@signosoft/signpad-js 0.2.1 → 0.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -95,7 +95,7 @@ declare class CanvasManager {
95
95
  * Handles coordinate normalization and pressure-based thickness.
96
96
  * @param penData - Data containing coordinates (0-1), pressure, and contact status.
97
97
  */
98
- drawSegment(penData: IPenData): void;
98
+ drawSegment(penData: IPenData_2): void;
99
99
  /**
100
100
  * Wipes the canvas clean and resets the drawing state.
101
101
  */
@@ -193,7 +193,6 @@ declare class ConnectionManager {
193
193
  private penDataToDispatch;
194
194
  /** @private Minimum delay between pen events (approx 60fps) */
195
195
  private throttleDelayMs;
196
- private fetchShimInstalled;
197
196
  /**
198
197
  * @param component - The host SignosoftSignpad instance.
199
198
  */
@@ -269,10 +268,6 @@ declare class ConnectionManager {
269
268
  * @returns Resolves when the driver is initialized.
270
269
  */
271
270
  private initializeTabletWithLicense;
272
- /**
273
- * Installs a fetch shim to resolve lib assets when bundled.
274
- */
275
- private installLibAsset;
276
271
  isFallback(deviceInfo: any | null, isDeviceConnected: boolean, includeDisconnected: boolean): boolean;
277
272
  /**
278
273
  * Normalizes device info to always include deviceName.
@@ -321,8 +316,8 @@ export declare interface IEventCallbacks {
321
316
  deviceInfo: any;
322
317
  }>) => void;
323
318
  onDisconnect?: (event: CustomEvent<void>) => void;
324
- onPen?: (event: CustomEvent<PenData>) => void;
325
- onOk?: (event: CustomEvent<void>) => void;
319
+ onPen?: (event: CustomEvent<IPenData_2>) => void;
320
+ onOk?: (event: CustomEvent<any>) => void;
326
321
  onClear?: (event: CustomEvent<void>) => void;
327
322
  onCancel?: (event: CustomEvent<void>) => void;
328
323
  onError?: (event: CustomEvent<Error>) => void;
@@ -334,7 +329,7 @@ export declare interface ILanguageOptions {
334
329
  translations?: ITranslationSet | Record<string, ITranslationSet>;
335
330
  }
336
331
 
337
- export declare type IPenData = {
332
+ declare type IPenData_2 = {
338
333
  relativeX: number;
339
334
  relativeY: number;
340
335
  absoluteX?: number;
@@ -344,9 +339,10 @@ export declare type IPenData = {
344
339
  inContact: boolean;
345
340
  [key: string]: any;
346
341
  };
342
+ export { IPenData_2 as IPenData }
347
343
 
348
344
  export declare interface IPenDataCallback {
349
- (penData: PenData): void;
345
+ (penData: IPenData_2): void;
350
346
  }
351
347
 
352
348
  export declare interface ITranslationSet {
@@ -701,7 +697,7 @@ export declare interface SignpadConfig {
701
697
  languageOptions?: ILanguageOptions;
702
698
  autoconnectOptions?: IAutoconnectOptions;
703
699
  uiVisibilityOptions?: IUIVisibilityOptions;
704
- canvasAndDrawigOptions?: IDrawingOptions;
700
+ canvasAndDrawingOptions?: IDrawingOptions;
705
701
  actionHandlers?: IActionHandlers;
706
702
  eventCallbacks?: IEventCallbacks;
707
703
  customCssVariables?: Record<string, string>;