@dvrd/dvr-controls 1.1.28 → 1.1.29

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dvrd/dvr-controls",
3
- "version": "1.1.28",
3
+ "version": "1.1.29",
4
4
  "description": "Custom web controls",
5
5
  "main": "index.ts",
6
6
  "files": [
@@ -224,7 +224,7 @@ export default class PDFTemplateCreator extends PureComponent<Props, State> {
224
224
  ref: (ref: any) => {
225
225
  this.refObjects[id] = ref;
226
226
  },
227
- defaultSettings: {...config.dimensions, ...config.options},
227
+ defaultSettings: {...config.dimensions, ...config.options, sub_type: config.sub_type},
228
228
  key,
229
229
  }
230
230
  let element = <div/>;
@@ -198,6 +198,7 @@ export default class PdfText extends PdfElement<Props, State> {
198
198
  type: PDFElementType.TEXT,
199
199
  options: {fontSize: fontSize, bold, italic, text, underline, alignment, font, color, persistent, display},
200
200
  linkedID: linkedID,
201
+ sub_type: settings.sub_type,
201
202
  };
202
203
  }
203
204
 
@@ -191,6 +191,7 @@ export type DefaultPDFElementParams<T extends PDFElementType, O extends IndexedO
191
191
  persistent?: PDFElementPersist;
192
192
  key: string;
193
193
  linkedID?: string;
194
+ sub_type?: PDFElementSubType | null;
194
195
  }>
195
196
  export type PDFImageParams = {
196
197
  img: File | string | null;
@@ -210,6 +211,7 @@ export type PDFTextParams = {
210
211
  color: string;
211
212
  persistent: PDFElementPersist;
212
213
  display?: PDFDisplay
214
+ sub_type?: PDFElementSubType | null;
213
215
  };
214
216
  export type PDFInvoiceTableParams = {
215
217
  fontSize: number;