@pdfme/schemas 3.2.1 → 3.2.2-dev.1

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.
@@ -68,7 +68,9 @@ const uiRender = async (arg) => {
68
68
  });
69
69
  container.appendChild(input);
70
70
  input.setSelectionRange(value.length, value.length);
71
- input.focus();
71
+ if (mode === 'designer') {
72
+ input.focus();
73
+ }
72
74
  }
73
75
  if (!value)
74
76
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"uiRender.js","sourceRoot":"","sources":["../../../../src/barcodes/uiRender.ts"],"names":[],"mappings":";;;AAGA,2CAAkE;AAClE,0CAAwE;AAExE,MAAM,QAAQ,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAEnD,MAAM,aAAa,GAAG,CAAC,IAAU,EAAmB,EAAE,CACpD,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;IAC9B,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;IAChC,MAAM,CAAC,SAAS,GAAG,GAAG,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,MAAgB,CAAC,CAAC;IAC1D,MAAM,CAAC,OAAO,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;AAC7B,CAAC,CAAC,CAAC;AAEL,MAAM,kBAAkB,GAAG,KAAK,EAAE,MAAqB,EAAE,KAAa,EAAE,EAAE;IACxE,MAAM,QAAQ,GAAG,MAAM,IAAA,yBAAa,EAAC;QACnC,GAAG,MAAM;QACT,KAAK,EAAE,KAAK;KACb,CAAC,CAAC;IACH,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,CAAC,IAAI,UAAU,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;IAChF,MAAM,cAAc,GAAG,MAAM,aAAa,CAAC,WAAW,CAAC,C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C;SACf;KACF;IAED,IAAI,CAAC,KAAK;QAAE,OAAO;IACnB,IAAI;QACF,IAAI,CAAC,IAAA,gCAAoB,EAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC;YAC3C,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,qBAAqB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAC1D,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;KAC/B;IAAC,OAAO,GAAG,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,eAAe,GAAG,EAAE,CAAC,CAAC;QACpC,SAAS,CAAC,WAAW,CAAC,IAAA,yBAAc,GAAE,CAAC,CAAC;KACzC;AACH,CAAC,CAAC;AA1DW,QAAA,QAAQ,YA0DnB"}
@@ -67,7 +67,7 @@ const pdfRender = async (arg) => {
67
67
  boxWidthInPt: width,
68
68
  };
69
69
  let lines = [];
70
- value.split(/\r\n|\r|\n/g).forEach((line) => {
70
+ value.split(/\r\n|\r|\n|\f|\u000B/g).forEach((line) => {
71
71
  lines = lines.concat((0, helper_js_1.getSplittedLines)(line, fontWidthCalcValues));
72
72
  });
73
73
  // Text lines are rendered from the bottom upwards, we need to adjust the position down
@@ -111,9 +111,7 @@ const pdfRender = async (arg) => {
111
111
  size: fontSize,
112
112
  color,
113
113
  lineHeight: lineHeight * fontSize,
114
- maxWidth: width,
115
114
  font: pdfFontValue,
116
- wordBreaks: [''],
117
115
  opacity,
118
116
  });
119
117
  });
@@ -1 +1 @@
1
- {"version":3,"file":"pdfRender.js","sourceRoot":"","sources":["../../../../src/text/pdfRender.ts"],"names":[],"mappings":";;;AAEA,0CAAiG;AACjG,iDAUwB;AACxB,2CAOqB;AACrB,0CAAkF;AAElF,MAAM,kBAAkB,GAAG,KAAK,EAAE,GAIjC,EAAE,EAAE;IACH,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,GAAG,CAAC;I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AiB,EAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,gBAAgB,CAAC,CAAC;QACnF,MAAM,UAAU,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,CAAC;QAEpD,IAAI,KAAK,GAAG,CAAC,CAAC;QACd,IAAI,SAAS,KAAK,QAAQ,EAAE;YAC1B,KAAK,IAAI,CAAC,KAAK,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC;SAClC;aAAM,IAAI,SAAS,KAAK,OAAO,EAAE;YAChC,KAAK,IAAI,KAAK,GAAG,SAAS,CAAC;SAC5B;QAED,IAAI,KAAK,GAAG,UAAU,GAAG,IAAA,cAAK,EAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,UAAU,CAAC;QAEzE,IAAI,MAAM,CAAC,KAAK,KAAK,CAAC,EAAE;YACtB,iGAAiG;YACjG,qGAAqG;YACrG,MAAM,YAAY,GAAG,IAAA,sBAAW,EAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC;YACnF,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC;YACvB,KAAK,GAAG,YAAY,CAAC,CAAC,CAAC;SACxB;QAED,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE;YAClB,CAAC,EAAE,KAAK;YACR,CAAC,EAAE,KAAK;YACR,MAAM;YACN,IAAI,EAAE,QAAQ;YACd,KAAK;YACL,UAAU,EAAE,UAAU,GAAG,QAAQ;YACjC,IAAI,EAAE,YAAY;YAClB,OAAO;SACR,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AApGW,QAAA,SAAS,aAoGpB"}
@@ -65,7 +65,9 @@ export const uiRender = async (arg) => {
65
65
  });
