@pdfme/schemas 3.2.3 → 4.0.0-alpha.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/dist/cjs/__tests__/text.test.js +5 -4
- package/dist/cjs/__tests__/text.test.js.map +1 -1
- package/dist/cjs/__tests__/utils.test.js +3 -0
- package/dist/cjs/__tests__/utils.test.js.map +1 -1
- package/dist/cjs/src/barcodes/propPanel.js +11 -11
- package/dist/cjs/src/barcodes/propPanel.js.map +1 -1
- package/dist/cjs/src/barcodes/uiRender.js +1 -1
- package/dist/cjs/src/barcodes/uiRender.js.map +1 -1
- package/dist/cjs/src/graphics/image.js +5 -11
- package/dist/cjs/src/graphics/image.js.map +1 -1
- package/dist/cjs/src/graphics/svg.js +2 -3
- package/dist/cjs/src/graphics/svg.js.map +1 -1
- package/dist/cjs/src/index.js +6 -1
- package/dist/cjs/src/index.js.map +1 -1
- package/dist/cjs/src/shapes/line.js +5 -9
- package/dist/cjs/src/shapes/line.js.map +1 -1
- package/dist/cjs/src/shapes/rectAndEllipse.js +3 -2
- package/dist/cjs/src/shapes/rectAndEllipse.js.map +1 -1
- package/dist/cjs/src/tables/cell.js +125 -0
- package/dist/cjs/src/tables/cell.js.map +1 -0
- package/dist/cjs/src/tables/classes.js +467 -0
- package/dist/cjs/src/tables/classes.js.map +1 -0
- package/dist/cjs/src/tables/dynamicTemplate.js +71 -0
- package/dist/cjs/src/tables/dynamicTemplate.js.map +1 -0
- package/dist/cjs/src/tables/helper.js +171 -0
- package/dist/cjs/src/tables/helper.js.map +1 -0
- package/dist/cjs/src/tables/index.js +12 -0
- package/dist/cjs/src/tables/index.js.map +1 -0
- package/dist/cjs/src/tables/pdfRender.js +95 -0
- package/dist/cjs/src/tables/pdfRender.js.map +1 -0
- package/dist/cjs/src/tables/propPanel.js +87 -0
- package/dist/cjs/src/tables/propPanel.js.map +1 -0
- package/dist/cjs/src/tables/tableHelper.js +231 -0
- package/dist/cjs/src/tables/tableHelper.js.map +1 -0
- package/dist/cjs/src/tables/types.js +3 -0
- package/dist/cjs/src/tables/types.js.map +1 -0
- package/dist/cjs/src/tables/uiRender.js +321 -0
- package/dist/cjs/src/tables/uiRender.js.map +1 -0
- package/dist/cjs/src/text/helper.js +21 -6
- package/dist/cjs/src/text/helper.js.map +1 -1
- package/dist/cjs/src/text/index.js +0 -1
- package/dist/cjs/src/text/index.js.map +1 -1
- package/dist/cjs/src/text/pdfRender.js +5 -8
- package/dist/cjs/src/text/pdfRender.js.map +1 -1
- package/dist/cjs/src/text/propPanel.js +6 -4
- package/dist/cjs/src/text/propPanel.js.map +1 -1
- package/dist/cjs/src/text/uiRender.js +18 -17
- package/dist/cjs/src/text/uiRender.js.map +1 -1
- package/dist/cjs/src/utils.js +9 -1
- package/dist/cjs/src/utils.js.map +1 -1
- package/dist/esm/__tests__/text.test.js +5 -4
- package/dist/esm/__tests__/text.test.js.map +1 -1
- package/dist/esm/__tests__/utils.test.js +3 -0
- package/dist/esm/__tests__/utils.test.js.map +1 -1
- package/dist/esm/src/barcodes/propPanel.js +11 -11
- package/dist/esm/src/barcodes/propPanel.js.map +1 -1
- package/dist/esm/src/barcodes/uiRender.js +1 -1
- package/dist/esm/src/barcodes/uiRender.js.map +1 -1
- package/dist/esm/src/graphics/image.js +4 -10
- package/dist/esm/src/graphics/image.js.map +1 -1
- package/dist/esm/src/graphics/svg.js +2 -3
- package/dist/esm/src/graphics/svg.js.map +1 -1
- package/dist/esm/src/index.js +3 -1
- package/dist/esm/src/index.js.map +1 -1
- package/dist/esm/src/shapes/line.js +5 -9
- package/dist/esm/src/shapes/line.js.map +1 -1
- package/dist/esm/src/shapes/rectAndEllipse.js +3 -2
- package/dist/esm/src/shapes/rectAndEllipse.js.map +1 -1
- package/dist/esm/src/tables/cell.js +120 -0
- package/dist/esm/src/tables/cell.js.map +1 -0
- package/dist/esm/src/tables/classes.js +460 -0
- package/dist/esm/src/tables/classes.js.map +1 -0
- package/dist/esm/src/tables/dynamicTemplate.js +66 -0
- package/dist/esm/src/tables/dynamicTemplate.js.map +1 -0
- package/dist/esm/src/tables/helper.js +163 -0
- package/dist/esm/src/tables/helper.js.map +1 -0
- package/dist/esm/src/tables/index.js +10 -0
- package/dist/esm/src/tables/index.js.map +1 -0
- package/dist/esm/src/tables/pdfRender.js +88 -0
- package/dist/esm/src/tables/pdfRender.js.map +1 -0
- package/dist/esm/src/tables/propPanel.js +84 -0
- package/dist/esm/src/tables/propPanel.js.map +1 -0
- package/dist/esm/src/tables/tableHelper.js +226 -0
- package/dist/esm/src/tables/tableHelper.js.map +1 -0
- package/dist/esm/src/tables/types.js +2 -0
- package/dist/esm/src/tables/types.js.map +1 -0
- package/dist/esm/src/tables/uiRender.js +314 -0
- package/dist/esm/src/tables/uiRender.js.map +1 -0
- package/dist/esm/src/text/helper.js +19 -5
- package/dist/esm/src/text/helper.js.map +1 -1
- package/dist/esm/src/text/index.js +0 -1
- package/dist/esm/src/text/index.js.map +1 -1
- package/dist/esm/src/text/pdfRender.js +6 -9
- package/dist/esm/src/text/pdfRender.js.map +1 -1
- package/dist/esm/src/text/propPanel.js +6 -4
- package/dist/esm/src/text/propPanel.js.map +1 -1
- package/dist/esm/src/text/uiRender.js +19 -18
- package/dist/esm/src/text/uiRender.js.map +1 -1
- package/dist/esm/src/utils.js +6 -0
- package/dist/esm/src/utils.js.map +1 -1
- package/dist/types/src/index.d.ts +3 -1
- package/dist/types/src/shapes/rectAndEllipse.d.ts +13 -27
- package/dist/types/src/tables/cell.d.ts +4 -0
- package/dist/types/src/tables/classes.d.ts +68 -0
- package/dist/types/src/tables/dynamicTemplate.d.ts +13 -0
- package/dist/types/src/tables/helper.d.ts +252 -0
- package/dist/types/src/tables/index.d.ts +4 -0
- package/dist/types/src/tables/pdfRender.d.ts +3 -0
- package/dist/types/src/tables/propPanel.d.ts +3 -0
- package/dist/types/src/tables/tableHelper.d.ts +11 -0
- package/dist/types/src/tables/types.d.ts +91 -0
- package/dist/types/src/tables/uiRender.d.ts +3 -0
- package/dist/types/src/text/helper.d.ts +8 -1
- package/dist/types/src/utils.d.ts +2 -0
- package/package.json +1 -1
- package/src/barcodes/propPanel.ts +12 -12
- package/src/barcodes/uiRender.ts +1 -1
- package/src/graphics/image.ts +6 -11
- package/src/graphics/svg.ts +2 -3
- package/src/index.ts +5 -0
- package/src/shapes/line.ts +4 -9
- package/src/shapes/rectAndEllipse.ts +4 -4
- package/src/tables/cell.ts +157 -0
- package/src/tables/classes.ts +398 -0
- package/src/tables/dynamicTemplate.ts +81 -0
- package/src/tables/helper.ts +198 -0
- package/src/tables/index.ts +12 -0
- package/src/tables/pdfRender.ts +115 -0
- package/src/tables/propPanel.ts +90 -0
- package/src/tables/tableHelper.ts +322 -0
- package/src/tables/types.ts +88 -0
- package/src/tables/uiRender.ts +362 -0
- package/src/text/helper.ts +30 -6
- package/src/text/index.ts +0 -1
- package/src/text/pdfRender.ts +7 -11
- package/src/text/propPanel.ts +6 -4
- package/src/text/uiRender.ts +18 -18
- package/src/utils.ts +8 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../../src/text/helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAmC;AAEnC,0CASuB;AACvB,mCAAgC;AAEhC,iDASwB;AAEjB,MAAM,iCAAiC,GAAG,CAC/C,WAAwB,EACxB,QAAgB,EAChB,UAAkB,EAClB,iBAAyB,EACzB,EAAE;IACF,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,WAAW,CAAC;IAEpD,8FAA8F;IAC9F,MAAM,kBAAkB,GAAG,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,UAAU,CAAC;IAE3D,6BAA6B;IAC7B,6FAA6F;IAC7F,wDAAwD;IACxD,+FAA+F;IAC/F,qFAAqF;IACrF,MAAM,aAAa,GAAG,CAAC,kBAAkB,GAAG,QAAQ,GAAG,QAAQ,CAAC,GAA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Ae,GAAG,CAAC,GAM/B,EAAE,EAAE;IACH,MAAM,EAAE,KAAK,EAAE,gBAAgB,EAAE,QAAQ,EAAE,WAAW,EAAE,YAAY,EAAE,GAAG,GAAG,CAAC;IAC7E,MAAM,mBAAmB,GAAwB;QAC/C,IAAI,EAAE,WAAW;QACjB,QAAQ;QACR,gBAAgB;QAChB,YAAY;KACb,CAAC;IACF,IAAI,KAAK,GAAa,EAAE,CAAC;IACzB,KAAK,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAC,OAAO,CAAC,CAAC,IAAY,EAAE,EAAE;QAC5D,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,IAAA,wBAAgB,EAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC;IACpE,CAAC,CAAC,CAAC;IACH,OAAO,KAAK,CAAC;AACf,CAAC,CAAC;AAnBW,QAAA,eAAe,mBAmB1B"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/text/index.ts"],"names":[],"mappings":";;;AACA,iDAA2C;AAC3C,iDAA2C;AAC3C,+CAAyC;AAGzC,MAAM,UAAU,GAAuB,EAAE,GAAG,EAAE,wBAAS,EAAE,EAAE,EAAE,sBAAQ,EAAE,SAAS,EAAT,wBAAS,EAAE,CAAC;AAEnF,kBAAe,UAAU,CAAC;AAEb,QAAA,YAAY,GAAuB;IAC9C,GAAG,EAAE,UAAU,CAAC,GAAG;IACnB,EAAE,EAAE,UAAU,CAAC,EAAE;IACjB,SAAS,EAAE;QACT,GAAG,UAAU,CAAC,SAAS;QACvB,aAAa,EAAE;YACb,GAAG,UAAU,CAAC,SAAS,CAAC,aAAa;YACrC,IAAI,EAAE,cAAc;YACpB,QAAQ,EAAE,IAAI;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/text/index.ts"],"names":[],"mappings":";;;AACA,iDAA2C;AAC3C,iDAA2C;AAC3C,+CAAyC;AAGzC,MAAM,UAAU,GAAuB,EAAE,GAAG,EAAE,wBAAS,EAAE,EAAE,EAAE,sBAAQ,EAAE,SAAS,EAAT,wBAAS,EAAE,CAAC;AAEnF,kBAAe,UAAU,CAAC;AAEb,QAAA,YAAY,GAAuB;IAC9C,GAAG,EAAE,UAAU,CAAC,GAAG;IACnB,EAAE,EAAE,UAAU,CAAC,EAAE;IACjB,SAAS,EAAE;QACT,GAAG,UAAU,CAAC,SAAS;QACvB,aAAa,EAAE;YACb,GAAG,UAAU,CAAC,SAAS,CAAC,aAAa;YACrC,IAAI,EAAE,cAAc;YACpB,QAAQ,EAAE,IAAI;SACf;KACF;CACF,CAAC"}
|
@@ -44,7 +44,7 @@ const pdfRender = async (arg) => {
|
|
44
44
|
const { font = (0, common_1.getDefaultFont)() } = options;
|
45
45
|
const [pdfFontObj, fontKitFont, fontProp] = await Promise.all([
|
46
46
|
embedAndGetFontObj({ pdfDoc, font, _cache }),
|
47
|
-
(0, helper_js_1.getFontKitFont)(schema, font, _cache),
|
47
|
+
(0, helper_js_1.getFontKitFont)(schema.fontName, font, _cache),
|
48
48
|
getFontProp({ value, font, schema, _cache }),
|
49
49
|
]);
|
50
50
|
const { fontSize, color, alignment, verticalAlignment, lineHeight, characterSpacing } = fontProp;
|
@@ -60,15 +60,12 @@ const pdfRender = async (arg) => {
|
|
60
60
|
const firstLineTextHeight = (0, helper_js_1.heightOfFontAtSize)(fontKitFont, fontSize);
|
61
61
|
const descent = (0, helper_js_1.getFontDescentInPt)(fontKitFont, fontSize);
|
62
62
|
const halfLineHeightAdjustment = lineHeight === 0 ? 0 : ((lineHeight - 1) * fontSize) / 2;
|
63
|
-
const
|
64
|
-
|
65
|
-
fontSize,
|
63
|
+
const lines = (0, helper_js_1.splitTextToSize)({
|
64
|
+
value,
|
66
65
|
characterSpacing,
|
66
|
+
fontSize,
|
67
|
+
fontKitFont,
|
67
68
|
boxWidthInPt: width,
|
68
|
-
};
|
69
|
-
let lines = [];
|
70
|
-
value.split(/\r\n|\r|\n|\f|\u000B/g).forEach((line) => {
|
71
|
-
lines = lines.concat((0, helper_js_1.getSplittedLines)(line, fontWidthCalcValues));
|
72
69
|
});
|
73
70
|
// Text lines are rendered from the bottom upwards, we need to adjust the position down
|
74
71
|
let yOffset = 0;
|
@@ -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;IACrC,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE;QACtB,OAAO,MAAM,CAAC,GAAG,CAAC,MAAM,CAA+B,CAAC;KACzD;IAED,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,GAAG,CAClC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,CAAC,EAAE,EAAE;QAClC,IAAI,QAAQ,GAAG,CAAC,CAAC,IAAI,CAAC;QACtB,IAAI,OAAO,QAAQ,KAAK,QAAQ,IAAI,QAAQ,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE;YAC/D,QAAQ,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;SACnE;QACD,OAAO,MAAM,CAAC,SAAS,CAAC,QAAQ,EAAE;YAChC,MAAM,EAAE,OAAO,CAAC,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM;SAC1D,CAAC,CAAC;IACL,CAAC,CAAC,CACH,CAAC;IAEF,MAAM,OAAO,GAAG,MAAM,CAAC,IAAI,CA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E,YAAY;YAClB,OAAO;SACR,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAhGW,QAAA,SAAS,aAgGpB"}
|
@@ -46,12 +46,14 @@ exports.propPanel = {
|
|
46
46
|
widget: 'inputNumber',
|
47
47
|
span: 6,
|
48
48
|
disabled: enableDynamicFont,
|
49
|
+
props: { min: 0 },
|
49
50
|
},
|
50
51
|
characterSpacing: {
|
51
52
|
title: i18n('schemas.text.spacing'),
|
52
53
|
type: 'number',
|
53
54
|
widget: 'inputNumber',
|
54
55
|
span: 6,
|
56
|
+
props: { min: 0 },
|
55
57
|
},
|
56
58
|
alignment: {
|
57
59
|
title: i18n('schemas.text.textAlign'),
|
@@ -83,9 +85,7 @@ exports.propPanel = {
|
|
83
85
|
title: i18n('schemas.text.lineHeight'),
|
84
86
|
type: 'number',
|
85
87
|
widget: 'inputNumber',
|
86
|
-
props: {
|
87
|
-
step: 0.1,
|
88
|
-
},
|
88
|
+
props: { step: 0.1, min: 0 },
|
89
89
|
span: 8,
|
90
90
|
},
|
91
91
|
useDynamicFontSize: { type: 'boolean', widget: 'UseDynamicFontSize', bind: false, span: 16 },
|
@@ -99,12 +99,14 @@ exports.propPanel = {
|
|
99
99
|
type: 'number',
|
100
100
|
widget: 'inputNumber',
|
101
101
|
hidden: !enableDynamicFont,
|
102
|
+
props: { min: 0 },
|
102
103
|
},
|
103
104
|
max: {
|
104
105
|
title: i18n('schemas.text.max'),
|
105
106
|
type: 'number',
|
106
107
|
widget: 'inputNumber',
|
107
108
|
hidden: !enableDynamicFont,
|
109
|
+
props: { min: 0 },
|
108
110
|
},
|
109
111
|
fit: {
|
110
112
|
title: i18n('schemas.text.fit'),
|
@@ -146,9 +148,9 @@ exports.propPanel = {
|
|
146
148
|
return textSchema;
|
147
149
|
},
|
148
150
|
widgets: { UseDynamicFontSize },
|
149
|
-
defaultValue: 'Type Something...',
|
150
151
|
defaultSchema: {
|
151
152
|
type: 'text',
|
153
|
+
content: 'Type Something...',
|
152
154
|
position: { x: 0, y: 0 },
|
153
155
|
width: 45,
|
154
156
|
height: 10,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"propPanel.js","sourceRoot":"","sources":["../../../../src/text/propPanel.ts"],"names":[],"mappings":";;;AAAA,0CAMuB;AAEvB,iDAiBwB;AACxB,kDAAqE;AAErE,MAAM,kBAAkB,GAAG,CAAC,KAA2B,EAAE,EAAE;IACzD,MAAM,EAAE,WAAW,EAAE,aAAa,EAAE,YAAY,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAEjE,MAAM,QAAQ,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IACjD,QAAQ,CAAC,IAAI,GAAG,UAAU,CAAC;IAC3B,QAAQ,CAAC,OAAO,GAAG,OAAO,CAAE,YAAoB,EAAE,eAAe,CAAC,CAAC;IACnE,QAAQ,CAAC,QAAQ,GAAG,CAAC,CAAM,EAAE,EAAE;QAC7B,MAAM,GAAG,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO;YAC1B,CAAC,CAAC;gBACE,GAAG,EAAE,4CAA6B;gBAClC,GAAG,EAAE,4CAA6B;gBAClC,GAAG,EAAE,kCAAmB;aACzB;YACH,CAAC,CAAC,SAAS,CAAC;QACd,aAAa,CAAC,CAAC,EAAE,GAAG,EAAE,iBAAiB,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,YAAY,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IACrF,CAAC,CAAC;IACF,MAAM,KAAK,GAAG,QAAQ,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;IAC9C,KAAK,CAAC,SAAS,GAAG,IAAI,CAAC,8BAA8B,CAAC,IAAI,EAAE,CAAC;IAC7D,KAAK,CAAC,KAAK,CAAC,OAAO,GAAG,6BAA6B,CAAC;IACpD,KAAK,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAC5B,WAAW,CAAC,WAAW,CAAC,KAAK,CAAC,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E,mBAAmB;QAC5B,QAAQ,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;QACxB,KAAK,EAAE,EAAE;QACT,MAAM,EAAE,EAAE;QACV,uGAAuG;QACvG,4GAA4G;QAC5G,MAAM,EAAE,CAAC;QACT,SAAS,EAAE,gCAAiB;QAC5B,iBAAiB,EAAE,yCAA0B;QAC7C,QAAQ,EAAE,gCAAiB;QAC3B,UAAU,EAAE,kCAAmB;QAC/B,gBAAgB,EAAE,wCAAyB;QAC3C,eAAe,EAAE,SAAS;QAC1B,SAAS,EAAE,iCAAkB;QAC7B,QAAQ,EAAE,SAAS;QACnB,eAAe,EAAE,EAAE;QACnB,OAAO,EAAE,8BAAe;KACzB;CACF,CAAC"}
|
@@ -16,15 +16,13 @@ const mapVerticalAlignToFlex = (verticalAlignmentValue) => {
|
|
16
16
|
}
|
17
17
|
return 'flex-start';
|
18
18
|
};
|
19
|
-
const getBackgroundColor = (value, schema
|
20
|
-
if (!value)
|
19
|
+
const getBackgroundColor = (value, schema) => {
|
20
|
+
if (!value || !schema.backgroundColor)
|
21
21
|
return 'transparent';
|
22
|
-
|
23
|
-
return schema.backgroundColor;
|
24
|
-
return defaultBackgroundColor;
|
22
|
+
return schema.backgroundColor;
|
25
23
|
};
|
26
24
|
const uiRender = async (arg) => {
|
27
|
-
const { value, schema, rootElement, mode, onChange, stopEditing, tabIndex, placeholder, options,
|
25
|
+
const { value, schema, rootElement, mode, onChange, stopEditing, tabIndex, placeholder, options, _cache, } = arg;
|
28
26
|
const font = options?.font || (0, common_1.getDefaultFont)();
|
29
27
|
let dynamicFontSize = undefined;
|
30
28
|
const getCdfArg = (v) => ({
|
@@ -37,7 +35,7 @@ const uiRender = async (arg) => {
|
|
37
35
|
if (schema.dynamicFontSize && value) {
|
38
36
|
dynamicFontSize = await (0, helper_js_1.calculateDynamicFontSize)(getCdfArg(value));
|
39
37
|
}
|
40
|
-
const fontKitFont = await (0, helper_js_1.getFontKitFont)(schema, font, _cache);
|
38
|
+
const fontKitFont = await (0, helper_js_1.getFontKitFont)(schema.fontName, font, _cache);
|
41
39
|
// Depending on vertical alignment, we need to move the top or bottom of the font to keep
|
42
40
|
// it within it's defined box and align it with the generated pdf.
|
43
41
|
const { topAdj, bottomAdj } = (0, helper_js_1.getBrowserVerticalFontAdjustments)(fontKitFont, dynamicFontSize ?? schema.fontSize ?? constants_js_1.DEFAULT_FONT_SIZE, schema.lineHeight ?? constants_js_1.DEFAULT_LINE_HEIGHT, schema.verticalAlignment ?? constants_js_1.DEFAULT_VERTICAL_ALIGNMENT);
|
@@ -47,13 +45,14 @@ const uiRender = async (arg) => {
|
|
47
45
|
const containerStyle = {
|
48
46
|
padding: 0,
|
49
47
|
resize: 'none',
|
50
|
-
backgroundColor: getBackgroundColor(value, schema
|
48
|
+
backgroundColor: getBackgroundColor(value, schema),
|
51
49
|
border: 'none',
|
52
50
|
display: 'flex',
|
53
51
|
flexDirection: 'column',
|
54
52
|
justifyContent: mapVerticalAlignToFlex(schema.verticalAlignment),
|
55
53
|
width: '100%',
|
56
54
|
height: '100%',
|
55
|
+
cursor: (0, utils_js_1.isEditable)(mode, schema) ? 'text' : 'default',
|
57
56
|
};
|
58
57
|
Object.assign(container.style, containerStyle);
|
59
58
|
rootElement.innerHTML = '';
|
@@ -83,7 +82,7 @@ const uiRender = async (arg) => {
|
|
83
82
|
textBlock.tabIndex = tabIndex || 0;
|
84
83
|
textBlock.innerText = value;
|
85
84
|
textBlock.addEventListener('blur', (e) => {
|
86
|
-
onChange && onChange(e.target.innerText);
|
85
|
+
onChange && onChange({ key: 'content', value: e.target.innerText });
|
87
86
|
stopEditing && stopEditing();
|
88
87
|
});
|
89
88
|
if (schema.dynamicFontSize) {
|
@@ -117,14 +116,16 @@ const uiRender = async (arg) => {
|
|
117
116
|
}
|
118
117
|
container.appendChild(textBlock);
|
119
118
|
if (mode === 'designer') {
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
119
|
+
setTimeout(() => {
|
120
|
+
textBlock.focus();
|
121
|
+
// Set the focus to the end of the editable element when you focus, as we would for a textarea
|
122
|
+
const selection = window.getSelection();
|
123
|
+
const range = document.createRange();
|
124
|
+
range.selectNodeContents(textBlock);
|
125
|
+
range.collapse(false); // Collapse range to the end
|
126
|
+
selection?.removeAllRanges();
|
127
|
+
selection?.addRange(range);
|
128
|
+
});
|
128
129
|
}
|
129
130
|
}
|
130
131
|
else {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"uiRender.js","sourceRoot":"","sources":["../../../../src/text/uiRender.ts"],"names":[],"mappings":";;;AACA,0CAAsE;AAEtE,iDAWwB;AACxB,2CAIqB;AACrB,
|
1
|
+
{"version":3,"file":"uiRender.js","sourceRoot":"","sources":["../../../../src/text/uiRender.ts"],"names":[],"mappings":";;;AACA,0CAAsE;AAEtE,iDAWwB;AACxB,2CAIqB;AACrB,0CAAyC;AAEzC,MAAM,sBAAsB,GAAG,CAAC,sBAA0C,EAAE,EAAE;IAC5E,QAAQ,sBAAsB,EAAE;QAC9B,KAAK,iCAAkB;YACrB,OAAO,YAAY,CAAC;QACtB,KAAK,oCAAqB;YACxB,OAAO,QAAQ,CAAC;QAClB,KAAK,oCAAqB;YACxB,OAAO,UAAU,CAAC;KACrB;IACD,OAAO,YAAY,CAAC;AACtB,CAAC,CAAC;AAEF,MAAM,kBAAkB,GAAG,CAAC,KAAa,EAAE,MAAc,EAAE,EAAE;IAC3D,IAAI,CAAC,KAAK,IAAI,CAAC,MAAM,CAAC,eAAe;QAAE,OAAO,aAAa,CAAC;IAC5D,OAAO,MAAM,CAAC,eAAyB,CAAC;AAC1C,CAAC,CAAC;AAEK,MAAM,QAAQ,GAAG,KAAK,EAAE,GAA8B,EAAE,EAAE;IAC/D,MAAM,EACJ,KAAK,EACL,MAAM,EACN,WAAW,EACX,IAAI,EACJ,QAAQ,EACR,WAAW,EACX,QAAQ,EACR,W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M;QACL,SAAS,CAAC,SAAS,GAAG,KAAK;aACxB,KAAK,CAAC,EAAE,CAAC;aACT,GAAG,CACF,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CACvB,+BACE,MAAM,CAAC,KAAK,CAAC,CAAC,MAAM,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SACvC,MAAM,CAAC,SAAS,CACnB;aACA,IAAI,CAAC,EAAE,CAAC,CAAC;QAEZ,SAAS,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC;KAClC;AACH,CAAC,CAAC;AAxJW,QAAA,QAAQ,YAwJnB"}
|
package/dist/cjs/src/utils.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.createErrorElm = exports.readFile = exports.hex2RgbColor = exports.isEditable = exports.addAlphaToHex = exports.rotatePoint = exports.convertForPdfLayoutProps = void 0;
|
3
|
+
exports.cloneDeep = exports.px2mm = exports.createErrorElm = exports.readFile = exports.hex2RgbColor = exports.isEditable = exports.addAlphaToHex = exports.rotatePoint = exports.convertForPdfLayoutProps = void 0;
|
4
4
|
const pdf_lib_1 = require("@pdfme/pdf-lib");
|
5
5
|
const common_1 = require("@pdfme/common");
|
6
6
|
const convertForPdfLayoutProps = ({ schema, pageHeight, applyRotateTranslate = true, }) => {
|
@@ -131,4 +131,12 @@ const createErrorElm = () => {
|
|
131
131
|
return container;
|
132
132
|
};
|
133
133
|
exports.createErrorElm = createErrorElm;
|
134
|
+
const px2mm = (px) => {
|
135
|
+
// http://www.endmemo.com/sconvert/millimeterpixel.php
|
136
|
+
const ratio = 0.26458333333333;
|
137
|
+
return parseFloat(String(px)) * ratio;
|
138
|
+
};
|
139
|
+
exports.px2mm = px2mm;
|
140
|
+
const cloneDeep = (value) => JSON.parse(JSON.stringify(value));
|
141
|
+
exports.cloneDeep = cloneDeep;
|
134
142
|
//# sourceMappingUR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E,CAAC,CAAC,GAAG,KAAK,CAAC;AACxC,CAAC,CAAC;AAJW,QAAA,KAAK,SAIhB;AAEK,MAAM,SAAS,GAAG,CAAI,KAAQ,EAAK,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AAAlE,QAAA,SAAS,aAAyD"}
|
@@ -11,6 +11,7 @@ const getSampleFont = () => ({
|
|
11
11
|
const getTextSchema = () => {
|
12
12
|
const textSchema = {
|
13
13
|
type: 'text',
|
14
|
+
content: 'test',
|
14
15
|
position: { x: 0, y: 0 },
|
15
16
|
width: 50,
|
16
17
|
height: 20,
|
@@ -83,7 +84,7 @@ describe('getSplittedLines test with real font width calculations', () => {
|
|
83
84
|
};
|
84
85
|
it('should not split a line when the text is shorter than the width', async () => {
|
85
86
|
const _cache = new Map();
|
86
|
-
await getFontKitFont(getTextSchema(), font, _cache).then((fontKitFont) => {
|
87
|
+
await getFontKitFont(getTextSchema().fontName, font, _cache).then((fontKitFont) => {
|
87
88
|
const fontWidthCalcs = Object.assign({}, baseCalcValues, { font: fontKitFont });
|
88
89
|
const result = getSplittedLines('short', fontWidthCalcs);
|
89
90
|
expect(result).toEqual(['short']);
|
@@ -91,7 +92,7 @@ describe('getSplittedLines test with real font width calculations', () => {
|
|
91
92
|
});
|
92
93
|
it('should split a line when the text is longer than the width', async () => {
|
93
94
|
const _cache = new Map();
|
94
|
-
await getFontKitFont(getTextSchema(), font, _cache).then((fontKitFont) => {
|
95
|
+
await getFontKitFont(getTextSchema().fontName, font, _cache).then((fontKitFont) => {
|
95
96
|
const fontWidthCalcs = Object.assign({}, baseCalcValues, { font: fontKitFont });
|
96
97
|
const result = getSplittedLines('this will wrap', fontWidthCalcs);
|
97
98
|
expect(result).toEqual(['this', 'will', 'wrap']);
|
@@ -99,7 +100,7 @@ describe('getSplittedLines test with real font width calculations', () => {
|
|
99
100
|
});
|
100
101
|
it('should split a line in the middle when unspaced text will not fit on a line', async () => {
|
101
102
|
const _cache = new Map();
|
102
|
-
await getFontKitFont(getTextSchema(), font, _cache).then((fontKitFont) => {
|
103
|
+
await getFontKitFont(getTextSchema().fontName, font, _cache).then((fontKitFont) => {
|
103
104
|
const fontWidthCalcs = Object.assign({}, baseCalcValues, { font: fontKitFont });
|
104
105
|
const result = getSplittedLines('thiswillbecut', fontWidthCalcs);
|
105
106
|
expect(result).toEqual(['thiswi', 'llbecu', 't']);
|
@@ -107,7 +108,7 @@ describe('getSplittedLines test with real font width calculations', () => {
|
|
107
108
|
});
|
108
109
|
it('should not split text when it is impossible due to size constraints', async () => {
|
109
110
|
const _cache = new Map();
|
110
|
-
await getFontKitFont(getTextSchema(), font, _cache).then((fontKitFont) => {
|
111
|
+
await getFontKitFont(getTextSchema().fontName, font, _cache).then((fontKitFont) => {
|
111
112
|
const fontWidthCalcs = Object.assign({}, baseCalcValues, { font: fontKitFont });
|
112
113
|
fontWidthCalcs.boxWidthInPt = 2;
|
113
114
|
const result = getSplittedLines('thiswillnotbecut', fontWidthCalcs);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"text.test.js","sourceRoot":"","sources":["../../../__tests__/text.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,IAAI,CAAC;AAClC,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAE7B,OAAO,EAAQ,cAAc,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EACL,wBAAwB,EACxB,iCAAiC,EACjC,kBAAkB,EAClB,cAAc,EACd,gBAAgB,GACjB,MAAM,oBAAoB,CAAC;AAG5B,MAAM,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,kCAAkC,CAAC,CAAC,CAAC;AACxF,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,mCAAmC,CAAC,CAAC,CAAC;AAE1F,MAAM,aAAa,GAAG,GAAS,EAAE,C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,CAAC;SACb,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,uEAAuE,EAAE,GAAG,EAAE;QACjF,MAAM,CAAC,iCAAiC,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;YACzE,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,QAAQ;SACpB,CAAC,CAAC;QACH,MAAM,CAAC,iCAAiC,CAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;YAC1E,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,kBAAkB;SAC9B,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,iFAAiF,EAAE,GAAG,EAAE;QAC3F,MAAM,CAAC,iCAAiC,CAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;YAC1E,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,CAAC;SACb,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,iFAAiF,EAAE,GAAG,EAAE;QAC3F,MAAM,QAAQ,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,EAAiB,CAAC;QAChF,MAAM,CAAC,iCAAiC,CAAC,QAAQ,EAAE,EAAE,EAAE,GAAG,EAAE,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC;YAC7E,MAAM,EAAE,CAAC;YACT,SAAS,EAAE,CAAC;SACb,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
@@ -64,6 +64,7 @@ describe('convertForPdfLayoutProps', () => {
|
|
64
64
|
it('should return correct value without rotation', () => {
|
65
65
|
const schema = {
|
66
66
|
type: 'image',
|
67
|
+
content: '',
|
67
68
|
width: 100,
|
68
69
|
height: 100,
|
69
70
|
position: { x: 100, y: 100 },
|
@@ -82,6 +83,7 @@ describe('convertForPdfLayoutProps', () => {
|
|
82
83
|
it('should return correct value with rotation', () => {
|
83
84
|
const schema = {
|
84
85
|
type: 'image',
|
86
|
+
content: '',
|
85
87
|
width: 50,
|
86
88
|
height: 120,
|
87
89
|
position: { x: 100, y: 100 },
|
@@ -100,6 +102,7 @@ describe('convertForPdfLayoutProps', () => {
|
|
100
102
|
it('should not rotate if asked not to', () => {
|
101
103
|
const schema = {
|
102
104
|
type: 'text',
|
105
|
+
content: '',
|
103
106
|
width: 50,
|
104
107
|
height: 120,
|
105
108
|
position: { x: 100, y: 100 },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"utils.test.js","sourceRoot":"","sources":["../../../__tests__/utils.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,EAAE,wBAAwB,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAEnF,QAAQ,CAAC,cAAc,EAAE,GAAG,EAAE;IAC5B,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACnC,MAAM,GAAG,GAAG,SAAS,CAAC;QACtB,MAAM,QAAQ,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;QACnC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;IAEH,EAAE,CAAC,4CAA4C,EAAE,GAAG,EAAE;QACpD,MAAM,GAAG,GAAG,MAAM,CAAC;QACnB,MAAM,QAAQ,GAAG,YAAY,CAAC,GAAG,CAAC,CAAC;QACnC,MAAM,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,CAAC,E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