@shznet/pdf-sign-control 1.0.0 → 1.1.0

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/README.md CHANGED
@@ -108,6 +108,9 @@ Updates a field's properties.
108
108
  #### `getFields(): SignatureField[]`
109
109
  Returns the current list of fields.
110
110
 
111
+ #### `clearFields(): void`
112
+ Remove all fields from the document.
113
+
111
114
  #### `setFields(fields: SignatureField[]): void`
112
115
  Replace all fields with a new set.
113
116
 
@@ -121,6 +124,7 @@ Subscribe to events:
121
124
  - `field:remove`: Fired when a field is removed - `(data: { fieldId: string }) => void`
122
125
  - `field:update`: Fired when a field is updated - `(data: { fieldId: string, updates: Partial<SignatureField> }) => void`
123
126
  - `fields:change`: Fired when any field changes - `(fields: SignatureField[]) => void`
127
+ - `field:selection-change`: Fired when selection changes - `(data: { field: SignatureField | null }) => void`
124
128
 
125
129
  ### Printing
126
130