@ottoai/documents 1.2.5 → 1.3.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/create/pdf/united-states/w9-form/index.js +5 -4
- package/dist/create/pdf/united-states/w9-form/index.js.map +1 -1
- package/dist/create/pdf/util/pdfme/generator/constants.d.ts +1 -0
- package/dist/create/pdf/util/pdfme/generator/constants.js +5 -0
- package/dist/create/pdf/util/pdfme/generator/constants.js.map +1 -0
- package/dist/create/pdf/util/pdfme/generator/generate.d.ts +3 -0
- package/dist/create/pdf/util/pdfme/generator/generate.js +84 -0
- package/dist/create/pdf/util/pdfme/generator/generate.js.map +1 -0
- package/dist/create/pdf/util/pdfme/generator/helper.d.ts +27 -0
- package/dist/create/pdf/util/pdfme/generator/helper.js +132 -0
- package/dist/create/pdf/util/pdfme/generator/helper.js.map +1 -0
- package/dist/create/pdf/util/pdfme/generator/index.d.ts +2 -0
- package/dist/create/pdf/util/pdfme/generator/index.js +9 -0
- package/dist/create/pdf/util/pdfme/generator/index.js.map +1 -0
- package/dist/create/pdf/util/pdfme/generator/types.d.ts +20 -0
- package/dist/create/pdf/util/pdfme/generator/types.js +3 -0
- package/dist/create/pdf/util/pdfme/generator/types.js.map +1 -0
- package/dist/create/pdf/util/pdfme/schemas/constants.d.ts +2 -0
- package/dist/create/pdf/util/pdfme/schemas/constants.js +6 -0
- package/dist/create/pdf/util/pdfme/schemas/constants.js.map +1 -0
- package/dist/create/pdf/util/pdfme/schemas/graphics/cacheKey.d.ts +2 -0
- package/dist/create/pdf/util/pdfme/schemas/graphics/cacheKey.js +6 -0
- package/dist/create/pdf/util/pdfme/schemas/graphics/cacheKey.js.map +1 -0
- package/dist/create/pdf/util/pdfme/schemas/graphics/image.d.ts +6 -0
- package/dist/create/pdf/util/pdfme/schemas/graphics/image.js +168 -0
- package/dist/create/pdf/util/pdfme/schemas/graphics/image.js.map +1 -0
- package/dist/create/pdf/util/pdfme/schemas/graphics/imagehelper.d.ts +4 -0
- package/dist/create/pdf/util/pdfme/schemas/graphics/imagehelper.js +111 -0
- package/dist/create/pdf/util/pdfme/schemas/graphics/imagehelper.js.map +1 -0
- package/dist/create/pdf/util/pdfme/schemas/graphics/pdfHelper.d.ts +4 -0
- package/dist/create/pdf/util/pdfme/schemas/graphics/pdfHelper.js +40 -0
- package/dist/create/pdf/util/pdfme/schemas/graphics/pdfHelper.js.map +1 -0
- package/dist/create/pdf/util/pdfme/schemas/graphics/svg.d.ts +5 -0
- package/dist/create/pdf/util/pdfme/schemas/graphics/svg.js +84 -0
- package/dist/create/pdf/util/pdfme/schemas/graphics/svg.js.map +1 -0
- package/dist/create/pdf/util/pdfme/schemas/text/constants.d.ts +20 -0
- package/dist/create/pdf/util/pdfme/schemas/text/constants.js +23 -0
- package/dist/create/pdf/util/pdfme/schemas/text/constants.js.map +1 -0
- package/dist/create/pdf/util/pdfme/schemas/text/extraFormatter.d.ts +26 -0
- package/dist/create/pdf/util/pdfme/schemas/text/extraFormatter.js +47 -0
- package/dist/create/pdf/util/pdfme/schemas/text/extraFormatter.js.map +1 -0
- package/dist/create/pdf/util/pdfme/schemas/text/helper.d.ts +28 -0
- package/dist/create/pdf/util/pdfme/schemas/text/helper.js +245 -0
- package/dist/create/pdf/util/pdfme/schemas/text/helper.js.map +1 -0
- package/dist/create/pdf/util/pdfme/schemas/text/icons/index.d.ts +8 -0
- package/dist/create/pdf/util/pdfme/schemas/text/icons/index.js +12 -0
- package/dist/create/pdf/util/pdfme/schemas/text/icons/index.js.map +1 -0
- package/dist/create/pdf/util/pdfme/schemas/text/index.d.ts +4 -0
- package/dist/create/pdf/util/pdfme/schemas/text/index.js +13 -0
- package/dist/create/pdf/util/pdfme/schemas/text/index.js.map +1 -0
- package/dist/create/pdf/util/pdfme/schemas/text/pdfRender.d.ts +3 -0
- package/dist/create/pdf/util/pdfme/schemas/text/pdfRender.js +137 -0
- package/dist/create/pdf/util/pdfme/schemas/text/pdfRender.js.map +1 -0
- package/dist/create/pdf/util/pdfme/schemas/text/propPanel.d.ts +3 -0
- package/dist/create/pdf/util/pdfme/schemas/text/propPanel.js +152 -0
- package/dist/create/pdf/util/pdfme/schemas/text/propPanel.js.map +1 -0
- package/dist/create/pdf/util/pdfme/schemas/text/types.d.ts +28 -0
- package/dist/create/pdf/util/pdfme/schemas/text/types.js +3 -0
- package/dist/create/pdf/util/pdfme/schemas/text/types.js.map +1 -0
- package/dist/create/pdf/util/pdfme/schemas/text/uiRender.d.ts +9 -0
- package/dist/create/pdf/util/pdfme/schemas/text/uiRender.js +218 -0
- package/dist/create/pdf/util/pdfme/schemas/text/uiRender.js.map +1 -0
- package/dist/create/pdf/util/pdfme/schemas/utils.d.ts +31 -0
- package/dist/create/pdf/util/pdfme/schemas/utils.js +159 -0
- package/dist/create/pdf/util/pdfme/schemas/utils.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -3
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.isFirefox = exports.splitTextToSize = exports.calculateDynamicFontSize = exports.getSplittedLines = exports.getFontKitFont = exports.widthOfTextAtSize = exports.heightOfFontAtSize = exports.getFontDescentInPt = exports.getBrowserVerticalFontAdjustments = void 0;
|
|
27
|
+
const fontkit = __importStar(require("fontkit"));
|
|
28
|
+
const common_1 = require("@pdfme/common");
|
|
29
|
+
const buffer_1 = require("buffer");
|
|
30
|
+
const constants_1 = require("./constants");
|
|
31
|
+
const getBrowserVerticalFontAdjustments = (fontKitFont, fontSize, lineHeight, verticalAlignment) => {
|
|
32
|
+
const { ascent, descent, unitsPerEm } = fontKitFont;
|
|
33
|
+
const fontBaseLineHeight = (ascent - descent) / unitsPerEm;
|
|
34
|
+
const topAdjustment = (fontBaseLineHeight * fontSize - fontSize) / 2;
|
|
35
|
+
if (verticalAlignment === constants_1.VERTICAL_ALIGN_TOP) {
|
|
36
|
+
return { topAdj: (0, common_1.pt2px)(topAdjustment), bottomAdj: 0 };
|
|
37
|
+
}
|
|
38
|
+
let bottomAdjustment = 0;
|
|
39
|
+
if (lineHeight < fontBaseLineHeight) {
|
|
40
|
+
bottomAdjustment = ((fontBaseLineHeight - lineHeight) * fontSize) / 2;
|
|
41
|
+
}
|
|
42
|
+
return { topAdj: 0, bottomAdj: (0, common_1.pt2px)(bottomAdjustment) };
|
|
43
|
+
};
|
|
44
|
+
exports.getBrowserVerticalFontAdjustments = getBrowserVerticalFontAdjustments;
|
|
45
|
+
const getFontDescentInPt = (fontKitFont, fontSize) => {
|
|
46
|
+
const { descent, unitsPerEm } = fontKitFont;
|
|
47
|
+
return (descent / unitsPerEm) * fontSize;
|
|
48
|
+
};
|
|
49
|
+
exports.getFontDescentInPt = getFontDescentInPt;
|
|
50
|
+
const heightOfFontAtSize = (fontKitFont, fontSize) => {
|
|
51
|
+
const { ascent, descent, bbox, unitsPerEm } = fontKitFont;
|
|
52
|
+
const scale = 1000 / unitsPerEm;
|
|
53
|
+
const yTop = (ascent || bbox.maxY) * scale;
|
|
54
|
+
const yBottom = (descent || bbox.minY) * scale;
|
|
55
|
+
let height = yTop - yBottom;
|
|
56
|
+
height -= Math.abs(descent * scale) || 0;
|
|
57
|
+
return (height / 1000) * fontSize;
|
|
58
|
+
};
|
|
59
|
+
exports.heightOfFontAtSize = heightOfFontAtSize;
|
|
60
|
+
const calculateCharacterSpacing = (textContent, textCharacterSpacing) => {
|
|
61
|
+
return (textContent.length - 1) * textCharacterSpacing;
|
|
62
|
+
};
|
|
63
|
+
const widthOfTextAtSize = (text, fontKitFont, fontSize, characterSpacing) => {
|
|
64
|
+
const { glyphs } = fontKitFont.layout(text);
|
|
65
|
+
const scale = 1000 / fontKitFont.unitsPerEm;
|
|
66
|
+
const standardWidth = glyphs.reduce((totalWidth, glyph) => totalWidth + glyph.advanceWidth * scale, 0) *
|
|
67
|
+
(fontSize / 1000);
|
|
68
|
+
return standardWidth + calculateCharacterSpacing(text, characterSpacing);
|
|
69
|
+
};
|
|
70
|
+
exports.widthOfTextAtSize = widthOfTextAtSize;
|
|
71
|
+
const getFallbackFont = (font) => {
|
|
72
|
+
const fallbackFontName = (0, common_1.getFallbackFontName)(font);
|
|
73
|
+
return font[fallbackFontName];
|
|
74
|
+
};
|
|
75
|
+
const getCacheKey = (fontName) => `getFontKitFont-${fontName}`;
|
|
76
|
+
const getFontKitFont = async (fontName, font, _cache) => {
|
|
77
|
+
const fntNm = fontName || (0, common_1.getFallbackFontName)(font);
|
|
78
|
+
const cacheKey = getCacheKey(fntNm);
|
|
79
|
+
if (_cache.has(cacheKey)) {
|
|
80
|
+
return _cache.get(cacheKey);
|
|
81
|
+
}
|
|
82
|
+
const currentFont = font[fntNm] || getFallbackFont(font) || (0, common_1.getDefaultFont)()[common_1.DEFAULT_FONT_NAME];
|
|
83
|
+
let fontData = currentFont.data;
|
|
84
|
+
if (typeof fontData === 'string') {
|
|
85
|
+
fontData = fontData.startsWith('http')
|
|
86
|
+
? await fetch(fontData).then((res) => res.arrayBuffer())
|
|
87
|
+
: (0, common_1.b64toUint8Array)(fontData);
|
|
88
|
+
}
|
|
89
|
+
const fontKitFont = fontkit.create(fontData instanceof buffer_1.Buffer ? fontData : buffer_1.Buffer.from(fontData));
|
|
90
|
+
_cache.set(cacheKey, fontKitFont);
|
|
91
|
+
return fontKitFont;
|
|
92
|
+
};
|
|
93
|
+
exports.getFontKitFont = getFontKitFont;
|
|
94
|
+
const isTextExceedingBoxWidth = (text, calcValues) => {
|
|
95
|
+
const { font, fontSize, characterSpacing, boxWidthInPt } = calcValues;
|
|
96
|
+
const textWidth = (0, exports.widthOfTextAtSize)(text, font, fontSize, characterSpacing);
|
|
97
|
+
return textWidth > boxWidthInPt;
|
|
98
|
+
};
|
|
99
|
+
const getOverPosition = (textLine, calcValues) => {
|
|
100
|
+
for (let i = 0; i <= textLine.length; i++) {
|
|
101
|
+
if (isTextExceedingBoxWidth(textLine.slice(0, i + 1), calcValues)) {
|
|
102
|
+
return i;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return null;
|
|
106
|
+
};
|
|
107
|
+
const isLineBreakableChar = (char) => {
|
|
108
|
+
const lineBreakableChars = [' ', '-', "\u2014", "\u2013"];
|
|
109
|
+
return lineBreakableChars.includes(char);
|
|
110
|
+
};
|
|
111
|
+
const getSplitPosition = (textLine, calcValues) => {
|
|
112
|
+
const overPos = getOverPosition(textLine, calcValues);
|
|
113
|
+
if (overPos === null)
|
|
114
|
+
return textLine.length;
|
|
115
|
+
if (textLine[overPos] === ' ') {
|
|
116
|
+
return overPos;
|
|
117
|
+
}
|
|
118
|
+
let overPosTmp = overPos - 1;
|
|
119
|
+
while (overPosTmp >= 0) {
|
|
120
|
+
if (isLineBreakableChar(textLine[overPosTmp])) {
|
|
121
|
+
return overPosTmp + 1;
|
|
122
|
+
}
|
|
123
|
+
overPosTmp--;
|
|
124
|
+
}
|
|
125
|
+
return overPos;
|
|
126
|
+
};
|
|
127
|
+
const getSplittedLines = (textLine, calcValues) => {
|
|
128
|
+
const splitPos = getSplitPosition(textLine, calcValues);
|
|
129
|
+
const splittedLine = textLine.substring(0, splitPos).trimEnd();
|
|
130
|
+
const rest = textLine.substring(splitPos).trimStart();
|
|
131
|
+
if (rest === textLine) {
|
|
132
|
+
return [textLine];
|
|
133
|
+
}
|
|
134
|
+
if (rest.length === 0) {
|
|
135
|
+
return [splittedLine];
|
|
136
|
+
}
|
|
137
|
+
return [splittedLine, ...(0, exports.getSplittedLines)(rest, calcValues)];
|
|
138
|
+
};
|
|
139
|
+
exports.getSplittedLines = getSplittedLines;
|
|
140
|
+
const calculateDynamicFontSize = async ({ textSchema, font, value, startingFontSize, _cache, }) => {
|
|
141
|
+
const { fontSize: schemaFontSize, dynamicFontSize: dynamicFontSizeSetting, characterSpacing: schemaCharacterSpacing, width: boxWidth, height: boxHeight, lineHeight = constants_1.DEFAULT_LINE_HEIGHT, } = textSchema;
|
|
142
|
+
const fontSize = startingFontSize || schemaFontSize || constants_1.DEFAULT_FONT_SIZE;
|
|
143
|
+
if (!dynamicFontSizeSetting)
|
|
144
|
+
return fontSize;
|
|
145
|
+
if (dynamicFontSizeSetting.max < dynamicFontSizeSetting.min)
|
|
146
|
+
return fontSize;
|
|
147
|
+
const characterSpacing = schemaCharacterSpacing ?? constants_1.DEFAULT_CHARACTER_SPACING;
|
|
148
|
+
const fontKitFont = await (0, exports.getFontKitFont)(textSchema.fontName, font, _cache);
|
|
149
|
+
const paragraphs = value.split('\n');
|
|
150
|
+
let dynamicFontSize = fontSize;
|
|
151
|
+
if (dynamicFontSize < dynamicFontSizeSetting.min) {
|
|
152
|
+
dynamicFontSize = dynamicFontSizeSetting.min;
|
|
153
|
+
}
|
|
154
|
+
else if (dynamicFontSize > dynamicFontSizeSetting.max) {
|
|
155
|
+
dynamicFontSize = dynamicFontSizeSetting.max;
|
|
156
|
+
}
|
|
157
|
+
const dynamicFontFit = dynamicFontSizeSetting.fit ?? constants_1.DEFAULT_DYNAMIC_FIT;
|
|
158
|
+
const calculateConstraints = (size) => {
|
|
159
|
+
let totalWidthInMm = 0;
|
|
160
|
+
let totalHeightInMm = 0;
|
|
161
|
+
const boxWidthInPt = (0, common_1.mm2pt)(boxWidth);
|
|
162
|
+
const firstLineTextHeight = (0, exports.heightOfFontAtSize)(fontKitFont, size);
|
|
163
|
+
const firstLineHeightInMm = (0, common_1.pt2mm)(firstLineTextHeight * lineHeight);
|
|
164
|
+
const otherRowHeightInMm = (0, common_1.pt2mm)(size * lineHeight);
|
|
165
|
+
paragraphs.forEach((paragraph, paraIndex) => {
|
|
166
|
+
const lines = (0, exports.getSplittedLines)(paragraph, {
|
|
167
|
+
font: fontKitFont,
|
|
168
|
+
fontSize: size,
|
|
169
|
+
characterSpacing,
|
|
170
|
+
boxWidthInPt,
|
|
171
|
+
});
|
|
172
|
+
lines.forEach((line, lineIndex) => {
|
|
173
|
+
if (dynamicFontFit === constants_1.DYNAMIC_FIT_VERTICAL) {
|
|
174
|
+
const textWidth = (0, exports.widthOfTextAtSize)(line, fontKitFont, size, characterSpacing);
|
|
175
|
+
const textWidthInMm = (0, common_1.pt2mm)(textWidth);
|
|
176
|
+
totalWidthInMm = Math.max(totalWidthInMm, textWidthInMm);
|
|
177
|
+
}
|
|
178
|
+
if (paraIndex + lineIndex === 0) {
|
|
179
|
+
totalHeightInMm += firstLineHeightInMm;
|
|
180
|
+
}
|
|
181
|
+
else {
|
|
182
|
+
totalHeightInMm += otherRowHeightInMm;
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
if (dynamicFontFit === constants_1.DYNAMIC_FIT_HORIZONTAL) {
|
|
186
|
+
const textWidth = (0, exports.widthOfTextAtSize)(paragraph, fontKitFont, size, characterSpacing);
|
|
187
|
+
const textWidthInMm = (0, common_1.pt2mm)(textWidth);
|
|
188
|
+
totalWidthInMm = Math.max(totalWidthInMm, textWidthInMm);
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
return { totalWidthInMm, totalHeightInMm };
|
|
192
|
+
};
|
|
193
|
+
const shouldFontGrowToFit = (totalWidthInMm, totalHeightInMm) => {
|
|
194
|
+
if (dynamicFontSize >= dynamicFontSizeSetting.max) {
|
|
195
|
+
return false;
|
|
196
|
+
}
|
|
197
|
+
if (dynamicFontFit === constants_1.DYNAMIC_FIT_HORIZONTAL) {
|
|
198
|
+
return totalWidthInMm < boxWidth;
|
|
199
|
+
}
|
|
200
|
+
return totalHeightInMm < boxHeight;
|
|
201
|
+
};
|
|
202
|
+
const shouldFontShrinkToFit = (totalWidthInMm, totalHeightInMm) => {
|
|
203
|
+
if (dynamicFontSize <= dynamicFontSizeSetting.min || dynamicFontSize <= 0) {
|
|
204
|
+
return false;
|
|
205
|
+
}
|
|
206
|
+
return totalWidthInMm > boxWidth || totalHeightInMm > boxHeight;
|
|
207
|
+
};
|
|
208
|
+
let { totalWidthInMm, totalHeightInMm } = calculateConstraints(dynamicFontSize);
|
|
209
|
+
while (shouldFontGrowToFit(totalWidthInMm, totalHeightInMm)) {
|
|
210
|
+
dynamicFontSize += constants_1.FONT_SIZE_ADJUSTMENT;
|
|
211
|
+
const { totalWidthInMm: newWidth, totalHeightInMm: newHeight } = calculateConstraints(dynamicFontSize);
|
|
212
|
+
if (newHeight < boxHeight) {
|
|
213
|
+
totalWidthInMm = newWidth;
|
|
214
|
+
totalHeightInMm = newHeight;
|
|
215
|
+
}
|
|
216
|
+
else {
|
|
217
|
+
dynamicFontSize -= constants_1.FONT_SIZE_ADJUSTMENT;
|
|
218
|
+
break;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
while (shouldFontShrinkToFit(totalWidthInMm, totalHeightInMm)) {
|
|
222
|
+
dynamicFontSize -= constants_1.FONT_SIZE_ADJUSTMENT;
|
|
223
|
+
({ totalWidthInMm, totalHeightInMm } = calculateConstraints(dynamicFontSize));
|
|
224
|
+
}
|
|
225
|
+
return dynamicFontSize;
|
|
226
|
+
};
|
|
227
|
+
exports.calculateDynamicFontSize = calculateDynamicFontSize;
|
|
228
|
+
const splitTextToSize = (arg) => {
|
|
229
|
+
const { value, characterSpacing, fontSize, fontKitFont, boxWidthInPt } = arg;
|
|
230
|
+
const fontWidthCalcValues = {
|
|
231
|
+
font: fontKitFont,
|
|
232
|
+
fontSize,
|
|
233
|
+
characterSpacing,
|
|
234
|
+
boxWidthInPt,
|
|
235
|
+
};
|
|
236
|
+
let lines = [];
|
|
237
|
+
value.split(/\r\n|\r|\n|\f|\u000B/g).forEach((line) => {
|
|
238
|
+
lines = lines.concat((0, exports.getSplittedLines)(line, fontWidthCalcValues));
|
|
239
|
+
});
|
|
240
|
+
return lines;
|
|
241
|
+
};
|
|
242
|
+
exports.splitTextToSize = splitTextToSize;
|
|
243
|
+
const isFirefox = () => navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
|
244
|
+
exports.isFirefox = isFirefox;
|
|
245
|
+
//# sourceMappingURL=helper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper.js","sourceRoot":"","sources":["../../../../../../../src/create/pdf/util/pdfme/schemas/text/helper.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,iDAAmC;AAEnC,0CASuB;AACvB,mCAAgC;AAEhC,2CASqB;AAEd,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;IAGpD,MAAM,kBAAkB,GAAG,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,UAAU,CAAC;IAO3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b,CAAC;IACF,IAAI,KAAK,GAAa,EAAE,CAAC;IAEzB,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;AApBW,QAAA,eAAe,mBAoB1B;AACK,MAAM,SAAS,GAAG,GAAG,EAAE,CAAC,SAAS,CAAC,SAAS,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AAA5E,QAAA,SAAS,aAAmE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const TextStrikethroughIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 24 24\"><path d=\"M6.85 7.08C6.85 4.37 9.45 3 12.24 3c1.64 0 3 .49 3.9 1.28c.77.65 1.46 1.73 1.46 3.24h-3.01c0-.31-.05-.59-.15-.85c-.29-.86-1.2-1.28-2.25-1.28c-1.86 0-2.34 1.02-2.34 1.7c0 .48.25.88.74 1.21c.38.25.77.48 1.41.7H7.39c-.21-.34-.54-.89-.54-1.92zM21 12v-2H3v2h9.62c1.15.45 1.96.75 1.96 1.97c0 1-.81 1.67-2.28 1.67c-1.54 0-2.93-.54-2.93-2.51H6.4c0 .55.08 1.13.24 1.58c.81 2.29 3.29 3.3 5.67 3.3c2.27 0 5.3-.89 5.3-4.05c0-.3-.01-1.16-.48-1.94H21V12z\" fill=\"currentColor\"></path></svg>";
|
|
2
|
+
export declare const TextUnderlineIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 24 24\"><path d=\"M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z\" fill=\"currentColor\"></path></svg>";
|
|
3
|
+
export declare const TextAlignLeftIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 24 24\"><path d=\"M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z\" fill=\"currentColor\"></path></svg>";
|
|
4
|
+
export declare const TextAlignCenterIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 24 24\"><path d=\"M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z\" fill=\"currentColor\"></path></svg>";
|
|
5
|
+
export declare const TextAlignRightIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 24 24\"><path d=\"M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z\" fill=\"currentColor\"></path></svg>";
|
|
6
|
+
export declare const TextVerticalAlignTopIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 24 24\"><path d=\"M8 11h3v10h2V11h3l-4-4l-4 4zM4 3v2h16V3H4z\" fill=\"currentColor\"></path></svg>";
|
|
7
|
+
export declare const TextVerticalAlignMiddleIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 24 24\"><path d=\"M8 19h3v4h2v-4h3l-4-4l-4 4zm8-14h-3V1h-2v4H8l4 4l4-4zM4 11v2h16v-2H4z\" fill=\"currentColor\"></path></svg>";
|
|
8
|
+
export declare const TextVerticalAlignBottomIcon = "<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" viewBox=\"0 0 24 24\"><path d=\"M16 13h-3V3h-2v10H8l4 4l4-4zM4 19v2h16v-2H4z\" fill=\"currentColor\"></path></svg>";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TextVerticalAlignBottomIcon = exports.TextVerticalAlignMiddleIcon = exports.TextVerticalAlignTopIcon = exports.TextAlignRightIcon = exports.TextAlignCenterIcon = exports.TextAlignLeftIcon = exports.TextUnderlineIcon = exports.TextStrikethroughIcon = void 0;
|
|
4
|
+
exports.TextStrikethroughIcon = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M6.85 7.08C6.85 4.37 9.45 3 12.24 3c1.64 0 3 .49 3.9 1.28c.77.65 1.46 1.73 1.46 3.24h-3.01c0-.31-.05-.59-.15-.85c-.29-.86-1.2-1.28-2.25-1.28c-1.86 0-2.34 1.02-2.34 1.7c0 .48.25.88.74 1.21c.38.25.77.48 1.41.7H7.39c-.21-.34-.54-.89-.54-1.92zM21 12v-2H3v2h9.62c1.15.45 1.96.75 1.96 1.97c0 1-.81 1.67-2.28 1.67c-1.54 0-2.93-.54-2.93-2.51H6.4c0 .55.08 1.13.24 1.58c.81 2.29 3.29 3.3 5.67 3.3c2.27 0 5.3-.89 5.3-4.05c0-.3-.01-1.16-.48-1.94H21V12z" fill="currentColor"></path></svg>`;
|
|
5
|
+
exports.TextUnderlineIcon = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M12 17c3.31 0 6-2.69 6-6V3h-2.5v8c0 1.93-1.57 3.5-3.5 3.5S8.5 12.93 8.5 11V3H6v8c0 3.31 2.69 6 6 6zm-7 2v2h14v-2H5z" fill="currentColor"></path></svg>`;
|
|
6
|
+
exports.TextAlignLeftIcon = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M15 15H3v2h12v-2zm0-8H3v2h12V7zM3 13h18v-2H3v2zm0 8h18v-2H3v2zM3 3v2h18V3H3z" fill="currentColor"></path></svg>`;
|
|
7
|
+
exports.TextAlignCenterIcon = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M7 15v2h10v-2H7zm-4 6h18v-2H3v2zm0-8h18v-2H3v2zm4-6v2h10V7H7zM3 3v2h18V3H3z" fill="currentColor"></path></svg>`;
|
|
8
|
+
exports.TextAlignRightIcon = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M3 21h18v-2H3v2zm6-4h12v-2H9v2zm-6-4h18v-2H3v2zm6-4h12V7H9v2zM3 3v2h18V3H3z" fill="currentColor"></path></svg>`;
|
|
9
|
+
exports.TextVerticalAlignTopIcon = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M8 11h3v10h2V11h3l-4-4l-4 4zM4 3v2h16V3H4z" fill="currentColor"></path></svg>`;
|
|
10
|
+
exports.TextVerticalAlignMiddleIcon = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M8 19h3v4h2v-4h3l-4-4l-4 4zm8-14h-3V1h-2v4H8l4 4l4-4zM4 11v2h16v-2H4z" fill="currentColor"></path></svg>`;
|
|
11
|
+
exports.TextVerticalAlignBottomIcon = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 24 24"><path d="M16 13h-3V3h-2v10H8l4 4l4-4zM4 19v2h16v-2H4z" fill="currentColor"></path></svg>`;
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/create/pdf/util/pdfme/schemas/text/icons/index.ts"],"names":[],"mappings":";;;AAEa,QAAA,qBAAqB,GAAG,6kBAA6kB,CAAC;AAEtmB,QAAA,iBAAiB,GAAG,wQAAwQ,CAAC;AAE7R,QAAA,iBAAiB,GAAG,iOAAiO,CAAC;AAEtP,QAAA,mBAAmB,GAAG,gOAAgO,CAAC;AAEvP,QAAA,kBAAkB,GAAG,gOAAgO,CAAC;AAEtP,QAAA,wBAAwB,GAAG,+LAA+L,CAAC;AAE3N,QAAA,2BAA2B,GAAG,0NAA0N,CAAC;AAEzP,QAAA,2BAA2B,GAAG,iMAAiM,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const pdfRender_1 = require("./pdfRender");
|
|
4
|
+
const propPanel_1 = require("./propPanel");
|
|
5
|
+
const uiRender_1 = require("./uiRender");
|
|
6
|
+
const textSchema = {
|
|
7
|
+
pdf: pdfRender_1.pdfRender,
|
|
8
|
+
ui: uiRender_1.uiRender,
|
|
9
|
+
propPanel: propPanel_1.propPanel,
|
|
10
|
+
icon: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-text-cursor-input"><path d="M5 4h1a3 3 0 0 1 3 3 3 3 0 0 1 3-3h1"/><path d="M13 20h-1a3 3 0 0 1-3-3 3 3 0 0 1-3 3H5"/><path d="M5 16H4a2 2 0 0 1-2-2v-4a2 2 0 0 1 2-2h1"/><path d="M13 8h7a2 2 0 0 1 2 2v4a2 2 0 0 1-2 2h-7"/><path d="M9 7v10"/></svg>',
|
|
11
|
+
};
|
|
12
|
+
exports.default = textSchema;
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/create/pdf/util/pdfme/schemas/text/index.ts"],"names":[],"mappings":";;AACA,2CAAwC;AACxC,2CAAwC;AACxC,yCAAsC;AAGtC,MAAM,UAAU,GAAuB;IACrC,GAAG,EAAE,qBAAS;IACd,EAAE,EAAE,mBAAQ;IACZ,SAAS,EAAT,qBAAS;IACT,IAAI,EAAE,mcAAmc;CAC1c,CAAC;AAEF,kBAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.pdfRender = void 0;
|
|
4
|
+
const common_1 = require("@pdfme/common");
|
|
5
|
+
const constants_1 = require("./constants");
|
|
6
|
+
const helper_1 = require("./helper");
|
|
7
|
+
const utils_1 = require("../utils");
|
|
8
|
+
const embedAndGetFontObj = async (arg) => {
|
|
9
|
+
const { pdfDoc, font, _cache } = arg;
|
|
10
|
+
if (_cache.has(pdfDoc)) {
|
|
11
|
+
return _cache.get(pdfDoc);
|
|
12
|
+
}
|
|
13
|
+
const fontValues = await Promise.all(Object.values(font).map(async (v) => {
|
|
14
|
+
let fontData = v.data;
|
|
15
|
+
if (typeof fontData === 'string' && fontData.startsWith('http')) {
|
|
16
|
+
fontData = await fetch(fontData).then((res) => res.arrayBuffer());
|
|
17
|
+
}
|
|
18
|
+
return pdfDoc.embedFont(fontData, {
|
|
19
|
+
subset: typeof v.subset === 'undefined' ? true : v.subset,
|
|
20
|
+
});
|
|
21
|
+
}));
|
|
22
|
+
const fontObj = Object.keys(font).reduce((acc, cur, i) => Object.assign(acc, { [cur]: fontValues[i] }), {});
|
|
23
|
+
_cache.set(pdfDoc, fontObj);
|
|
24
|
+
return fontObj;
|
|
25
|
+
};
|
|
26
|
+
const getFontProp = async ({ value, font, schema, colorType, _cache, }) => {
|
|
27
|
+
const fontSize = schema.dynamicFontSize
|
|
28
|
+
? await (0, helper_1.calculateDynamicFontSize)({ textSchema: schema, font, value, _cache })
|
|
29
|
+
: schema.fontSize ?? constants_1.DEFAULT_FONT_SIZE;
|
|
30
|
+
const color = (0, utils_1.hex2PrintingColor)(schema.fontColor || constants_1.DEFAULT_FONT_COLOR, colorType);
|
|
31
|
+
return {
|
|
32
|
+
alignment: schema.alignment ?? constants_1.DEFAULT_ALIGNMENT,
|
|
33
|
+
verticalAlignment: schema.verticalAlignment ?? constants_1.DEFAULT_VERTICAL_ALIGNMENT,
|
|
34
|
+
lineHeight: schema.lineHeight ?? constants_1.DEFAULT_LINE_HEIGHT,
|
|
35
|
+
characterSpacing: schema.characterSpacing ?? constants_1.DEFAULT_CHARACTER_SPACING,
|
|
36
|
+
fontSize,
|
|
37
|
+
color,
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
const pdfRender = async (arg) => {
|
|
41
|
+
const { value, pdfDoc, pdfLib, page, options, schema, _cache } = arg;
|
|
42
|
+
if (!value)
|
|
43
|
+
return;
|
|
44
|
+
const { font = (0, common_1.getDefaultFont)(), colorType } = options;
|
|
45
|
+
const [pdfFontObj, fontKitFont, fontProp] = await Promise.all([
|
|
46
|
+
embedAndGetFontObj({ pdfDoc, font, _cache }),
|
|
47
|
+
(0, helper_1.getFontKitFont)(schema.fontName, font, _cache),
|
|
48
|
+
getFontProp({ value, font, schema, _cache, colorType }),
|
|
49
|
+
]);
|
|
50
|
+
const { fontSize, color, alignment, verticalAlignment, lineHeight, characterSpacing } = fontProp;
|
|
51
|
+
const fontName = (schema.fontName ? schema.fontName : (0, common_1.getFallbackFontName)(font));
|
|
52
|
+
const pdfFontValue = pdfFontObj && pdfFontObj[fontName];
|
|
53
|
+
const pageHeight = page.getHeight();
|
|
54
|
+
const { width, height, rotate, position: { x, y }, opacity, } = (0, utils_1.convertForPdfLayoutProps)({ schema, pageHeight, applyRotateTranslate: false });
|
|
55
|
+
if (schema.backgroundColor) {
|
|
56
|
+
const color = (0, utils_1.hex2PrintingColor)(schema.backgroundColor, colorType);
|
|
57
|
+
page.drawRectangle({ x, y, width, height, rotate, color });
|
|
58
|
+
}
|
|
59
|
+
page.pushOperators(pdfLib.setCharacterSpacing(characterSpacing ?? constants_1.DEFAULT_CHARACTER_SPACING));
|
|
60
|
+
const firstLineTextHeight = (0, helper_1.heightOfFontAtSize)(fontKitFont, fontSize);
|
|
61
|
+
const descent = (0, helper_1.getFontDescentInPt)(fontKitFont, fontSize);
|
|
62
|
+
const halfLineHeightAdjustment = lineHeight === 0 ? 0 : ((lineHeight - 1) * fontSize) / 2;
|
|
63
|
+
const lines = (0, helper_1.splitTextToSize)({
|
|
64
|
+
value,
|
|
65
|
+
characterSpacing,
|
|
66
|
+
fontSize,
|
|
67
|
+
fontKitFont,
|
|
68
|
+
boxWidthInPt: width,
|
|
69
|
+
});
|
|
70
|
+
let yOffset = 0;
|
|
71
|
+
if (verticalAlignment === constants_1.VERTICAL_ALIGN_TOP) {
|
|
72
|
+
yOffset = firstLineTextHeight + halfLineHeightAdjustment;
|
|
73
|
+
}
|
|
74
|
+
else {
|
|
75
|
+
const otherLinesHeight = lineHeight * fontSize * (lines.length - 1);
|
|
76
|
+
if (verticalAlignment === constants_1.VERTICAL_ALIGN_BOTTOM) {
|
|
77
|
+
yOffset = height - otherLinesHeight + descent - halfLineHeightAdjustment;
|
|
78
|
+
}
|
|
79
|
+
else if (verticalAlignment === constants_1.VERTICAL_ALIGN_MIDDLE) {
|
|
80
|
+
yOffset =
|
|
81
|
+
(height - otherLinesHeight - firstLineTextHeight + descent) / 2 + firstLineTextHeight;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
const pivotPoint = { x: x + width / 2, y: pageHeight - (0, common_1.mm2pt)(schema.position.y) - height / 2 };
|
|
85
|
+
lines.forEach((line, rowIndex) => {
|
|
86
|
+
const textWidth = (0, helper_1.widthOfTextAtSize)(line, fontKitFont, fontSize, characterSpacing);
|
|
87
|
+
const textHeight = (0, helper_1.heightOfFontAtSize)(fontKitFont, fontSize);
|
|
88
|
+
const rowYOffset = lineHeight * fontSize * rowIndex;
|
|
89
|
+
let xLine = x;
|
|
90
|
+
if (alignment === 'center') {
|
|
91
|
+
xLine += (width - textWidth) / 2;
|
|
92
|
+
}
|
|
93
|
+
else if (alignment === 'right') {
|
|
94
|
+
xLine += width - textWidth;
|
|
95
|
+
}
|
|
96
|
+
let yLine = pageHeight - (0, common_1.mm2pt)(schema.position.y) - yOffset - rowYOffset;
|
|
97
|
+
if (schema.strikethrough && textWidth > 0) {
|
|
98
|
+
const _x = xLine + textWidth + 1;
|
|
99
|
+
const _y = yLine + textHeight / 3;
|
|
100
|
+
page.drawLine({
|
|
101
|
+
start: (0, utils_1.rotatePoint)({ x: xLine, y: _y }, pivotPoint, rotate.angle),
|
|
102
|
+
end: (0, utils_1.rotatePoint)({ x: _x, y: _y }, pivotPoint, rotate.angle),
|
|
103
|
+
thickness: (1 / 12) * fontSize,
|
|
104
|
+
color: color,
|
|
105
|
+
opacity,
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
if (schema.underline && textWidth > 0) {
|
|
109
|
+
const _x = xLine + textWidth + 1;
|
|
110
|
+
const _y = yLine - textHeight / 12;
|
|
111
|
+
page.drawLine({
|
|
112
|
+
start: (0, utils_1.rotatePoint)({ x: xLine, y: _y }, pivotPoint, rotate.angle),
|
|
113
|
+
end: (0, utils_1.rotatePoint)({ x: _x, y: _y }, pivotPoint, rotate.angle),
|
|
114
|
+
thickness: (1 / 12) * fontSize,
|
|
115
|
+
color: color,
|
|
116
|
+
opacity,
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
if (rotate.angle !== 0) {
|
|
120
|
+
const rotatedPoint = (0, utils_1.rotatePoint)({ x: xLine, y: yLine }, pivotPoint, rotate.angle);
|
|
121
|
+
xLine = rotatedPoint.x;
|
|
122
|
+
yLine = rotatedPoint.y;
|
|
123
|
+
}
|
|
124
|
+
page.drawText(line, {
|
|
125
|
+
x: xLine,
|
|
126
|
+
y: yLine,
|
|
127
|
+
rotate,
|
|
128
|
+
size: fontSize,
|
|
129
|
+
color,
|
|
130
|
+
lineHeight: lineHeight * fontSize,
|
|
131
|
+
font: pdfFontValue,
|
|
132
|
+
opacity,
|
|
133
|
+
});
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
exports.pdfRender = pdfRender;
|
|
137
|
+
//# sourceMappingURL=pdfRender.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pdfRender.js","sourceRoot":"","sources":["../../../../../../../src/create/pdf/util/pdfme/schemas/text/pdfRender.ts"],"names":[],"mappings":";;;AAGA,0CAOuB;AACvB,2CAUqB;AACrB,qCAOkB;AAClB,oCAAoF;AAEpF,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,CAAC;QACvB,OAAO,MAAM,CAAC,GAAG,CAAC,MAAM,CAA+B,CAAC;IAC1D,CAAC;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,CAAC;YAChE,QAAQ,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;QACpE,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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;QACzB,CAAC;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;AA3HW,QAAA,SAAS,aA2HpB"}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.propPanel = void 0;
|
|
4
|
+
const common_1 = require("@pdfme/common");
|
|
5
|
+
const constants_1 = require("./constants");
|
|
6
|
+
const constants_2 = require("../constants");
|
|
7
|
+
const extraFormatter_1 = require("./extraFormatter");
|
|
8
|
+
const UseDynamicFontSize = (props) => {
|
|
9
|
+
const { rootElement, changeSchemas, activeSchema, i18n } = props;
|
|
10
|
+
const checkbox = document.createElement('input');
|
|
11
|
+
checkbox.type = 'checkbox';
|
|
12
|
+
checkbox.checked = Boolean(activeSchema?.dynamicFontSize);
|
|
13
|
+
checkbox.onchange = (e) => {
|
|
14
|
+
const val = e.target.checked
|
|
15
|
+
? {
|
|
16
|
+
min: constants_1.DEFAULT_DYNAMIC_MIN_FONT_SIZE,
|
|
17
|
+
max: constants_1.DEFAULT_DYNAMIC_MAX_FONT_SIZE,
|
|
18
|
+
fit: constants_1.DEFAULT_DYNAMIC_FIT,
|
|
19
|
+
}
|
|
20
|
+
: undefined;
|
|
21
|
+
changeSchemas([{ key: 'dynamicFontSize', value: val, schemaId: activeSchema.id }]);
|
|
22
|
+
};
|
|
23
|
+
const label = document.createElement('label');
|
|
24
|
+
const span = document.createElement('span');
|
|
25
|
+
span.innerText = i18n('schemas.text.dynamicFontSize') || '';
|
|
26
|
+
span.style.cssText = 'margin-left: 0.5rem';
|
|
27
|
+
label.style.cssText = 'display: flex; width: 100%;';
|
|
28
|
+
label.appendChild(checkbox);
|
|
29
|
+
label.appendChild(span);
|
|
30
|
+
rootElement.appendChild(label);
|
|
31
|
+
};
|
|
32
|
+
exports.propPanel = {
|
|
33
|
+
schema: ({ options, activeSchema, i18n }) => {
|
|
34
|
+
const font = options.font || { [common_1.DEFAULT_FONT_NAME]: { data: '', fallback: true } };
|
|
35
|
+
const fontNames = Object.keys(font);
|
|
36
|
+
const fallbackFontName = (0, common_1.getFallbackFontName)(font);
|
|
37
|
+
const enableDynamicFont = Boolean(activeSchema?.dynamicFontSize);
|
|
38
|
+
const textSchema = {
|
|
39
|
+
fontName: {
|
|
40
|
+
title: i18n('schemas.text.fontName'),
|
|
41
|
+
type: 'string',
|
|
42
|
+
widget: 'select',
|
|
43
|
+
default: fallbackFontName,
|
|
44
|
+
props: { options: fontNames.map((name) => ({ label: name, value: name })) },
|
|
45
|
+
span: 12,
|
|
46
|
+
},
|
|
47
|
+
fontSize: {
|
|
48
|
+
title: i18n('schemas.text.size'),
|
|
49
|
+
type: 'number',
|
|
50
|
+
widget: 'inputNumber',
|
|
51
|
+
span: 6,
|
|
52
|
+
disabled: enableDynamicFont,
|
|
53
|
+
props: { min: 0 },
|
|
54
|
+
},
|
|
55
|
+
characterSpacing: {
|
|
56
|
+
title: i18n('schemas.text.spacing'),
|
|
57
|
+
type: 'number',
|
|
58
|
+
widget: 'inputNumber',
|
|
59
|
+
span: 6,
|
|
60
|
+
props: { min: 0 },
|
|
61
|
+
},
|
|
62
|
+
formatter: (0, extraFormatter_1.getExtraFormatterSchema)(i18n),
|
|
63
|
+
lineHeight: {
|
|
64
|
+
title: i18n('schemas.text.lineHeight'),
|
|
65
|
+
type: 'number',
|
|
66
|
+
widget: 'inputNumber',
|
|
67
|
+
props: { step: 0.1, min: 0 },
|
|
68
|
+
span: 7,
|
|
69
|
+
},
|
|
70
|
+
useDynamicFontSize: { type: 'boolean', widget: 'UseDynamicFontSize', bind: false, span: 16 },
|
|
71
|
+
dynamicFontSize: {
|
|
72
|
+
type: 'object',
|
|
73
|
+
widget: 'card',
|
|
74
|
+
column: 3,
|
|
75
|
+
properties: {
|
|
76
|
+
min: {
|
|
77
|
+
title: i18n('schemas.text.min'),
|
|
78
|
+
type: 'number',
|
|
79
|
+
widget: 'inputNumber',
|
|
80
|
+
hidden: !enableDynamicFont,
|
|
81
|
+
props: { min: 0 },
|
|
82
|
+
},
|
|
83
|
+
max: {
|
|
84
|
+
title: i18n('schemas.text.max'),
|
|
85
|
+
type: 'number',
|
|
86
|
+
widget: 'inputNumber',
|
|
87
|
+
hidden: !enableDynamicFont,
|
|
88
|
+
props: { min: 0 },
|
|
89
|
+
},
|
|
90
|
+
fit: {
|
|
91
|
+
title: i18n('schemas.text.fit'),
|
|
92
|
+
type: 'string',
|
|
93
|
+
widget: 'select',
|
|
94
|
+
hidden: !enableDynamicFont,
|
|
95
|
+
props: {
|
|
96
|
+
options: [
|
|
97
|
+
{ label: i18n('schemas.horizontal'), value: constants_1.DYNAMIC_FIT_HORIZONTAL },
|
|
98
|
+
{ label: i18n('schemas.vertical'), value: constants_1.DYNAMIC_FIT_VERTICAL },
|
|
99
|
+
],
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
fontColor: {
|
|
105
|
+
title: i18n('schemas.textColor'),
|
|
106
|
+
type: 'string',
|
|
107
|
+
widget: 'color',
|
|
108
|
+
rules: [
|
|
109
|
+
{
|
|
110
|
+
pattern: constants_2.HEX_COLOR_PATTERN,
|
|
111
|
+
message: i18n('validation.hexColor'),
|
|
112
|
+
},
|
|
113
|
+
],
|
|
114
|
+
},
|
|
115
|
+
backgroundColor: {
|
|
116
|
+
title: i18n('schemas.bgColor'),
|
|
117
|
+
type: 'string',
|
|
118
|
+
widget: 'color',
|
|
119
|
+
rules: [
|
|
120
|
+
{
|
|
121
|
+
pattern: constants_2.HEX_COLOR_PATTERN,
|
|
122
|
+
message: i18n('validation.hexColor'),
|
|
123
|
+
},
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
return textSchema;
|
|
128
|
+
},
|
|
129
|
+
widgets: { UseDynamicFontSize },
|
|
130
|
+
defaultSchema: {
|
|
131
|
+
name: '',
|
|
132
|
+
type: 'text',
|
|
133
|
+
content: 'Type Something...',
|
|
134
|
+
position: { x: 0, y: 0 },
|
|
135
|
+
width: 45,
|
|
136
|
+
height: 10,
|
|
137
|
+
rotate: 0,
|
|
138
|
+
alignment: constants_1.DEFAULT_ALIGNMENT,
|
|
139
|
+
verticalAlignment: constants_1.DEFAULT_VERTICAL_ALIGNMENT,
|
|
140
|
+
fontSize: constants_1.DEFAULT_FONT_SIZE,
|
|
141
|
+
lineHeight: constants_1.DEFAULT_LINE_HEIGHT,
|
|
142
|
+
characterSpacing: constants_1.DEFAULT_CHARACTER_SPACING,
|
|
143
|
+
dynamicFontSize: undefined,
|
|
144
|
+
fontColor: constants_1.DEFAULT_FONT_COLOR,
|
|
145
|
+
fontName: undefined,
|
|
146
|
+
backgroundColor: '',
|
|
147
|
+
opacity: constants_2.DEFAULT_OPACITY,
|
|
148
|
+
strikethrough: false,
|
|
149
|
+
underline: false,
|
|
150
|
+
},
|
|
151
|
+
};
|
|
152
|
+
//# sourceMappingURL=propPanel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"propPanel.js","sourceRoot":"","sources":["../../../../../../../src/create/pdf/util/pdfme/schemas/text/propPanel.ts"],"names":[],"mappings":";;;AACA,0CAMuB;AAEvB,2CAYqB;AACrB,4CAAkE;AAClE,qDAA2D;AAE3D,MAAM,kBAAkB,GAAG,CAAC,KAA2B,EAAE,EAAE;IACzD,MAAM,EAAE,WAA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