66
66
  container.appendChild(input);
67
67
  input.setSelectionRange(value.length, value.length);
68
- input.focus();
68
+ if (mode === 'designer') {
69
+ input.focus();
70
+ }
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,KAAK,CAAC;YAC3C,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;QACrE,MAAM,MAAM,GAAG,MAAM,qBAAqB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;QAC1D,SAAS,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;KAC/B;IAAC,OAAO,GAAG,EAAE;QACZ,OAAO,CAAC,KAAK,CAAC,eAAe,GAAG,EAAE,CAAC,CAAC;QACpC,SAAS,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC,CAAC;KACzC;AACH,CAAC,CAAC"}
@@ -64,7 +64,7 @@ export const pdfRender = async (arg) => {
64
64
  boxWidthInPt: width,
65
65
  };
66
66
  let lines = [];
67
- value.split(/\r\n|\r|\n/g).forEach((line) => {
67
+ value.split(/\r\n|\r|\n|\f|\u000B/g).forEach((line) => {
68
68
  lines = lines.concat(getSplittedLines(line, fontWidthCalcValues));
69
69
  });
70
70
  // Text lines are rendered from the bottom upwards, we need to adjust the position down
@@ -108,9 +108,7 @@ export const pdfRender = async (arg) => {
108
108
  size: fontSize,
109
109
  color,
110
110
  lineHeight: lineHeight * fontSize,
111
- maxWidth: width,
112
111
  font: pdfFontValue,
113
- wordBreaks: [''],
114
112
  opacity,
115
113
  });
116
114
  });
@@ -1 +1 @@
1
- {"version":3,"file":"pdfRender.js","sourceRoot":"","sources":["../../../../src/text/pdfRender.ts"],"names":[],"mappings":"AAEA,OAAO,EAAwB,cAAc,EAAE,mBAAmB,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACjG,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,0BAA0B,EAC1B,mBAAmB,EACnB,yBAAyB,EACzB,kBAAkB,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,aAAa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IAAI,EAAE;YAClB,CAAC,EAAE,KAAK;YACR,CAAC,EAAE,KAAK;YACR,MAAM;YACN,IAAI,EAAE,QAAQ;YACd,KAAK;YACL,UAAU,EAAE,UAAU,GAAG,QAAQ;YACjC,IAAI,EAAE,YAAY;YAClB,OAAO;SACR,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdfme/schemas",
3
- "version": "3.2.1",
3
+ "version": "3.2.2-dev.1",
4
4
  "sideEffects": false,
5
5
  "author": "hand-dot",
6
6
  "license": "MIT",
@@ -76,7 +76,9 @@ export const uiRender = async (arg: UIRenderProps<BarcodeSchema>) => {
76
76
  });
77
77
  container.appendChild(input);
78
78
  input.setSelectionRange(value.length, value.length);
79
- input.focus();
79
+ if (mode === 'designer') {
80
+ input.focus();
81
+ }
80
82
  }
81
83
 
82
84
  if (!value) return;
@@ -126,7 +126,7 @@ export const pdfRender = async (arg: PDFRenderProps<TextSchema>) => {
126
126
  };
127
127
 
128
128
  let lines: string[] = [];
129
- value.split(/\r\n|\r|\n/g).forEach((line: string) => {
129
+ value.split(/\r\n|\r|\n|\f|\u000B/g).forEach((line: string) => {
130
130
  lines = lines.concat(getSplittedLines(line, fontWidthCalcValues));
131
131
  });
132
132
 
@@ -175,9 +175,7 @@ export const pdfRender = async (arg: PDFRenderProps<TextSchema>) => {
175
175
  size: fontSize,
176
176
  color,
177
177
  lineHeight: lineHeight * fontSize,
178
- maxWidth: width,
179
178
  font: pdfFontValue,
180
- wordBreaks: [''],
181
179
  opacity,
182
180
  });
183
181
  });