@campxdev/pdfme 1.1.0 → 1.2.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.
- package/dist/cjs/chunks/{helper-DU7Bm8ZQ.js → helper-C2o2tpNj.js} +2 -1
- package/dist/cjs/chunks/{index-Co0Y0KJj.js → index-CXm3doOM.js} +31 -4
- package/dist/cjs/chunks/{index-mgS9yYj7.js → index-dHRmLCnu.js} +4 -4
- package/dist/cjs/chunks/{index-BzWo8eqh.js → index-qB7eb2BC.js} +2 -2
- package/dist/cjs/chunks/{pluginRegistry-DlJQZP6L.js → pluginRegistry-Ba3ANzzx.js} +1 -1
- package/dist/cjs/common.js +3 -3
- package/dist/cjs/converter.js +1 -1
- package/dist/cjs/generator.js +3 -3
- package/dist/cjs/index.js +5 -5
- package/dist/cjs/print-designer-editor.js +223 -128
- package/dist/cjs/schemas.js +3 -3
- package/dist/cjs/ui.js +106 -83
- package/dist/esm/chunks/{helper-C8LqGaF4.js → helper-D7XF1bxK.js} +2 -1
- package/dist/esm/chunks/{index-d0iAk7OA.js → index-D1FuD_XZ.js} +3 -3
- package/dist/esm/chunks/{index-Rwcd_Vzj.js → index-pDt5vVVj.js} +4 -4
- package/dist/esm/chunks/{index-CwqHuiCe.js → index-qTsnfbi7.js} +32 -5
- package/dist/esm/chunks/{pluginRegistry-C0a91XEw.js → pluginRegistry-DEA2P0ud.js} +1 -1
- package/dist/esm/common.js +3 -3
- package/dist/esm/converter.js +1 -1
- package/dist/esm/generator.js +3 -3
- package/dist/esm/index.js +5 -5
- package/dist/esm/print-designer-editor.js +224 -129
- package/dist/esm/schemas.js +5 -5
- package/dist/esm/ui.js +106 -83
- package/dist/types/_vendors/common/constants.d.ts +20 -0
- package/dist/types/_vendors/common/dynamicTemplate.d.ts +27 -0
- package/dist/types/_vendors/common/expression.d.ts +6 -0
- package/dist/types/_vendors/common/fontData.d.ts +29 -0
- package/dist/types/_vendors/common/helper.d.ts +37 -0
- package/dist/types/_vendors/common/index.d.ts +9 -0
- package/dist/types/_vendors/common/pluginRegistry.d.ts +5 -0
- package/dist/types/_vendors/common/schema.d.ts +822 -0
- package/dist/types/_vendors/common/types.d.ts +189 -0
- package/dist/types/_vendors/common/version.d.ts +1 -0
- package/dist/types/_vendors/converter/img2pdf.d.ts +12 -0
- package/dist/types/_vendors/converter/index.browser.d.ts +8 -0
- package/dist/types/_vendors/converter/index.node.d.ts +8 -0
- package/dist/types/_vendors/converter/pdf2img.d.ts +17 -0
- package/dist/types/_vendors/converter/pdf2size.d.ts +10 -0
- package/dist/types/_vendors/generator/constants.d.ts +1 -0
- package/dist/types/_vendors/generator/generate.d.ts +3 -0
- package/dist/types/_vendors/generator/helper.d.ts +29 -0
- package/dist/types/_vendors/generator/index.d.ts +2 -0
- package/dist/types/_vendors/generator/types.d.ts +20 -0
- package/dist/types/_vendors/manipulator/index.d.ts +46 -0
- package/dist/types/_vendors/pdf-lib/api/Embeddable.d.ts +7 -0
- package/dist/types/_vendors/pdf-lib/api/PDFDocument.d.ts +778 -0
- package/dist/types/_vendors/pdf-lib/api/PDFDocumentOptions.d.ts +38 -0
- package/dist/types/_vendors/pdf-lib/api/PDFEmbeddedFile.d.ts +38 -0
- package/dist/types/_vendors/pdf-lib/api/PDFEmbeddedPage.d.ts +73 -0
- package/dist/types/_vendors/pdf-lib/api/PDFFont.d.ts +94 -0
- package/dist/types/_vendors/pdf-lib/api/PDFImage.d.ts +95 -0
- package/dist/types/_vendors/pdf-lib/api/PDFJavaScript.d.ts +38 -0
- package/dist/types/_vendors/pdf-lib/api/PDFPage.d.ts +910 -0
- package/dist/types/_vendors/pdf-lib/api/PDFPageOptions.d.ts +172 -0
- package/dist/types/_vendors/pdf-lib/api/StandardFonts.d.ts +16 -0
- package/dist/types/_vendors/pdf-lib/api/colors.d.ts +34 -0
- package/dist/types/_vendors/pdf-lib/api/errors.d.ts +42 -0
- package/dist/types/_vendors/pdf-lib/api/form/PDFButton.d.ts +137 -0
- package/dist/types/_vendors/pdf-lib/api/form/PDFCheckBox.d.ts +142 -0
- package/dist/types/_vendors/pdf-lib/api/form/PDFDropdown.d.ts +402 -0
- package/dist/types/_vendors/pdf-lib/api/form/PDFField.d.ts +203 -0
- package/dist/types/_vendors/pdf-lib/api/form/PDFForm.d.ts +411 -0
- package/dist/types/_vendors/pdf-lib/api/form/PDFOptionList.d.ts +335 -0
- package/dist/types/_vendors/pdf-lib/api/form/PDFRadioGroup.d.ts +252 -0
- package/dist/types/_vendors/pdf-lib/api/form/PDFSignature.d.ts +29 -0
- package/dist/types/_vendors/pdf-lib/api/form/PDFTextField.d.ts +537 -0
- package/dist/types/_vendors/pdf-lib/api/form/appearances.d.ts +41 -0
- package/dist/types/_vendors/pdf-lib/api/form/index.d.ts +10 -0
- package/dist/types/_vendors/pdf-lib/api/image/alignment.d.ts +5 -0
- package/dist/types/_vendors/pdf-lib/api/image/index.d.ts +1 -0
- package/dist/types/_vendors/pdf-lib/api/index.d.ts +20 -0
- package/dist/types/_vendors/pdf-lib/api/objects.d.ts +4 -0
- package/dist/types/_vendors/pdf-lib/api/operations.d.ts +226 -0
- package/dist/types/_vendors/pdf-lib/api/operators.d.ts +90 -0
- package/dist/types/_vendors/pdf-lib/api/rotations.d.ts +38 -0
- package/dist/types/_vendors/pdf-lib/api/sizes.d.ts +52 -0
- package/dist/types/_vendors/pdf-lib/api/svg.d.ts +70 -0
- package/dist/types/_vendors/pdf-lib/api/svgPath.d.ts +2 -0
- package/dist/types/_vendors/pdf-lib/api/text/alignment.d.ts +5 -0
- package/dist/types/_vendors/pdf-lib/api/text/index.d.ts +2 -0
- package/dist/types/_vendors/pdf-lib/api/text/layout.d.ts +54 -0
- package/dist/types/_vendors/pdf-lib/core/PDFContext.d.ts +84 -0
- package/dist/types/_vendors/pdf-lib/core/PDFObjectCopier.d.ts +37 -0
- package/dist/types/_vendors/pdf-lib/core/acroform/PDFAcroButton.d.ts +21 -0
- package/dist/types/_vendors/pdf-lib/core/acroform/PDFAcroCheckBox.d.ts +13 -0
- package/dist/types/_vendors/pdf-lib/core/acroform/PDFAcroChoice.d.ts +20 -0
- package/dist/types/_vendors/pdf-lib/core/acroform/PDFAcroComboBox.d.ts +9 -0
- package/dist/types/_vendors/pdf-lib/core/acroform/PDFAcroField.d.ts +36 -0
- package/dist/types/_vendors/pdf-lib/core/acroform/PDFAcroForm.d.ts +20 -0
- package/dist/types/_vendors/pdf-lib/core/acroform/PDFAcroListBox.d.ts +9 -0
- package/dist/types/_vendors/pdf-lib/core/acroform/PDFAcroNonTerminal.d.ts +13 -0
- package/dist/types/_vendors/pdf-lib/core/acroform/PDFAcroPushButton.d.ts +9 -0
- package/dist/types/_vendors/pdf-lib/core/acroform/PDFAcroRadioButton.d.ts +13 -0
- package/dist/types/_vendors/pdf-lib/core/acroform/PDFAcroSignature.d.ts +7 -0
- package/dist/types/_vendors/pdf-lib/core/acroform/PDFAcroTerminal.d.ts +16 -0
- package/dist/types/_vendors/pdf-lib/core/acroform/PDFAcroText.d.ts +22 -0
- package/dist/types/_vendors/pdf-lib/core/acroform/flags.d.ts +141 -0
- package/dist/types/_vendors/pdf-lib/core/acroform/index.d.ts +15 -0
- package/dist/types/_vendors/pdf-lib/core/acroform/utils.d.ts +6 -0
- package/dist/types/_vendors/pdf-lib/core/annotation/AppearanceCharacteristics.d.ts +33 -0
- package/dist/types/_vendors/pdf-lib/core/annotation/BorderStyle.d.ts +11 -0
- package/dist/types/_vendors/pdf-lib/core/annotation/PDFAnnotation.d.ts +51 -0
- package/dist/types/_vendors/pdf-lib/core/annotation/PDFWidgetAnnotation.d.ts +26 -0
- package/dist/types/_vendors/pdf-lib/core/annotation/flags.d.ts +79 -0
- package/dist/types/_vendors/pdf-lib/core/annotation/index.d.ts +4 -0
- package/dist/types/_vendors/pdf-lib/core/crypto.d.ts +95 -0
- package/dist/types/_vendors/pdf-lib/core/document/PDFCrossRefSection.d.ts +27 -0
- package/dist/types/_vendors/pdf-lib/core/document/PDFHeader.d.ts +10 -0
- package/dist/types/_vendors/pdf-lib/core/document/PDFTrailer.d.ts +9 -0
- package/dist/types/_vendors/pdf-lib/core/document/PDFTrailerDict.d.ts +10 -0
- package/dist/types/_vendors/pdf-lib/core/embedders/CMap.d.ts +3 -0
- package/dist/types/_vendors/pdf-lib/core/embedders/CustomFontEmbedder.d.ts +44 -0
- package/dist/types/_vendors/pdf-lib/core/embedders/CustomFontSubsetEmbedder.d.ts +20 -0
- package/dist/types/_vendors/pdf-lib/core/embedders/FileEmbedder.d.ts +33 -0
- package/dist/types/_vendors/pdf-lib/core/embedders/FontFlags.d.ts +13 -0
- package/dist/types/_vendors/pdf-lib/core/embedders/JavaScriptEmbedder.d.ts +10 -0
- package/dist/types/_vendors/pdf-lib/core/embedders/JpegEmbedder.d.ts +23 -0
- package/dist/types/_vendors/pdf-lib/core/embedders/PDFPageEmbedder.d.ts +37 -0
- package/dist/types/_vendors/pdf-lib/core/embedders/PngEmbedder.d.ts +19 -0
- package/dist/types/_vendors/pdf-lib/core/embedders/StandardFontEmbedder.d.ts +36 -0
- package/dist/types/_vendors/pdf-lib/core/errors.d.ts +91 -0
- package/dist/types/_vendors/pdf-lib/core/index.d.ts +47 -0
- package/dist/types/_vendors/pdf-lib/core/interactive/ViewerPreferences.d.ts +347 -0
- package/dist/types/_vendors/pdf-lib/core/objects/PDFArray.d.ts +63 -0
- package/dist/types/_vendors/pdf-lib/core/objects/PDFBool.d.ts +13 -0
- package/dist/types/_vendors/pdf-lib/core/objects/PDFDict.d.ts +62 -0
- package/dist/types/_vendors/pdf-lib/core/objects/PDFHexString.d.ts +16 -0
- package/dist/types/_vendors/pdf-lib/core/objects/PDFInvalidObject.d.ts +11 -0
- package/dist/types/_vendors/pdf-lib/core/objects/PDFName.d.ts +41 -0
- package/dist/types/_vendors/pdf-lib/core/objects/PDFNull.d.ts +10 -0
- package/dist/types/_vendors/pdf-lib/core/objects/PDFNumber.d.ts +15 -0
- package/dist/types/_vendors/pdf-lib/core/objects/PDFObject.d.ts +8 -0
- package/dist/types/_vendors/pdf-lib/core/objects/PDFRawStream.d.ts +16 -0
- package/dist/types/_vendors/pdf-lib/core/objects/PDFRef.d.ts +13 -0
- package/dist/types/_vendors/pdf-lib/core/objects/PDFStream.d.ts +16 -0
- package/dist/types/_vendors/pdf-lib/core/objects/PDFString.d.ts +16 -0
- package/dist/types/_vendors/pdf-lib/core/operators/PDFOperator.d.ts +19 -0
- package/dist/types/_vendors/pdf-lib/core/operators/PDFOperatorNames.d.ts +76 -0
- package/dist/types/_vendors/pdf-lib/core/parser/BaseParser.d.ts +14 -0
- package/dist/types/_vendors/pdf-lib/core/parser/ByteStream.d.ts +26 -0
- package/dist/types/_vendors/pdf-lib/core/parser/PDFObjectParser.d.ts +31 -0
- package/dist/types/_vendors/pdf-lib/core/parser/PDFObjectStreamParser.d.ts +13 -0
- package/dist/types/_vendors/pdf-lib/core/parser/PDFParser.d.ts +46 -0
- package/dist/types/_vendors/pdf-lib/core/parser/PDFXRefStreamParser.d.ts +21 -0
- package/dist/types/_vendors/pdf-lib/core/streams/Ascii85Stream.d.ts +9 -0
- package/dist/types/_vendors/pdf-lib/core/streams/AsciiHexStream.d.ts +9 -0
- package/dist/types/_vendors/pdf-lib/core/streams/DecodeStream.d.ts +26 -0
- package/dist/types/_vendors/pdf-lib/core/streams/DecryptStream.d.ts +12 -0
- package/dist/types/_vendors/pdf-lib/core/streams/FlateStream.d.ts +13 -0
- package/dist/types/_vendors/pdf-lib/core/streams/LZWStream.d.ts +12 -0
- package/dist/types/_vendors/pdf-lib/core/streams/RunLengthStream.d.ts +8 -0
- package/dist/types/_vendors/pdf-lib/core/streams/Stream.d.ts +34 -0
- package/dist/types/_vendors/pdf-lib/core/streams/decode.d.ts +3 -0
- package/dist/types/_vendors/pdf-lib/core/structures/PDFCatalog.d.ts +27 -0
- package/dist/types/_vendors/pdf-lib/core/structures/PDFContentStream.d.ts +15 -0
- package/dist/types/_vendors/pdf-lib/core/structures/PDFCrossRefStream.d.ts +53 -0
- package/dist/types/_vendors/pdf-lib/core/structures/PDFFlateStream.d.ts +13 -0
- package/dist/types/_vendors/pdf-lib/core/structures/PDFObjectStream.d.ts +20 -0
- package/dist/types/_vendors/pdf-lib/core/structures/PDFPageLeaf.d.ts +54 -0
- package/dist/types/_vendors/pdf-lib/core/structures/PDFPageTree.d.ts +41 -0
- package/dist/types/_vendors/pdf-lib/core/syntax/CharCodes.d.ts +61 -0
- package/dist/types/_vendors/pdf-lib/core/syntax/Delimiters.d.ts +1 -0
- package/dist/types/_vendors/pdf-lib/core/syntax/Irregular.d.ts +1 -0
- package/dist/types/_vendors/pdf-lib/core/syntax/Keywords.d.ts +22 -0
- package/dist/types/_vendors/pdf-lib/core/syntax/Numeric.d.ts +3 -0
- package/dist/types/_vendors/pdf-lib/core/syntax/Whitespace.d.ts +1 -0
- package/dist/types/_vendors/pdf-lib/core/writers/PDFStreamWriter.d.ts +19 -0
- package/dist/types/_vendors/pdf-lib/core/writers/PDFWriter.d.ts +29 -0
- package/dist/types/_vendors/pdf-lib/index.d.ts +4 -0
- package/dist/types/_vendors/pdf-lib/types/fontkit.d.ts +597 -0
- package/dist/types/_vendors/pdf-lib/types/index.d.ts +25 -0
- package/dist/types/_vendors/pdf-lib/types/matrix.d.ts +21 -0
- package/dist/types/_vendors/pdf-lib/utils/Cache.d.ts +10 -0
- package/dist/types/_vendors/pdf-lib/utils/arrays.d.ts +16 -0
- package/dist/types/_vendors/pdf-lib/utils/async.d.ts +5 -0
- package/dist/types/_vendors/pdf-lib/utils/base64.d.ts +10 -0
- package/dist/types/_vendors/pdf-lib/utils/elements/Arc.d.ts +22 -0
- package/dist/types/_vendors/pdf-lib/utils/elements/Circle.d.ts +14 -0
- package/dist/types/_vendors/pdf-lib/utils/elements/Ellipse.d.ts +20 -0
- package/dist/types/_vendors/pdf-lib/utils/elements/GraphElement.d.ts +6 -0
- package/dist/types/_vendors/pdf-lib/utils/elements/Line.d.ts +23 -0
- package/dist/types/_vendors/pdf-lib/utils/elements/Plot.d.ts +11 -0
- package/dist/types/_vendors/pdf-lib/utils/elements/Point.d.ts +18 -0
- package/dist/types/_vendors/pdf-lib/utils/elements/Rectangle.d.ts +21 -0
- package/dist/types/_vendors/pdf-lib/utils/elements/Segment.d.ts +19 -0
- package/dist/types/_vendors/pdf-lib/utils/elements/index.d.ts +9 -0
- package/dist/types/_vendors/pdf-lib/utils/errors.d.ts +1 -0
- package/dist/types/_vendors/pdf-lib/utils/index.d.ts +11 -0
- package/dist/types/_vendors/pdf-lib/utils/intersections.d.ts +9 -0
- package/dist/types/_vendors/pdf-lib/utils/maths.d.ts +45 -0
- package/dist/types/_vendors/pdf-lib/utils/numbers.d.ts +23 -0
- package/dist/types/_vendors/pdf-lib/utils/objects.d.ts +15 -0
- package/dist/types/_vendors/pdf-lib/utils/pdfDocEncoding.d.ts +7 -0
- package/dist/types/_vendors/pdf-lib/utils/png.d.ts +17 -0
- package/dist/types/_vendors/pdf-lib/utils/rng.d.ts +13 -0
- package/dist/types/_vendors/pdf-lib/utils/strings.d.ts +25 -0
- package/dist/types/_vendors/pdf-lib/utils/unicode.d.ts +186 -0
- package/dist/types/_vendors/pdf-lib/utils/validators.d.ts +26 -0
- package/dist/types/_vendors/print-designer-editor/Canvas.d.ts +12 -0
- package/dist/types/_vendors/print-designer-editor/PdfmeProvider.d.ts +4 -0
- package/dist/types/_vendors/print-designer-editor/PropPanel.d.ts +10 -0
- package/dist/types/_vendors/print-designer-editor/SchemaList.d.ts +10 -0
- package/dist/types/_vendors/print-designer-editor/index.d.ts +14 -0
- package/dist/types/_vendors/print-designer-editor/plugins.d.ts +1 -0
- package/dist/types/_vendors/print-designer-editor/types.d.ts +64 -0
- package/dist/types/_vendors/print-designer-editor/useDesigner.d.ts +84 -0
- package/dist/types/_vendors/print-designer-editor/useDesignerContext.d.ts +1 -0
- package/dist/types/_vendors/print-designer-editor/utils.d.ts +9 -0
- package/dist/types/_vendors/schemas/barcodes/constants.d.ts +4 -0
- package/dist/types/_vendors/schemas/barcodes/helper.d.ts +21 -0
- package/dist/types/_vendors/schemas/barcodes/index.d.ts +4 -0
- package/dist/types/_vendors/schemas/barcodes/pdfRender.d.ts +3 -0
- package/dist/types/_vendors/schemas/barcodes/propPanel.d.ts +3 -0
- package/dist/types/_vendors/schemas/barcodes/types.d.ts +10 -0
- package/dist/types/_vendors/schemas/barcodes/uiRender.d.ts +3 -0
- package/dist/types/_vendors/schemas/checkbox/index.d.ts +6 -0
- package/dist/types/_vendors/schemas/constants.d.ts +2 -0
- package/dist/types/_vendors/schemas/date/date.d.ts +2 -0
- package/dist/types/_vendors/schemas/date/dateTime.d.ts +2 -0
- package/dist/types/_vendors/schemas/date/helper.d.ts +8 -0
- package/dist/types/_vendors/schemas/date/time.d.ts +2 -0
- package/dist/types/_vendors/schemas/date/types.d.ts +17 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/core/cell.d.ts +17 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/core/index.d.ts +2 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/core/settings-validator.d.ts +10 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/core/table.d.ts +130 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/engines/layout.engine.d.ts +66 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/engines/overflow.engine.d.ts +36 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/index.d.ts +16 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/interfaces/core/cell.interface.d.ts +13 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/interfaces/core/index.d.ts +1 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/interfaces/engines/index.d.ts +1 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/interfaces/engines/layout-engine.interface.d.ts +36 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/interfaces/index.d.ts +5 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/interfaces/rules/index.d.ts +3 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/interfaces/rules/rule-engine.interface.d.ts +21 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/interfaces/rules/rule-registry.interface.d.ts +19 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/interfaces/stores/cell-registry.interface.d.ts +12 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/interfaces/stores/index.d.ts +3 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/interfaces/stores/merge-registry.interface.d.ts +42 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/interfaces/stores/structure-store.interface.d.ts +31 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/interfaces/table/index.d.ts +1 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/interfaces/table/table.inteface.d.ts +63 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/renderers/types/renderable-types.d.ts +79 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/renderers/types/serialization.types.d.ts +46 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/expression/ast.types.d.ts +117 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/expression/compiler.d.ts +54 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/expression/evaluator.d.ts +36 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/expression/extract-deps.d.ts +8 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/expression/functions/registry.d.ts +47 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/expression/index.d.ts +20 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/expression/lexer.d.ts +36 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/expression/parser.d.ts +45 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/expression/range-resolver.d.ts +25 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/expression/scope-vocabulary.d.ts +25 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/expression/text-measurer.d.ts +88 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/expression/var-catalog.d.ts +34 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/index.d.ts +13 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/rule-engine.d.ts +36 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/rule-matcher.d.ts +28 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/rule-registry.d.ts +32 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/types/evaluation.types.d.ts +178 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/types/index.d.ts +5 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/rules/types/rule.types.d.ts +78 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/stores/cell-registry.store.d.ts +20 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/stores/merge-registry.stores.d.ts +51 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/stores/structure.store.d.ts +39 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/styles/defaults.d.ts +7 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/styles/index.d.ts +2 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/styles/resolve.d.ts +12 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/types/common.d.ts +138 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/types/index.d.ts +1 -0
- package/dist/types/_vendors/schemas/dynamicTable/engine/types/rule-target.types.d.ts +89 -0
- package/dist/types/_vendors/schemas/dynamicTable/helpers/cellSchemaMapper.d.ts +21 -0
- package/dist/types/_vendors/schemas/dynamicTable/helpers/cellStyleControls.d.ts +6 -0
- package/dist/types/_vendors/schemas/dynamicTable/helpers/domUtils.d.ts +24 -0
- package/dist/types/_vendors/schemas/dynamicTable/helpers/propPanelWidgets.d.ts +13 -0
- package/dist/types/_vendors/schemas/dynamicTable/helpers/regionStyleControls.d.ts +5 -0
- package/dist/types/_vendors/schemas/dynamicTable/helpers/toast.d.ts +5 -0
- package/dist/types/_vendors/schemas/dynamicTable/helpers/widgets/settingsWidgets.d.ts +16 -0
- package/dist/types/_vendors/schemas/dynamicTable/helpers/widgets/structureWidget.d.ts +13 -0
- package/dist/types/_vendors/schemas/dynamicTable/helpers/widgets/styleWidgets.d.ts +20 -0
- package/dist/types/_vendors/schemas/dynamicTable/index.d.ts +4 -0
- package/dist/types/_vendors/schemas/dynamicTable/instanceManager.d.ts +18 -0
- package/dist/types/_vendors/schemas/dynamicTable/pdfRender.d.ts +8 -0
- package/dist/types/_vendors/schemas/dynamicTable/propPanel.d.ts +15 -0
- package/dist/types/_vendors/schemas/dynamicTable/types.d.ts +39 -0
- package/dist/types/_vendors/schemas/dynamicTable/uiComponents/addRemoveButtons.d.ts +6 -0
- package/dist/types/_vendors/schemas/dynamicTable/uiComponents/cellResizeInteractions.d.ts +17 -0
- package/dist/types/_vendors/schemas/dynamicTable/uiComponents/cellSelection.d.ts +16 -0
- package/dist/types/_vendors/schemas/dynamicTable/uiComponents/createButton.d.ts +14 -0
- package/dist/types/_vendors/schemas/dynamicTable/uiComponents/index.d.ts +4 -0
- package/dist/types/_vendors/schemas/dynamicTable/uiRender.d.ts +26 -0
- package/dist/types/_vendors/schemas/graphics/image.d.ts +5 -0
- package/dist/types/_vendors/schemas/graphics/imagehelper.d.ts +4 -0
- package/dist/types/_vendors/schemas/graphics/signature.d.ts +5 -0
- package/dist/types/_vendors/schemas/graphics/svg.d.ts +4 -0
- package/dist/types/_vendors/schemas/index.d.ts +22 -0
- package/dist/types/_vendors/schemas/insertVariableWidget.d.ts +9 -0
- package/dist/types/_vendors/schemas/multiVariableText/helper.d.ts +3 -0
- package/dist/types/_vendors/schemas/multiVariableText/index.d.ts +4 -0
- package/dist/types/_vendors/schemas/multiVariableText/pdfRender.d.ts +3 -0
- package/dist/types/_vendors/schemas/multiVariableText/propPanel.d.ts +3 -0
- package/dist/types/_vendors/schemas/multiVariableText/types.d.ts +5 -0
- package/dist/types/_vendors/schemas/multiVariableText/uiRender.d.ts +3 -0
- package/dist/types/_vendors/schemas/radioGroup/index.d.ts +7 -0
- package/dist/types/_vendors/schemas/select/index.d.ts +7 -0
- package/dist/types/_vendors/schemas/shapes/line.d.ts +6 -0
- package/dist/types/_vendors/schemas/shapes/rectAndEllipse.d.ts +175 -0
- package/dist/types/_vendors/schemas/tables/cell.d.ts +4 -0
- package/dist/types/_vendors/schemas/tables/classes.d.ts +69 -0
- package/dist/types/_vendors/schemas/tables/dynamicTemplate.d.ts +7 -0
- package/dist/types/_vendors/schemas/tables/helper.d.ts +265 -0
- package/dist/types/_vendors/schemas/tables/index.d.ts +4 -0
- package/dist/types/_vendors/schemas/tables/pdfRender.d.ts +3 -0
- package/dist/types/_vendors/schemas/tables/propPanel.d.ts +3 -0
- package/dist/types/_vendors/schemas/tables/tableHelper.d.ts +10 -0
- package/dist/types/_vendors/schemas/tables/types.d.ts +88 -0
- package/dist/types/_vendors/schemas/tables/uiRender.d.ts +3 -0
- package/dist/types/_vendors/schemas/text/constants.d.ts +23 -0
- package/dist/types/_vendors/schemas/text/extraFormatter.d.ts +27 -0
- package/dist/types/_vendors/schemas/text/helper.d.ts +40 -0
- package/dist/types/_vendors/schemas/text/icons/index.d.ts +11 -0
- package/dist/types/_vendors/schemas/text/index.d.ts +4 -0
- package/dist/types/_vendors/schemas/text/pdfRender.d.ts +3 -0
- package/dist/types/_vendors/schemas/text/propPanel.d.ts +3 -0
- package/dist/types/_vendors/schemas/text/types.d.ts +30 -0
- package/dist/types/_vendors/schemas/text/uiRender.d.ts +11 -0
- package/dist/types/_vendors/schemas/utils.d.ts +40 -0
- package/dist/types/_vendors/schemas/variableBarcode/helper.d.ts +10 -0
- package/dist/types/_vendors/schemas/variableBarcode/index.d.ts +6 -0
- package/dist/types/_vendors/schemas/variableBarcode/pdfRender.d.ts +3 -0
- package/dist/types/_vendors/schemas/variableBarcode/propPanel.d.ts +4 -0
- package/dist/types/_vendors/schemas/variableBarcode/types.d.ts +7 -0
- package/dist/types/_vendors/schemas/variableBarcode/uiRender.d.ts +3 -0
- package/dist/types/_vendors/ui/Designer.d.ts +23 -0
- package/dist/types/_vendors/ui/Form.d.ts +26 -0
- package/dist/types/_vendors/ui/Viewer.d.ts +17 -0
- package/dist/types/_vendors/ui/class.d.ts +89 -0
- package/dist/types/_vendors/ui/components/AppContextProvider.d.ts +11 -0
- package/dist/types/_vendors/ui/components/CtlBar.d.ts +18 -0
- package/dist/types/_vendors/ui/components/Designer/Canvas/Guides.d.ts +9 -0
- package/dist/types/_vendors/ui/components/Designer/Canvas/Mask.d.ts +4 -0
- package/dist/types/_vendors/ui/components/Designer/Canvas/Moveable.d.ts +37 -0
- package/dist/types/_vendors/ui/components/Designer/Canvas/Padding.d.ts +6 -0
- package/dist/types/_vendors/ui/components/Designer/Canvas/Selecto.d.ts +10 -0
- package/dist/types/_vendors/ui/components/Designer/Canvas/index.d.ts +22 -0
- package/dist/types/_vendors/ui/components/Designer/LeftSidebar.d.ts +8 -0
- package/dist/types/_vendors/ui/components/Designer/PluginIcon.d.ts +10 -0
- package/dist/types/_vendors/ui/components/Designer/RightSidebar/DetailView/AlignWidget.d.ts +4 -0
- package/dist/types/_vendors/ui/components/Designer/RightSidebar/DetailView/ButtonGroupWidget.d.ts +4 -0
- package/dist/types/_vendors/ui/components/Designer/RightSidebar/DetailView/WidgetRenderer.d.ts +7 -0
- package/dist/types/_vendors/ui/components/Designer/RightSidebar/DetailView/index.d.ts +9 -0
- package/dist/types/_vendors/ui/components/Designer/RightSidebar/ListView/Item.d.ts +45 -0
- package/dist/types/_vendors/ui/components/Designer/RightSidebar/ListView/SelectableSortableContainer.d.ts +4 -0
- package/dist/types/_vendors/ui/components/Designer/RightSidebar/ListView/SelectableSortableItem.d.ts +14 -0
- package/dist/types/_vendors/ui/components/Designer/RightSidebar/ListView/index.d.ts +4 -0
- package/dist/types/_vendors/ui/components/Designer/RightSidebar/index.d.ts +4 -0
- package/dist/types/_vendors/ui/components/Designer/RightSidebar/layout.d.ts +15 -0
- package/dist/types/_vendors/ui/components/Designer/index.d.ts +11 -0
- package/dist/types/_vendors/ui/components/ErrorScreen.d.ts +7 -0
- package/dist/types/_vendors/ui/components/Paper.d.ts +20 -0
- package/dist/types/_vendors/ui/components/Preview.d.ts +15 -0
- package/dist/types/_vendors/ui/components/Renderer.d.ts +13 -0
- package/dist/types/_vendors/ui/components/Root.d.ts +9 -0
- package/dist/types/_vendors/ui/components/Spinner.d.ts +3 -0
- package/dist/types/_vendors/ui/components/StaticSchema.d.ts +10 -0
- package/dist/types/_vendors/ui/components/UnitPager.d.ts +10 -0
- package/dist/types/_vendors/ui/constants.d.ts +11 -0
- package/dist/types/_vendors/ui/contexts.d.ts +10 -0
- package/dist/types/_vendors/ui/helper.d.ts +73 -0
- package/dist/types/_vendors/ui/hooks.d.ts +46 -0
- package/dist/types/_vendors/ui/i18n.d.ts +3 -0
- package/dist/types/_vendors/ui/index.d.ts +4 -0
- package/dist/types/_vendors/ui/theme.d.ts +2 -0
- package/dist/types/_vendors/ui/types.d.ts +19 -0
- package/dist/types/common.d.ts +1 -2
- package/dist/types/converter.d.ts +1 -2
- package/dist/types/generator.d.ts +1 -2
- package/dist/types/index.d.ts +7 -9
- package/dist/types/manipulator.d.ts +1 -2
- package/dist/types/print-designer-editor.d.ts +1 -2
- package/dist/types/schemas.d.ts +1 -2
- package/dist/types/ui.d.ts +1 -2
- package/package.json +12 -11
- package/dist/types/common.d.ts.map +0 -1
- package/dist/types/converter.d.ts.map +0 -1
- package/dist/types/generator.d.ts.map +0 -1
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/manipulator.d.ts.map +0 -1
- package/dist/types/print-designer-editor.d.ts.map +0 -1
- package/dist/types/schemas.d.ts.map +0 -1
- package/dist/types/ui.d.ts.map +0 -1
|
@@ -0,0 +1,597 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents a glyph bounding box
|
|
3
|
+
*/
|
|
4
|
+
export interface BoundingBox {
|
|
5
|
+
minX: number /** The minimum X position in the bounding box */;
|
|
6
|
+
minY: number /** The minimum Y position in the bounding box */;
|
|
7
|
+
maxX: number /** The maxmimum X position in the bounding box */;
|
|
8
|
+
maxY: number /** The maxmimum Y position in the bounding box */;
|
|
9
|
+
width: number /** The width of the bounding box */;
|
|
10
|
+
height: number /** The height of the bounding box */;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Path objects are returned by glyphs and represent the actual vector outlines
|
|
14
|
+
* for each glyph in the font. Paths can be converted to SVG path data strings,
|
|
15
|
+
* or to functions that can be applied to render the path to a graphics context.
|
|
16
|
+
*/
|
|
17
|
+
export interface Path {
|
|
18
|
+
/**
|
|
19
|
+
* This property represents the path’s bounding box, i.e. the smallest
|
|
20
|
+
* rectangle that contains the entire path shape. This is the exact
|
|
21
|
+
* bounding box, taking into account control points that may be outside the
|
|
22
|
+
* visible shape.
|
|
23
|
+
*/
|
|
24
|
+
bbox: BoundingBox;
|
|
25
|
+
/**
|
|
26
|
+
* This property represents the path’s control box. It is like the
|
|
27
|
+
* bounding box, but it includes all points of the path, including control
|
|
28
|
+
* points of bezier segments. It is much faster to compute than the real
|
|
29
|
+
* bounding box, but less accurate if there are control points outside of the
|
|
30
|
+
* visible shape.
|
|
31
|
+
*/
|
|
32
|
+
cbox: BoundingBox;
|
|
33
|
+
/**
|
|
34
|
+
* Moves the virtual pen to the given x, y coordinates.
|
|
35
|
+
*/
|
|
36
|
+
moveTo(x: number, y: number): void;
|
|
37
|
+
/**
|
|
38
|
+
* Adds a line to the path from the current point to the
|
|
39
|
+
* given x, y coordinates.
|
|
40
|
+
*/
|
|
41
|
+
lineTo(x: number, y: number): void;
|
|
42
|
+
/**
|
|
43
|
+
* Adds a quadratic curve to the path from the current point to the
|
|
44
|
+
* given x, y coordinates using cpx, cpy as a control point.
|
|
45
|
+
*/
|
|
46
|
+
quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
|
|
47
|
+
/**
|
|
48
|
+
* Adds a bezier curve to the path from the current point to the
|
|
49
|
+
* given x, y coordinates using cp1x, cp1y and cp2x, cp2y as control points.
|
|
50
|
+
*/
|
|
51
|
+
bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
|
|
52
|
+
/**
|
|
53
|
+
* Closes the current sub-path by drawing a straight line back to the
|
|
54
|
+
* starting point.
|
|
55
|
+
*/
|
|
56
|
+
closePath(): void;
|
|
57
|
+
/**
|
|
58
|
+
* Compiles the path to a JavaScript function that can be applied with a
|
|
59
|
+
* graphics context in order to render the path.
|
|
60
|
+
*/
|
|
61
|
+
toFunction(): Function;
|
|
62
|
+
/**
|
|
63
|
+
* Converts the path to an SVG path data string.
|
|
64
|
+
*/
|
|
65
|
+
toSVG(): string;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Glyph objects represent a glyph in the font. They have various properties for
|
|
69
|
+
* accessing metrics and the actual vector path the glyph represents, and
|
|
70
|
+
* methods for rendering the glyph to a graphics context.
|
|
71
|
+
*
|
|
72
|
+
* You do not create glyph objects directly. They are created by various methods
|
|
73
|
+
* on the Font object. There are several subclasses of the base Glyph class
|
|
74
|
+
* internally that may be returned depending on the font format, but they all
|
|
75
|
+
* include the following API.
|
|
76
|
+
*/
|
|
77
|
+
export interface Glyph {
|
|
78
|
+
id: number /** The glyph's id in the font */;
|
|
79
|
+
/**
|
|
80
|
+
* An array of unicode code points that are represented by this glyph. There
|
|
81
|
+
* can be multiple code points in the case of ligatures and other glyphs that
|
|
82
|
+
* represent multiple visual characters.
|
|
83
|
+
*/
|
|
84
|
+
codePoints: number[];
|
|
85
|
+
path: Path /** Vector Path object representing the glyph */;
|
|
86
|
+
/**
|
|
87
|
+
* The Glyph’s bounding box, i.e. the rectangle that encloses the glyph
|
|
88
|
+
* outline as tightly as possible.
|
|
89
|
+
*/
|
|
90
|
+
bbox: BoundingBox;
|
|
91
|
+
/**
|
|
92
|
+
* The Glyph’s control box. This is often the same as the bounding box, but is
|
|
93
|
+
* faster to compute. Because of the way bezier curves are defined, some of
|
|
94
|
+
* the control points can be outside of the bounding box. Where bbox takes
|
|
95
|
+
* this into account, cbox does not. Thus, cbox is less accurate, but faster
|
|
96
|
+
* to compute.
|
|
97
|
+
*/
|
|
98
|
+
cbox: BoundingBox;
|
|
99
|
+
advanceWidth: number /** The Glyph's advance width */;
|
|
100
|
+
/**
|
|
101
|
+
* For COLR glyphs, which are vector based, this returns an array of objects
|
|
102
|
+
* representing the glyphs and colors for each layer in render order.
|
|
103
|
+
*/
|
|
104
|
+
layers: any[];
|
|
105
|
+
/**
|
|
106
|
+
* Renders the glyph to the given graphics context, at the specified
|
|
107
|
+
* font size.
|
|
108
|
+
*/
|
|
109
|
+
render(context: any, size: number): void;
|
|
110
|
+
/**
|
|
111
|
+
* For SBIX glyphs, which are bitmap based, this returns an object containing
|
|
112
|
+
* some properties about the image, along with the image data itself
|
|
113
|
+
* (usually PNG).
|
|
114
|
+
*/
|
|
115
|
+
getImageForSize(size: number): Uint8Array;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Represents positioning information for a glyph in a GlyphRun.
|
|
119
|
+
*/
|
|
120
|
+
export interface GlyphPosition {
|
|
121
|
+
/**
|
|
122
|
+
* The amount to move the virtual pen in the X direction after rendering
|
|
123
|
+
* this glyph.
|
|
124
|
+
*/
|
|
125
|
+
xAdvance: number;
|
|
126
|
+
/**
|
|
127
|
+
* The amount to move the virtual pen in the Y direction after rendering
|
|
128
|
+
* this glyph.
|
|
129
|
+
*/
|
|
130
|
+
yAdvance: number;
|
|
131
|
+
/**
|
|
132
|
+
* The offset from the pen position in the X direction at which to render
|
|
133
|
+
* this glyph.
|
|
134
|
+
*/
|
|
135
|
+
xOffset: number;
|
|
136
|
+
/**
|
|
137
|
+
* The offset from the pen position in the Y direction at which to render
|
|
138
|
+
* this glyph.
|
|
139
|
+
*/
|
|
140
|
+
yOffset: number;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Represents a run of Glyph and GlyphPosition objects.
|
|
144
|
+
* Returned by the Font.layout method.
|
|
145
|
+
*/
|
|
146
|
+
export interface GlyphRun {
|
|
147
|
+
/**
|
|
148
|
+
* An array of Glyph objects in the run
|
|
149
|
+
*/
|
|
150
|
+
glyphs: Glyph[];
|
|
151
|
+
/**
|
|
152
|
+
* An array of GlyphPosition objects for each glyph in the run
|
|
153
|
+
*/
|
|
154
|
+
positions: GlyphPosition[];
|
|
155
|
+
/**
|
|
156
|
+
* The script that was requested for shaping. This was either passed in or detected automatically.
|
|
157
|
+
*/
|
|
158
|
+
script: string;
|
|
159
|
+
/**
|
|
160
|
+
* The language requested for shaping, as passed in. If `null`, the default language for the
|
|
161
|
+
* script was used.
|
|
162
|
+
*/
|
|
163
|
+
language: string | null;
|
|
164
|
+
/**
|
|
165
|
+
* The direction requested for shaping, as passed in (either ltr or rtl).
|
|
166
|
+
* If `null`, the default direction of the script is used.
|
|
167
|
+
*/
|
|
168
|
+
direction: 'ltr' | 'rtl' | null;
|
|
169
|
+
/**
|
|
170
|
+
* The features requested during shaping. This is a combination of user
|
|
171
|
+
* specified features and features chosen by the shaper.
|
|
172
|
+
*/
|
|
173
|
+
features: object;
|
|
174
|
+
/**
|
|
175
|
+
* The total advance width of the run.
|
|
176
|
+
*/
|
|
177
|
+
advanceWidth: number;
|
|
178
|
+
/**
|
|
179
|
+
* The total advance height of the run.
|
|
180
|
+
*/
|
|
181
|
+
advanceHeight: number;
|
|
182
|
+
/**
|
|
183
|
+
* The bounding box containing all glyphs in the run.
|
|
184
|
+
*/
|
|
185
|
+
bbox: BoundingBox;
|
|
186
|
+
}
|
|
187
|
+
export interface SubsetStream {
|
|
188
|
+
on: (eventType: 'data' | 'end', callback: (data: Uint8Array) => any) => SubsetStream;
|
|
189
|
+
}
|
|
190
|
+
export type Subset = {
|
|
191
|
+
/**
|
|
192
|
+
* Includes the given glyph object or glyph ID in the subset.
|
|
193
|
+
* Returns the glyph's new ID in the subset.
|
|
194
|
+
*/
|
|
195
|
+
includeGlyph(glyph: number | Glyph): number;
|
|
196
|
+
} & (SubsetV1 | SubsetV2);
|
|
197
|
+
/**
|
|
198
|
+
* Compatible with https://github.com/foliojs/fontkit (v1.x)
|
|
199
|
+
*/
|
|
200
|
+
interface SubsetV1 {
|
|
201
|
+
/**
|
|
202
|
+
* Returns a stream containing the encoded font file that can be piped to a
|
|
203
|
+
* destination, such as a file.
|
|
204
|
+
*/
|
|
205
|
+
encodeStream(): SubsetStream;
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Compatible with https://github.com/foliojs/fontkit (v2.x)
|
|
209
|
+
*/
|
|
210
|
+
interface SubsetV2 {
|
|
211
|
+
/**
|
|
212
|
+
* Returns a unit8array containing the encoded font file that can be piped to a
|
|
213
|
+
* destination, such as a file.
|
|
214
|
+
*/
|
|
215
|
+
encode(): Uint8Array;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* A map of OpenType features as described in OpenType's spec:
|
|
219
|
+
* https://docs.microsoft.com/en-gb/typography/opentype/spec/featurelist.
|
|
220
|
+
*/
|
|
221
|
+
export interface OpenTypeFeatures {
|
|
222
|
+
aalt?: boolean;
|
|
223
|
+
abvf?: boolean;
|
|
224
|
+
abvm?: boolean;
|
|
225
|
+
abvs?: boolean;
|
|
226
|
+
afrc?: boolean;
|
|
227
|
+
akhn?: boolean;
|
|
228
|
+
blwf?: boolean;
|
|
229
|
+
blwm?: boolean;
|
|
230
|
+
blws?: boolean;
|
|
231
|
+
calt?: boolean;
|
|
232
|
+
case?: boolean;
|
|
233
|
+
ccmp?: boolean;
|
|
234
|
+
cfar?: boolean;
|
|
235
|
+
cjct?: boolean;
|
|
236
|
+
clig?: boolean;
|
|
237
|
+
cpct?: boolean;
|
|
238
|
+
cpsp?: boolean;
|
|
239
|
+
cswh?: boolean;
|
|
240
|
+
curs?: boolean;
|
|
241
|
+
cv01?: boolean;
|
|
242
|
+
cv02?: boolean;
|
|
243
|
+
cv03?: boolean;
|
|
244
|
+
cv04?: boolean;
|
|
245
|
+
cv05?: boolean;
|
|
246
|
+
cv06?: boolean;
|
|
247
|
+
cv07?: boolean;
|
|
248
|
+
cv08?: boolean;
|
|
249
|
+
cv09?: boolean;
|
|
250
|
+
cv10?: boolean;
|
|
251
|
+
cv11?: boolean;
|
|
252
|
+
cv22?: boolean;
|
|
253
|
+
cv23?: boolean;
|
|
254
|
+
cv24?: boolean;
|
|
255
|
+
cv25?: boolean;
|
|
256
|
+
cv26?: boolean;
|
|
257
|
+
cv27?: boolean;
|
|
258
|
+
cv28?: boolean;
|
|
259
|
+
cv29?: boolean;
|
|
260
|
+
cv30?: boolean;
|
|
261
|
+
cv31?: boolean;
|
|
262
|
+
cv32?: boolean;
|
|
263
|
+
cv33?: boolean;
|
|
264
|
+
cv34?: boolean;
|
|
265
|
+
cv35?: boolean;
|
|
266
|
+
cv36?: boolean;
|
|
267
|
+
cv37?: boolean;
|
|
268
|
+
cv38?: boolean;
|
|
269
|
+
cv39?: boolean;
|
|
270
|
+
cv40?: boolean;
|
|
271
|
+
cv41?: boolean;
|
|
272
|
+
cv42?: boolean;
|
|
273
|
+
cv43?: boolean;
|
|
274
|
+
cv44?: boolean;
|
|
275
|
+
cv45?: boolean;
|
|
276
|
+
cv46?: boolean;
|
|
277
|
+
cv47?: boolean;
|
|
278
|
+
cv48?: boolean;
|
|
279
|
+
cv49?: boolean;
|
|
280
|
+
cv50?: boolean;
|
|
281
|
+
cv51?: boolean;
|
|
282
|
+
cv52?: boolean;
|
|
283
|
+
cv53?: boolean;
|
|
284
|
+
cv54?: boolean;
|
|
285
|
+
cv55?: boolean;
|
|
286
|
+
cv56?: boolean;
|
|
287
|
+
cv57?: boolean;
|
|
288
|
+
cv58?: boolean;
|
|
289
|
+
cv59?: boolean;
|
|
290
|
+
cv60?: boolean;
|
|
291
|
+
cv61?: boolean;
|
|
292
|
+
cv62?: boolean;
|
|
293
|
+
cv63?: boolean;
|
|
294
|
+
cv64?: boolean;
|
|
295
|
+
cv65?: boolean;
|
|
296
|
+
cv66?: boolean;
|
|
297
|
+
cv67?: boolean;
|
|
298
|
+
cv68?: boolean;
|
|
299
|
+
cv69?: boolean;
|
|
300
|
+
cv70?: boolean;
|
|
301
|
+
cv71?: boolean;
|
|
302
|
+
cv72?: boolean;
|
|
303
|
+
cv73?: boolean;
|
|
304
|
+
cv74?: boolean;
|
|
305
|
+
cv75?: boolean;
|
|
306
|
+
cv76?: boolean;
|
|
307
|
+
cv77?: boolean;
|
|
308
|
+
cv78?: boolean;
|
|
309
|
+
cv79?: boolean;
|
|
310
|
+
cv80?: boolean;
|
|
311
|
+
cv81?: boolean;
|
|
312
|
+
cv82?: boolean;
|
|
313
|
+
cv83?: boolean;
|
|
314
|
+
cv84?: boolean;
|
|
315
|
+
cv85?: boolean;
|
|
316
|
+
cv86?: boolean;
|
|
317
|
+
cv87?: boolean;
|
|
318
|
+
cv88?: boolean;
|
|
319
|
+
cv89?: boolean;
|
|
320
|
+
cv90?: boolean;
|
|
321
|
+
cv91?: boolean;
|
|
322
|
+
cv92?: boolean;
|
|
323
|
+
cv93?: boolean;
|
|
324
|
+
cv94?: boolean;
|
|
325
|
+
cv95?: boolean;
|
|
326
|
+
cv96?: boolean;
|
|
327
|
+
cv97?: boolean;
|
|
328
|
+
cv98?: boolean;
|
|
329
|
+
cv99?: boolean;
|
|
330
|
+
c2pc?: boolean;
|
|
331
|
+
c2sc?: boolean;
|
|
332
|
+
dist?: boolean;
|
|
333
|
+
dlig?: boolean;
|
|
334
|
+
dnom?: boolean;
|
|
335
|
+
dtls?: boolean;
|
|
336
|
+
expt?: boolean;
|
|
337
|
+
falt?: boolean;
|
|
338
|
+
fin2?: boolean;
|
|
339
|
+
fin3?: boolean;
|
|
340
|
+
fina?: boolean;
|
|
341
|
+
flac?: boolean;
|
|
342
|
+
frac?: boolean;
|
|
343
|
+
fwid?: boolean;
|
|
344
|
+
half?: boolean;
|
|
345
|
+
haln?: boolean;
|
|
346
|
+
halt?: boolean;
|
|
347
|
+
hist?: boolean;
|
|
348
|
+
hkna?: boolean;
|
|
349
|
+
hlig?: boolean;
|
|
350
|
+
hngl?: boolean;
|
|
351
|
+
hojo?: boolean;
|
|
352
|
+
hwid?: boolean;
|
|
353
|
+
init?: boolean;
|
|
354
|
+
isol?: boolean;
|
|
355
|
+
ital?: boolean;
|
|
356
|
+
jalt?: boolean;
|
|
357
|
+
jp78?: boolean;
|
|
358
|
+
jp83?: boolean;
|
|
359
|
+
jp90?: boolean;
|
|
360
|
+
jp04?: boolean;
|
|
361
|
+
kern?: boolean;
|
|
362
|
+
lfbd?: boolean;
|
|
363
|
+
liga?: boolean;
|
|
364
|
+
ljmo?: boolean;
|
|
365
|
+
lnum?: boolean;
|
|
366
|
+
locl?: boolean;
|
|
367
|
+
ltra?: boolean;
|
|
368
|
+
ltrm?: boolean;
|
|
369
|
+
mark?: boolean;
|
|
370
|
+
med2?: boolean;
|
|
371
|
+
medi?: boolean;
|
|
372
|
+
mgrk?: boolean;
|
|
373
|
+
mkmk?: boolean;
|
|
374
|
+
mset?: boolean;
|
|
375
|
+
nalt?: boolean;
|
|
376
|
+
nlck?: boolean;
|
|
377
|
+
nukt?: boolean;
|
|
378
|
+
numr?: boolean;
|
|
379
|
+
onum?: boolean;
|
|
380
|
+
opbd?: boolean;
|
|
381
|
+
ordn?: boolean;
|
|
382
|
+
ornm?: boolean;
|
|
383
|
+
palt?: boolean;
|
|
384
|
+
pcap?: boolean;
|
|
385
|
+
pkna?: boolean;
|
|
386
|
+
pnum?: boolean;
|
|
387
|
+
pref?: boolean;
|
|
388
|
+
pres?: boolean;
|
|
389
|
+
pstf?: boolean;
|
|
390
|
+
psts?: boolean;
|
|
391
|
+
pwid?: boolean;
|
|
392
|
+
qwid?: boolean;
|
|
393
|
+
rand?: boolean;
|
|
394
|
+
rclt?: boolean;
|
|
395
|
+
rkrf?: boolean;
|
|
396
|
+
rlig?: boolean;
|
|
397
|
+
rphf?: boolean;
|
|
398
|
+
rtbd?: boolean;
|
|
399
|
+
rtla?: boolean;
|
|
400
|
+
rtlm?: boolean;
|
|
401
|
+
ruby?: boolean;
|
|
402
|
+
rvrn?: boolean;
|
|
403
|
+
salt?: boolean;
|
|
404
|
+
sinf?: boolean;
|
|
405
|
+
size?: boolean;
|
|
406
|
+
smcp?: boolean;
|
|
407
|
+
smpl?: boolean;
|
|
408
|
+
ss01?: boolean;
|
|
409
|
+
ss02?: boolean;
|
|
410
|
+
ss03?: boolean;
|
|
411
|
+
ss04?: boolean;
|
|
412
|
+
ss05?: boolean;
|
|
413
|
+
ss06?: boolean;
|
|
414
|
+
ss07?: boolean;
|
|
415
|
+
ss08?: boolean;
|
|
416
|
+
ss09?: boolean;
|
|
417
|
+
ss10?: boolean;
|
|
418
|
+
ss11?: boolean;
|
|
419
|
+
ss12?: boolean;
|
|
420
|
+
ss13?: boolean;
|
|
421
|
+
ss14?: boolean;
|
|
422
|
+
ss15?: boolean;
|
|
423
|
+
ss16?: boolean;
|
|
424
|
+
ss17?: boolean;
|
|
425
|
+
ss18?: boolean;
|
|
426
|
+
ss19?: boolean;
|
|
427
|
+
ss20?: boolean;
|
|
428
|
+
ssty?: boolean;
|
|
429
|
+
stch?: boolean;
|
|
430
|
+
subs?: boolean;
|
|
431
|
+
sups?: boolean;
|
|
432
|
+
swsh?: boolean;
|
|
433
|
+
titl?: boolean;
|
|
434
|
+
tjmo?: boolean;
|
|
435
|
+
tnam?: boolean;
|
|
436
|
+
tnum?: boolean;
|
|
437
|
+
trad?: boolean;
|
|
438
|
+
twid?: boolean;
|
|
439
|
+
unic?: boolean;
|
|
440
|
+
valt?: boolean;
|
|
441
|
+
vatu?: boolean;
|
|
442
|
+
vert?: boolean;
|
|
443
|
+
vhal?: boolean;
|
|
444
|
+
vjmo?: boolean;
|
|
445
|
+
vkna?: boolean;
|
|
446
|
+
vkrn?: boolean;
|
|
447
|
+
vpal?: boolean;
|
|
448
|
+
vrt2?: boolean;
|
|
449
|
+
vrtr?: boolean;
|
|
450
|
+
zero?: boolean;
|
|
451
|
+
}
|
|
452
|
+
/**
|
|
453
|
+
* A map of Apple Advanced Typography (AAT) as decribed by Apple’s TrueType
|
|
454
|
+
* Reference manual:
|
|
455
|
+
* https://developer.apple.com/fonts/TrueType-Reference-Manual/RM06/Chap6AATIntro.html
|
|
456
|
+
*/
|
|
457
|
+
export interface AATFeatures {
|
|
458
|
+
acnt?: boolean;
|
|
459
|
+
ankr?: boolean;
|
|
460
|
+
avar?: boolean;
|
|
461
|
+
bdat?: boolean;
|
|
462
|
+
bhed?: boolean;
|
|
463
|
+
bloc?: boolean;
|
|
464
|
+
bsln?: boolean;
|
|
465
|
+
cmap?: boolean;
|
|
466
|
+
cvar?: boolean;
|
|
467
|
+
cvt?: boolean;
|
|
468
|
+
EBSC?: boolean;
|
|
469
|
+
fdsc?: boolean;
|
|
470
|
+
feat?: boolean;
|
|
471
|
+
fmtx?: boolean;
|
|
472
|
+
fond?: boolean;
|
|
473
|
+
fpgm?: boolean;
|
|
474
|
+
fvar?: boolean;
|
|
475
|
+
gasp?: boolean;
|
|
476
|
+
gcid?: boolean;
|
|
477
|
+
glyf?: boolean;
|
|
478
|
+
gvar?: boolean;
|
|
479
|
+
hdmx?: boolean;
|
|
480
|
+
head?: boolean;
|
|
481
|
+
hhea?: boolean;
|
|
482
|
+
hmtx?: boolean;
|
|
483
|
+
just?: boolean;
|
|
484
|
+
kern?: boolean;
|
|
485
|
+
kerx?: boolean;
|
|
486
|
+
lcar?: boolean;
|
|
487
|
+
loca?: boolean;
|
|
488
|
+
ltag?: boolean;
|
|
489
|
+
maxp?: boolean;
|
|
490
|
+
meta?: boolean;
|
|
491
|
+
mort?: boolean;
|
|
492
|
+
morx?: boolean;
|
|
493
|
+
name?: boolean;
|
|
494
|
+
opbd?: boolean;
|
|
495
|
+
'OS/2'?: boolean;
|
|
496
|
+
post?: boolean;
|
|
497
|
+
prep?: boolean;
|
|
498
|
+
prop?: boolean;
|
|
499
|
+
sbix?: boolean;
|
|
500
|
+
trak?: boolean;
|
|
501
|
+
vhea?: boolean;
|
|
502
|
+
vmtx?: boolean;
|
|
503
|
+
xref?: boolean;
|
|
504
|
+
Zapf?: boolean;
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* The features is an object mapping OpenType features to a boolean
|
|
508
|
+
* enabling or disabling each. If this is an AAT font,
|
|
509
|
+
* the OpenType feature tags are mapped to AAT features.
|
|
510
|
+
*/
|
|
511
|
+
export interface TypeFeatures extends OpenTypeFeatures, AATFeatures {
|
|
512
|
+
[key: string]: boolean | undefined;
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* There are several different types of font objects that are returned by
|
|
516
|
+
* fontkit depending on the font format. They all inherit from the TTFFont class
|
|
517
|
+
* and have the same public API.
|
|
518
|
+
*/
|
|
519
|
+
export interface Font {
|
|
520
|
+
postscriptName: string | null;
|
|
521
|
+
fullName: string | null;
|
|
522
|
+
familyName: string | null;
|
|
523
|
+
subfamilyName: string | null;
|
|
524
|
+
copyright: string | null;
|
|
525
|
+
version: string | null;
|
|
526
|
+
unitsPerEm: number /** Size of the font’s internal coordinate grid */;
|
|
527
|
+
ascent: number /** The font’s ascender */;
|
|
528
|
+
descent: number /** The font’s descender */;
|
|
529
|
+
lineGap: number /** Amount of space that should be included between lines */;
|
|
530
|
+
underlinePosition: number /** Offset from the normal underline position that should be used */;
|
|
531
|
+
underlineThickness: number /** Weight of the underline that should be used */;
|
|
532
|
+
italicAngle: number /** If this is an italic font, the angle the cursor should be drawn at to match the font design */;
|
|
533
|
+
capHeight: number /** Height of capital letters above the baseline. */;
|
|
534
|
+
xHeight: number /** Height of lower case letters. */;
|
|
535
|
+
bbox: BoundingBox /** Font’s bounding box, i.e. the box that encloses all glyphs in the font */;
|
|
536
|
+
numGlyphs: number /** Number of glyphs in the font */;
|
|
537
|
+
characterSet: number[] /** Array of all of the unicode code points supported by the font */;
|
|
538
|
+
availableFeatures: (keyof TypeFeatures)[] /** Array of all OpenType feature tags (or mapped AAT tags) supported by the font */;
|
|
539
|
+
cff: any;
|
|
540
|
+
'OS/2': {
|
|
541
|
+
sFamilyClass: number;
|
|
542
|
+
};
|
|
543
|
+
head: {
|
|
544
|
+
macStyle: {
|
|
545
|
+
italic: boolean;
|
|
546
|
+
};
|
|
547
|
+
};
|
|
548
|
+
post: {
|
|
549
|
+
isFixedPitch: boolean;
|
|
550
|
+
};
|
|
551
|
+
/**
|
|
552
|
+
* Maps a single unicode code point (number) to a Glyph object.
|
|
553
|
+
* Does not perform any advanced substitutions (there is no context to do so).
|
|
554
|
+
*/
|
|
555
|
+
glyphForCodePoint(codePoint: number): Glyph;
|
|
556
|
+
/**
|
|
557
|
+
* Returns whether there is glyph in the font for the given
|
|
558
|
+
* unicode code point.
|
|
559
|
+
*/
|
|
560
|
+
hasGlyphForCodePoint(codePoint: number): boolean;
|
|
561
|
+
/**
|
|
562
|
+
* This method returns an array of Glyph objects for the given string.
|
|
563
|
+
* This is only a one-to-one mapping from characters to glyphs. For most uses,
|
|
564
|
+
* you should use Font.layout, which provides a much more advanced mapping
|
|
565
|
+
* supporting AAT and OpenType shaping.
|
|
566
|
+
*/
|
|
567
|
+
glyphsForString(str: string): Glyph[];
|
|
568
|
+
/**
|
|
569
|
+
* Returns the advance width (described above) for a single glyph id.
|
|
570
|
+
*/
|
|
571
|
+
widthOfGlyph(glyphId: number): number;
|
|
572
|
+
/**
|
|
573
|
+
* This method returns a GlyphRun object, which includes an array of Glyphs
|
|
574
|
+
* and GlyphPositions for the given string. Glyph objects are described below.
|
|
575
|
+
* GlyphPosition objects include 4 properties: xAdvance, yAdvance, xOffset,
|
|
576
|
+
* and yOffset.
|
|
577
|
+
*
|
|
578
|
+
* The features parameter is an array of OpenType feature tags to be applied
|
|
579
|
+
* in addition to the default set. If this is an AAT font, the OpenType
|
|
580
|
+
* feature tags are mapped to AAT features.
|
|
581
|
+
*/
|
|
582
|
+
layout(str: string, features?: TypeFeatures | (keyof TypeFeatures)[]): GlyphRun;
|
|
583
|
+
/**
|
|
584
|
+
* Returns a glyph object for the given glyph id. You can pass the array of
|
|
585
|
+
* code points this glyph represents for your use later, and it will be
|
|
586
|
+
* stored in the glyph object.
|
|
587
|
+
*/
|
|
588
|
+
getGlyph(glyphId: number, codePoints?: number[]): Glyph;
|
|
589
|
+
/**
|
|
590
|
+
* Returns a Subset object for this font.
|
|
591
|
+
*/
|
|
592
|
+
createSubset(): Subset;
|
|
593
|
+
}
|
|
594
|
+
export interface Fontkit {
|
|
595
|
+
create(buffer: Uint8Array, postscriptName?: string): Font;
|
|
596
|
+
}
|
|
597
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import Arc from '../utils/elements/Arc';
|
|
2
|
+
import Circle from '../utils/elements/Circle';
|
|
3
|
+
import Ellipse from '../utils/elements/Ellipse';
|
|
4
|
+
import Line from '../utils/elements/Line';
|
|
5
|
+
import Plot from '../utils/elements/Plot';
|
|
6
|
+
import Point from '../utils/elements/Point';
|
|
7
|
+
import Rectangle from '../utils/elements/Rectangle';
|
|
8
|
+
import Segment from '../utils/elements/Segment';
|
|
9
|
+
export type { TransformationMatrix } from './matrix';
|
|
10
|
+
export type Size = {
|
|
11
|
+
width: number;
|
|
12
|
+
height: number;
|
|
13
|
+
};
|
|
14
|
+
export type Coordinates = {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
};
|
|
18
|
+
export type GraphicElement = Arc | Circle | Ellipse | Line | Plot | Point | Rectangle | Segment;
|
|
19
|
+
export type Space = {
|
|
20
|
+
topLeft: Coordinates;
|
|
21
|
+
topRight: Coordinates;
|
|
22
|
+
bottomRight: Coordinates;
|
|
23
|
+
bottomLeft: Coordinates;
|
|
24
|
+
};
|
|
25
|
+
export type LinkElement = Rectangle | Ellipse;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A transformation matrix according to section `8.3.3 Common Transformations`
|
|
3
|
+
* of the PDF specification (page 117).
|
|
4
|
+
*
|
|
5
|
+
* To cite from the spec:
|
|
6
|
+
*
|
|
7
|
+
* * Translations shall be specified as `[1 0 0 1 tx ty]`, where `tx` and
|
|
8
|
+
* `ty` shall be the distances to translate the origin of the coordinate
|
|
9
|
+
* system in the horizontal and vertical dimensions, respectively.
|
|
10
|
+
* * Scaling shall be obtained by `[sx 0 0 sy 0 0]`. This scales the
|
|
11
|
+
* coordinates so that 1 unit in the horizontal and vertical dimensions of
|
|
12
|
+
* the new coordinate system is the same size as `sx` and `sy` units,
|
|
13
|
+
* respectively, in the previous coordinate system.
|
|
14
|
+
* * Rotations shall be produced by `[cos(q) sin(q) -sin(q) cos(q) 0 0]`,
|
|
15
|
+
* which has the effect of rotating the coordinate system axes by an angle
|
|
16
|
+
* `q` counter clockwise.
|
|
17
|
+
* * Skew shall be specified by `[1 tan(a) tan(b) 1 0 0]`, which skews the
|
|
18
|
+
* x-axis by an angle `a` and the y axis by an angle `b`.
|
|
19
|
+
*/
|
|
20
|
+
export type TransformationMatrix = [number, number, number, number, number, number];
|
|
21
|
+
export declare const identityMatrix: TransformationMatrix;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare class Cache<T> {
|
|
2
|
+
static readonly populatedBy: <T_1>(populate: () => T_1) => Cache<T_1>;
|
|
3
|
+
private readonly populate;
|
|
4
|
+
private value;
|
|
5
|
+
private constructor();
|
|
6
|
+
getValue(): T | undefined;
|
|
7
|
+
access(): T;
|
|
8
|
+
invalidate(): void;
|
|
9
|
+
}
|
|
10
|
+
export default Cache;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare const last: <T>(array: T[]) => T;
|
|
2
|
+
export declare const typedArrayFor: (value: string | Uint8Array) => Uint8Array;
|
|
3
|
+
export declare const mergeIntoTypedArray: (...arrays: (string | Uint8Array)[]) => Uint8Array<ArrayBuffer>;
|
|
4
|
+
export declare const mergeUint8Arrays: (arrays: Uint8Array[]) => Uint8Array;
|
|
5
|
+
export declare const arrayAsString: (array: Uint8Array | number[]) => string;
|
|
6
|
+
export declare const byAscendingId: <T extends {
|
|
7
|
+
id: any;
|
|
8
|
+
}>(a: T, b: T) => number;
|
|
9
|
+
export declare const sortedUniq: <T>(array: T[], indexer: (elem: T) => any) => T[];
|
|
10
|
+
export declare const isArrayEqual: <T>(arr1: ArrayLike<T>, arr2: ArrayLike<T>) => boolean;
|
|
11
|
+
export declare const reverseArray: (array: Uint8Array) => Uint8Array<ArrayBufferLike>;
|
|
12
|
+
export declare const sum: (array: number[] | Uint8Array) => number;
|
|
13
|
+
export declare const range: (start: number, end: number) => number[];
|
|
14
|
+
export declare const pluckIndices: <T>(arr: T[], indices: number[]) => T[];
|
|
15
|
+
export declare const canBeConvertedToUint8Array: (input: any) => input is string | ArrayBuffer | Uint8Array;
|
|
16
|
+
export declare const toUint8Array: (input: string | ArrayBuffer | Uint8Array) => Uint8Array<ArrayBufferLike>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const encodeToBase64: (bytes: Uint8Array) => string;
|
|
2
|
+
export declare const decodeFromBase64: (base64: string) => Uint8Array;
|
|
3
|
+
/**
|
|
4
|
+
* If the `dataUri` input is a data URI, then the data URI prefix must not be
|
|
5
|
+
* longer than 100 characters, or this function will fail to decode it.
|
|
6
|
+
*
|
|
7
|
+
* @param dataUri a base64 data URI or plain base64 string
|
|
8
|
+
* @returns a Uint8Array containing the decoded input
|
|
9
|
+
*/
|
|
10
|
+
export declare const decodeFromBase64DataUri: (dataUri: string) => Uint8Array;
|