postext 1.63.3 → 1.63.5
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/bundle/codec/files.d.ts +20 -0
- package/dist/bundle/codec/files.d.ts.map +1 -0
- package/dist/bundle/codec/files.js +92 -0
- package/dist/bundle/codec/files.js.map +1 -0
- package/dist/bundle/codec/plan.d.ts +114 -0
- package/dist/bundle/codec/plan.d.ts.map +1 -0
- package/dist/bundle/codec/plan.js +367 -0
- package/dist/bundle/codec/plan.js.map +1 -0
- package/dist/bundle/codec/read.d.ts +92 -0
- package/dist/bundle/codec/read.d.ts.map +1 -0
- package/dist/bundle/codec/read.js +249 -0
- package/dist/bundle/codec/read.js.map +1 -0
- package/dist/bundle/codec.d.ts +6 -218
- package/dist/bundle/codec.d.ts.map +1 -1
- package/dist/bundle/codec.js +3 -699
- package/dist/bundle/codec.js.map +1 -1
- package/dist/bundle/manifest/entries.d.ts +25 -0
- package/dist/bundle/manifest/entries.d.ts.map +1 -0
- package/dist/bundle/manifest/entries.js +108 -0
- package/dist/bundle/manifest/entries.js.map +1 -0
- package/dist/bundle/manifest/fileNames.d.ts +38 -0
- package/dist/bundle/manifest/fileNames.d.ts.map +1 -0
- package/dist/bundle/manifest/fileNames.js +143 -0
- package/dist/bundle/manifest/fileNames.js.map +1 -0
- package/dist/bundle/manifest/locale.d.ts +61 -0
- package/dist/bundle/manifest/locale.d.ts.map +1 -0
- package/dist/bundle/manifest/locale.js +216 -0
- package/dist/bundle/manifest/locale.js.map +1 -0
- package/dist/bundle/manifest/sizes.d.ts +18 -0
- package/dist/bundle/manifest/sizes.d.ts.map +1 -0
- package/dist/bundle/manifest/sizes.js +257 -0
- package/dist/bundle/manifest/sizes.js.map +1 -0
- package/dist/bundle/manifest/validation.d.ts +10 -0
- package/dist/bundle/manifest/validation.d.ts.map +1 -0
- package/dist/bundle/manifest/validation.js +114 -0
- package/dist/bundle/manifest/validation.js.map +1 -0
- package/dist/bundle/manifest.d.ts +7 -139
- package/dist/bundle/manifest.d.ts.map +1 -1
- package/dist/bundle/manifest.js +5 -829
- package/dist/bundle/manifest.js.map +1 -1
- package/dist/canvas-backend/blockRender/block.d.ts +5 -0
- package/dist/canvas-backend/blockRender/block.d.ts.map +1 -0
- package/dist/canvas-backend/blockRender/block.js +240 -0
- package/dist/canvas-backend/blockRender/block.js.map +1 -0
- package/dist/canvas-backend/blockRender/lines.d.ts +16 -0
- package/dist/canvas-backend/blockRender/lines.d.ts.map +1 -0
- package/dist/canvas-backend/blockRender/lines.js +192 -0
- package/dist/canvas-backend/blockRender/lines.js.map +1 -0
- package/dist/canvas-backend/blockRender/segments.d.ts +54 -0
- package/dist/canvas-backend/blockRender/segments.d.ts.map +1 -0
- package/dist/canvas-backend/blockRender/segments.js +311 -0
- package/dist/canvas-backend/blockRender/segments.js.map +1 -0
- package/dist/canvas-backend/blockRender.d.ts +2 -7
- package/dist/canvas-backend/blockRender.d.ts.map +1 -1
- package/dist/canvas-backend/blockRender.js +3 -727
- package/dist/canvas-backend/blockRender.js.map +1 -1
- package/dist/canvas-backend/renderResourceBlock/block.d.ts +9 -0
- package/dist/canvas-backend/renderResourceBlock/block.d.ts.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/block.js +185 -0
- package/dist/canvas-backend/renderResourceBlock/block.js.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/images.d.ts +67 -0
- package/dist/canvas-backend/renderResourceBlock/images.d.ts.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/images.js +224 -0
- package/dist/canvas-backend/renderResourceBlock/images.js.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/overlays.d.ts +10 -0
- package/dist/canvas-backend/renderResourceBlock/overlays.d.ts.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/overlays.js +107 -0
- package/dist/canvas-backend/renderResourceBlock/overlays.js.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/table.d.ts +3 -0
- package/dist/canvas-backend/renderResourceBlock/table.d.ts.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/table.js +143 -0
- package/dist/canvas-backend/renderResourceBlock/table.js.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/text.d.ts +11 -0
- package/dist/canvas-backend/renderResourceBlock/text.d.ts.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/text.js +141 -0
- package/dist/canvas-backend/renderResourceBlock/text.js.map +1 -0
- package/dist/canvas-backend/renderResourceBlock.d.ts +4 -81
- package/dist/canvas-backend/renderResourceBlock.d.ts.map +1 -1
- package/dist/canvas-backend/renderResourceBlock.js +3 -777
- package/dist/canvas-backend/renderResourceBlock.js.map +1 -1
- package/dist/canvas-backend/verticalText/alternates.d.ts +47 -0
- package/dist/canvas-backend/verticalText/alternates.d.ts.map +1 -0
- package/dist/canvas-backend/verticalText/alternates.js +240 -0
- package/dist/canvas-backend/verticalText/alternates.js.map +1 -0
- package/dist/canvas-backend/verticalText/painter.d.ts +58 -0
- package/dist/canvas-backend/verticalText/painter.d.ts.map +1 -0
- package/dist/canvas-backend/verticalText/painter.js +329 -0
- package/dist/canvas-backend/verticalText/painter.js.map +1 -0
- package/dist/canvas-backend/verticalText.d.ts +4 -101
- package/dist/canvas-backend/verticalText.d.ts.map +1 -1
- package/dist/canvas-backend/verticalText.js +2 -562
- package/dist/canvas-backend/verticalText.js.map +1 -1
- package/dist/checks/contrast/colours.d.ts +64 -0
- package/dist/checks/contrast/colours.d.ts.map +1 -0
- package/dist/checks/contrast/colours.js +101 -0
- package/dist/checks/contrast/colours.js.map +1 -0
- package/dist/checks/contrast/document.d.ts +17 -0
- package/dist/checks/contrast/document.d.ts.map +1 -0
- package/dist/checks/contrast/document.js +132 -0
- package/dist/checks/contrast/document.js.map +1 -0
- package/dist/checks/contrast/pairs.d.ts +10 -0
- package/dist/checks/contrast/pairs.d.ts.map +1 -0
- package/dist/checks/contrast/pairs.js +462 -0
- package/dist/checks/contrast/pairs.js.map +1 -0
- package/dist/checks/contrast/types.d.ts +114 -0
- package/dist/checks/contrast/types.d.ts.map +1 -0
- package/dist/checks/contrast/types.js +2 -0
- package/dist/checks/contrast/types.js.map +1 -0
- package/dist/checks/contrast.d.ts +5 -170
- package/dist/checks/contrast.d.ts.map +1 -1
- package/dist/checks/contrast.js +3 -686
- package/dist/checks/contrast.js.map +1 -1
- package/dist/comics/layoutPage/letterPanels.d.ts +38 -0
- package/dist/comics/layoutPage/letterPanels.d.ts.map +1 -0
- package/dist/comics/layoutPage/letterPanels.js +146 -0
- package/dist/comics/layoutPage/letterPanels.js.map +1 -0
- package/dist/comics/layoutPage/letteringStyle.d.ts +31 -0
- package/dist/comics/layoutPage/letteringStyle.d.ts.map +1 -0
- package/dist/comics/layoutPage/letteringStyle.js +88 -0
- package/dist/comics/layoutPage/letteringStyle.js.map +1 -0
- package/dist/comics/layoutPage/records.d.ts +25 -0
- package/dist/comics/layoutPage/records.d.ts.map +1 -0
- package/dist/comics/layoutPage/records.js +36 -0
- package/dist/comics/layoutPage/records.js.map +1 -0
- package/dist/comics/layoutPage/settings.d.ts +64 -0
- package/dist/comics/layoutPage/settings.d.ts.map +1 -0
- package/dist/comics/layoutPage/settings.js +168 -0
- package/dist/comics/layoutPage/settings.js.map +1 -0
- package/dist/comics/layoutPage/zones.d.ts +79 -0
- package/dist/comics/layoutPage/zones.d.ts.map +1 -0
- package/dist/comics/layoutPage/zones.js +179 -0
- package/dist/comics/layoutPage/zones.js.map +1 -0
- package/dist/comics/layoutPage.d.ts +8 -113
- package/dist/comics/layoutPage.d.ts.map +1 -1
- package/dist/comics/layoutPage.js +12 -603
- package/dist/comics/layoutPage.js.map +1 -1
- package/dist/comics/lettering/letter/variants.d.ts +28 -0
- package/dist/comics/lettering/letter/variants.d.ts.map +1 -0
- package/dist/comics/lettering/letter/variants.js +269 -0
- package/dist/comics/lettering/letter/variants.js.map +1 -0
- package/dist/comics/lettering/letter.d.ts +32 -1
- package/dist/comics/lettering/letter.d.ts.map +1 -1
- package/dist/comics/lettering/letter.js +8 -270
- package/dist/comics/lettering/letter.js.map +1 -1
- package/dist/comics/lettering/shape-text/breaks.d.ts +53 -0
- package/dist/comics/lettering/shape-text/breaks.d.ts.map +1 -0
- package/dist/comics/lettering/shape-text/breaks.js +217 -0
- package/dist/comics/lettering/shape-text/breaks.js.map +1 -0
- package/dist/comics/lettering/shape-text/measure.d.ts +20 -0
- package/dist/comics/lettering/shape-text/measure.d.ts.map +1 -0
- package/dist/comics/lettering/shape-text/measure.js +160 -0
- package/dist/comics/lettering/shape-text/measure.js.map +1 -0
- package/dist/comics/lettering/shape-text/ruby.d.ts +28 -0
- package/dist/comics/lettering/shape-text/ruby.d.ts.map +1 -0
- package/dist/comics/lettering/shape-text/ruby.js +173 -0
- package/dist/comics/lettering/shape-text/ruby.js.map +1 -0
- package/dist/comics/lettering/shape-text.d.ts +7 -6
- package/dist/comics/lettering/shape-text.d.ts.map +1 -1
- package/dist/comics/lettering/shape-text.js +10 -536
- package/dist/comics/lettering/shape-text.js.map +1 -1
- package/dist/composed/overlap/ink.d.ts +48 -0
- package/dist/composed/overlap/ink.d.ts.map +1 -0
- package/dist/composed/overlap/ink.js +180 -0
- package/dist/composed/overlap/ink.js.map +1 -0
- package/dist/composed/overlap/moves.d.ts +97 -0
- package/dist/composed/overlap/moves.d.ts.map +1 -0
- package/dist/composed/overlap/moves.js +191 -0
- package/dist/composed/overlap/moves.js.map +1 -0
- package/dist/composed/overlap.d.ts +2 -2
- package/dist/composed/overlap.d.ts.map +1 -1
- package/dist/composed/overlap.js +3 -367
- package/dist/composed/overlap.js.map +1 -1
- package/dist/composed/sourceMap/chains.d.ts +27 -0
- package/dist/composed/sourceMap/chains.d.ts.map +1 -0
- package/dist/composed/sourceMap/chains.js +176 -0
- package/dist/composed/sourceMap/chains.js.map +1 -0
- package/dist/composed/sourceMap/frames.d.ts +19 -0
- package/dist/composed/sourceMap/frames.d.ts.map +1 -0
- package/dist/composed/sourceMap/frames.js +143 -0
- package/dist/composed/sourceMap/frames.js.map +1 -0
- package/dist/composed/sourceMap/text.d.ts +52 -0
- package/dist/composed/sourceMap/text.d.ts.map +1 -0
- package/dist/composed/sourceMap/text.js +200 -0
- package/dist/composed/sourceMap/text.js.map +1 -0
- package/dist/composed/sourceMap.d.ts +22 -1
- package/dist/composed/sourceMap.d.ts.map +1 -1
- package/dist/composed/sourceMap.js +7 -511
- package/dist/composed/sourceMap.js.map +1 -1
- package/dist/composed/types/frames.d.ts +290 -0
- package/dist/composed/types/frames.d.ts.map +1 -0
- package/dist/composed/types/frames.js +2 -0
- package/dist/composed/types/frames.js.map +1 -0
- package/dist/composed/types/resolved.d.ts +207 -0
- package/dist/composed/types/resolved.d.ts.map +1 -0
- package/dist/composed/types/resolved.js +2 -0
- package/dist/composed/types/resolved.js.map +1 -0
- package/dist/composed/types/templates.d.ts +152 -0
- package/dist/composed/types/templates.d.ts.map +1 -0
- package/dist/composed/types/templates.js +2 -0
- package/dist/composed/types/templates.js.map +1 -0
- package/dist/composed/types.d.ts +3 -641
- package/dist/composed/types.d.ts.map +1 -1
- package/dist/composed/types.js +8 -0
- package/dist/composed/types.js.map +1 -1
- package/dist/defaults/boxes/calloutStyles/inherit.d.ts +15 -0
- package/dist/defaults/boxes/calloutStyles/inherit.d.ts.map +1 -0
- package/dist/defaults/boxes/calloutStyles/inherit.js +64 -0
- package/dist/defaults/boxes/calloutStyles/inherit.js.map +1 -0
- package/dist/defaults/boxes/calloutStyles/resolve.d.ts +7 -0
- package/dist/defaults/boxes/calloutStyles/resolve.d.ts.map +1 -0
- package/dist/defaults/boxes/calloutStyles/resolve.js +223 -0
- package/dist/defaults/boxes/calloutStyles/resolve.js.map +1 -0
- package/dist/defaults/boxes/calloutStyles/statics.d.ts +136 -0
- package/dist/defaults/boxes/calloutStyles/statics.d.ts.map +1 -0
- package/dist/defaults/boxes/calloutStyles/statics.js +140 -0
- package/dist/defaults/boxes/calloutStyles/statics.js.map +1 -0
- package/dist/defaults/boxes/calloutStyles/strip.d.ts +10 -0
- package/dist/defaults/boxes/calloutStyles/strip.d.ts.map +1 -0
- package/dist/defaults/boxes/calloutStyles/strip.js +336 -0
- package/dist/defaults/boxes/calloutStyles/strip.js.map +1 -0
- package/dist/defaults/boxes/calloutStyles.d.ts +4 -148
- package/dist/defaults/boxes/calloutStyles.d.ts.map +1 -1
- package/dist/defaults/boxes/calloutStyles.js +4 -749
- package/dist/defaults/boxes/calloutStyles.js.map +1 -1
- package/dist/defaults/structure/headerFooter/defaults.d.ts +34 -0
- package/dist/defaults/structure/headerFooter/defaults.d.ts.map +1 -0
- package/dist/defaults/structure/headerFooter/defaults.js +162 -0
- package/dist/defaults/structure/headerFooter/defaults.js.map +1 -0
- package/dist/defaults/structure/headerFooter/legacy.d.ts +8 -0
- package/dist/defaults/structure/headerFooter/legacy.d.ts.map +1 -0
- package/dist/defaults/structure/headerFooter/legacy.js +124 -0
- package/dist/defaults/structure/headerFooter/legacy.js.map +1 -0
- package/dist/defaults/structure/headerFooter/resolve.d.ts +29 -0
- package/dist/defaults/structure/headerFooter/resolve.d.ts.map +1 -0
- package/dist/defaults/structure/headerFooter/resolve.js +231 -0
- package/dist/defaults/structure/headerFooter/resolve.js.map +1 -0
- package/dist/defaults/structure/headerFooter.d.ts +6 -58
- package/dist/defaults/structure/headerFooter.d.ts.map +1 -1
- package/dist/defaults/structure/headerFooter.js +5 -510
- package/dist/defaults/structure/headerFooter.js.map +1 -1
- package/dist/defaults/structure/headings/defaults.d.ts +46 -0
- package/dist/defaults/structure/headings/defaults.d.ts.map +1 -0
- package/dist/defaults/structure/headings/defaults.js +100 -0
- package/dist/defaults/structure/headings/defaults.js.map +1 -0
- package/dist/defaults/structure/headings/resolve.d.ts +17 -0
- package/dist/defaults/structure/headings/resolve.d.ts.map +1 -0
- package/dist/defaults/structure/headings/resolve.js +179 -0
- package/dist/defaults/structure/headings/resolve.js.map +1 -0
- package/dist/defaults/structure/headings/strip.d.ts +9 -0
- package/dist/defaults/structure/headings/strip.d.ts.map +1 -0
- package/dist/defaults/structure/headings/strip.js +323 -0
- package/dist/defaults/structure/headings/strip.js.map +1 -0
- package/dist/defaults/structure/headings.d.ts +3 -62
- package/dist/defaults/structure/headings.d.ts.map +1 -1
- package/dist/defaults/structure/headings.js +3 -594
- package/dist/defaults/structure/headings.js.map +1 -1
- package/dist/defaults/text/bodyText/arabic.d.ts +35 -0
- package/dist/defaults/text/bodyText/arabic.d.ts.map +1 -0
- package/dist/defaults/text/bodyText/arabic.js +85 -0
- package/dist/defaults/text/bodyText/arabic.js.map +1 -0
- package/dist/defaults/text/bodyText/defaults.d.ts +31 -0
- package/dist/defaults/text/bodyText/defaults.d.ts.map +1 -0
- package/dist/defaults/text/bodyText/defaults.js +128 -0
- package/dist/defaults/text/bodyText/defaults.js.map +1 -0
- package/dist/defaults/text/bodyText/resolve.d.ts +12 -0
- package/dist/defaults/text/bodyText/resolve.d.ts.map +1 -0
- package/dist/defaults/text/bodyText/resolve.js +171 -0
- package/dist/defaults/text/bodyText/resolve.js.map +1 -0
- package/dist/defaults/text/bodyText/strip.d.ts +12 -0
- package/dist/defaults/text/bodyText/strip.d.ts.map +1 -0
- package/dist/defaults/text/bodyText/strip.js +305 -0
- package/dist/defaults/text/bodyText/strip.js.map +1 -0
- package/dist/defaults/text/bodyText.d.ts +4 -70
- package/dist/defaults/text/bodyText.d.ts.map +1 -1
- package/dist/defaults/text/bodyText.js +4 -673
- package/dist/defaults/text/bodyText.js.map +1 -1
- package/dist/design/richText/ellipsis.d.ts +26 -0
- package/dist/design/richText/ellipsis.d.ts.map +1 -0
- package/dist/design/richText/ellipsis.js +173 -0
- package/dist/design/richText/ellipsis.js.map +1 -0
- package/dist/design/richText/measure.d.ts +51 -0
- package/dist/design/richText/measure.d.ts.map +1 -0
- package/dist/design/richText/measure.js +176 -0
- package/dist/design/richText/measure.js.map +1 -0
- package/dist/design/richText/parse.d.ts +120 -0
- package/dist/design/richText/parse.d.ts.map +1 -0
- package/dist/design/richText/parse.js +190 -0
- package/dist/design/richText/parse.js.map +1 -0
- package/dist/design/richText/wrap.d.ts +13 -0
- package/dist/design/richText/wrap.d.ts.map +1 -0
- package/dist/design/richText/wrap.js +176 -0
- package/dist/design/richText/wrap.js.map +1 -0
- package/dist/design/richText.d.ts +6 -199
- package/dist/design/richText.d.ts.map +1 -1
- package/dist/design/richText.js +4 -698
- package/dist/design/richText.js.map +1 -1
- package/dist/exercises/grids/arithmetic.d.ts +3 -0
- package/dist/exercises/grids/arithmetic.d.ts.map +1 -0
- package/dist/exercises/grids/arithmetic.js +214 -0
- package/dist/exercises/grids/arithmetic.js.map +1 -0
- package/dist/exercises/grids/common.d.ts +8 -0
- package/dist/exercises/grids/common.d.ts.map +1 -0
- package/dist/exercises/grids/common.js +9 -0
- package/dist/exercises/grids/common.js.map +1 -0
- package/dist/exercises/grids/crossword.d.ts +3 -0
- package/dist/exercises/grids/crossword.d.ts.map +1 -0
- package/dist/exercises/grids/crossword.js +191 -0
- package/dist/exercises/grids/crossword.js.map +1 -0
- package/dist/exercises/grids/match.d.ts +3 -0
- package/dist/exercises/grids/match.d.ts.map +1 -0
- package/dist/exercises/grids/match.js +58 -0
- package/dist/exercises/grids/match.js.map +1 -0
- package/dist/exercises/grids/wordSearch.d.ts +5 -0
- package/dist/exercises/grids/wordSearch.d.ts.map +1 -0
- package/dist/exercises/grids/wordSearch.js +122 -0
- package/dist/exercises/grids/wordSearch.js.map +1 -0
- package/dist/exercises/grids.d.ts +2 -2
- package/dist/exercises/grids.d.ts.map +1 -1
- package/dist/exercises/grids.js +4 -575
- package/dist/exercises/grids.js.map +1 -1
- package/dist/knuthPlass/breakpoints/adjust.d.ts +22 -0
- package/dist/knuthPlass/breakpoints/adjust.d.ts.map +1 -0
- package/dist/knuthPlass/breakpoints/adjust.js +39 -0
- package/dist/knuthPlass/breakpoints/adjust.js.map +1 -0
- package/dist/knuthPlass/breakpoints/search.d.ts +10 -0
- package/dist/knuthPlass/breakpoints/search.d.ts.map +1 -0
- package/dist/knuthPlass/breakpoints/search.js +439 -0
- package/dist/knuthPlass/breakpoints/search.js.map +1 -0
- package/dist/knuthPlass/breakpoints.d.ts +2 -21
- package/dist/knuthPlass/breakpoints.d.ts.map +1 -1
- package/dist/knuthPlass/breakpoints.js +2 -472
- package/dist/knuthPlass/breakpoints.js.map +1 -1
- package/dist/marks/cjkMarks/geometry.d.ts +58 -0
- package/dist/marks/cjkMarks/geometry.d.ts.map +1 -0
- package/dist/marks/cjkMarks/geometry.js +131 -0
- package/dist/marks/cjkMarks/geometry.js.map +1 -0
- package/dist/marks/cjkMarks/lineMarks.d.ts +7 -0
- package/dist/marks/cjkMarks/lineMarks.d.ts.map +1 -0
- package/dist/marks/cjkMarks/lineMarks.js +183 -0
- package/dist/marks/cjkMarks/lineMarks.js.map +1 -0
- package/dist/marks/cjkMarks/reach.d.ts +28 -0
- package/dist/marks/cjkMarks/reach.d.ts.map +1 -0
- package/dist/marks/cjkMarks/reach.js +130 -0
- package/dist/marks/cjkMarks/reach.js.map +1 -0
- package/dist/marks/cjkMarks/resources.d.ts +31 -0
- package/dist/marks/cjkMarks/resources.d.ts.map +1 -0
- package/dist/marks/cjkMarks/resources.js +46 -0
- package/dist/marks/cjkMarks/resources.js.map +1 -0
- package/dist/marks/cjkMarks.d.ts +4 -27
- package/dist/marks/cjkMarks.d.ts.map +1 -1
- package/dist/marks/cjkMarks.js +6 -479
- package/dist/marks/cjkMarks.js.map +1 -1
- package/dist/measure/canvas/ink.d.ts +67 -0
- package/dist/measure/canvas/ink.d.ts.map +1 -0
- package/dist/measure/canvas/ink.js +215 -0
- package/dist/measure/canvas/ink.js.map +1 -0
- package/dist/measure/canvas/state.d.ts +91 -0
- package/dist/measure/canvas/state.d.ts.map +1 -0
- package/dist/measure/canvas/state.js +306 -0
- package/dist/measure/canvas/state.js.map +1 -0
- package/dist/measure/canvas/widths.d.ts +27 -0
- package/dist/measure/canvas/widths.d.ts.map +1 -0
- package/dist/measure/canvas/widths.js +137 -0
- package/dist/measure/canvas/widths.js.map +1 -0
- package/dist/measure/canvas.d.ts +4 -154
- package/dist/measure/canvas.d.ts.map +1 -1
- package/dist/measure/canvas.js +4 -646
- package/dist/measure/canvas.js.map +1 -1
- package/dist/measure/cjk/cjkPunctuation/box.d.ts +71 -0
- package/dist/measure/cjk/cjkPunctuation/box.d.ts.map +1 -0
- package/dist/measure/cjk/cjkPunctuation/box.js +114 -0
- package/dist/measure/cjk/cjkPunctuation/box.js.map +1 -0
- package/dist/measure/cjk/cjkPunctuation/composition.d.ts +128 -0
- package/dist/measure/cjk/cjkPunctuation/composition.d.ts.map +1 -0
- package/dist/measure/cjk/cjkPunctuation/composition.js +157 -0
- package/dist/measure/cjk/cjkPunctuation/composition.js.map +1 -0
- package/dist/measure/cjk/cjkPunctuation/lineEdges.d.ts +63 -0
- package/dist/measure/cjk/cjkPunctuation/lineEdges.d.ts.map +1 -0
- package/dist/measure/cjk/cjkPunctuation/lineEdges.js +183 -0
- package/dist/measure/cjk/cjkPunctuation/lineEdges.js.map +1 -0
- package/dist/measure/cjk/cjkPunctuation.d.ts +8 -247
- package/dist/measure/cjk/cjkPunctuation.d.ts.map +1 -1
- package/dist/measure/cjk/cjkPunctuation.js +6 -447
- package/dist/measure/cjk/cjkPunctuation.js.map +1 -1
- package/dist/measure/plain/overwide.d.ts +70 -0
- package/dist/measure/plain/overwide.d.ts.map +1 -0
- package/dist/measure/plain/overwide.js +150 -0
- package/dist/measure/plain/overwide.js.map +1 -0
- package/dist/measure/plain/segments.d.ts +53 -0
- package/dist/measure/plain/segments.d.ts.map +1 -0
- package/dist/measure/plain/segments.js +153 -0
- package/dist/measure/plain/segments.js.map +1 -0
- package/dist/measure/plain.d.ts +2 -15
- package/dist/measure/plain.d.ts.map +1 -1
- package/dist/measure/plain.js +12 -300
- package/dist/measure/plain.js.map +1 -1
- package/dist/migrate/pageDesign/pictures.d.ts +16 -0
- package/dist/migrate/pageDesign/pictures.d.ts.map +1 -0
- package/dist/migrate/pageDesign/pictures.js +101 -0
- package/dist/migrate/pageDesign/pictures.js.map +1 -0
- package/dist/migrate/pageDesign/text.d.ts +48 -0
- package/dist/migrate/pageDesign/text.d.ts.map +1 -0
- package/dist/migrate/pageDesign/text.js +196 -0
- package/dist/migrate/pageDesign/text.js.map +1 -0
- package/dist/migrate/pageDesign/types.d.ts +137 -0
- package/dist/migrate/pageDesign/types.d.ts.map +1 -0
- package/dist/migrate/pageDesign/types.js +2 -0
- package/dist/migrate/pageDesign/types.js.map +1 -0
- package/dist/migrate/pageDesign.d.ts +4 -154
- package/dist/migrate/pageDesign.d.ts.map +1 -1
- package/dist/migrate/pageDesign.js +4 -294
- package/dist/migrate/pageDesign.js.map +1 -1
- package/dist/numerals/numbering/counters.d.ts +49 -0
- package/dist/numerals/numbering/counters.d.ts.map +1 -0
- package/dist/numerals/numbering/counters.js +311 -0
- package/dist/numerals/numbering/counters.js.map +1 -0
- package/dist/numerals/numbering/formats.d.ts +30 -0
- package/dist/numerals/numbering/formats.d.ts.map +1 -0
- package/dist/numerals/numbering/formats.js +116 -0
- package/dist/numerals/numbering/formats.js.map +1 -0
- package/dist/numerals/numbering/headings.d.ts +40 -0
- package/dist/numerals/numbering/headings.d.ts.map +1 -0
- package/dist/numerals/numbering/headings.js +64 -0
- package/dist/numerals/numbering/headings.js.map +1 -0
- package/dist/numerals/numbering/pageLabels.d.ts +43 -0
- package/dist/numerals/numbering/pageLabels.d.ts.map +1 -0
- package/dist/numerals/numbering/pageLabels.js +75 -0
- package/dist/numerals/numbering/pageLabels.js.map +1 -0
- package/dist/numerals/numbering/styles.d.ts +52 -0
- package/dist/numerals/numbering/styles.d.ts.map +1 -0
- package/dist/numerals/numbering/styles.js +43 -0
- package/dist/numerals/numbering/styles.js.map +1 -0
- package/dist/numerals/numbering.d.ts +9 -201
- package/dist/numerals/numbering.d.ts.map +1 -1
- package/dist/numerals/numbering.js +5 -595
- package/dist/numerals/numbering.js.map +1 -1
- package/dist/parse/annotations/apply.d.ts +32 -0
- package/dist/parse/annotations/apply.d.ts.map +1 -0
- package/dist/parse/annotations/apply.js +293 -0
- package/dist/parse/annotations/apply.js.map +1 -0
- package/dist/parse/annotations/scan.d.ts +55 -0
- package/dist/parse/annotations/scan.d.ts.map +1 -0
- package/dist/parse/annotations/scan.js +232 -0
- package/dist/parse/annotations/scan.js.map +1 -0
- package/dist/parse/annotations/source.d.ts +31 -0
- package/dist/parse/annotations/source.d.ts.map +1 -0
- package/dist/parse/annotations/source.js +128 -0
- package/dist/parse/annotations/source.js.map +1 -0
- package/dist/parse/annotations.d.ts +5 -86
- package/dist/parse/annotations.d.ts.map +1 -1
- package/dist/parse/annotations.js +3 -648
- package/dist/parse/annotations.js.map +1 -1
- package/dist/pipeline/blocks/measureContentBlock/helpers.d.ts +31 -0
- package/dist/pipeline/blocks/measureContentBlock/helpers.d.ts.map +1 -0
- package/dist/pipeline/blocks/measureContentBlock/helpers.js +74 -0
- package/dist/pipeline/blocks/measureContentBlock/helpers.js.map +1 -0
- package/dist/pipeline/blocks/measureContentBlock/inlineSpans.d.ts +12 -0
- package/dist/pipeline/blocks/measureContentBlock/inlineSpans.d.ts.map +1 -0
- package/dist/pipeline/blocks/measureContentBlock/inlineSpans.js +107 -0
- package/dist/pipeline/blocks/measureContentBlock/inlineSpans.js.map +1 -0
- package/dist/pipeline/blocks/measureContentBlock/measureOptions.d.ts +68 -0
- package/dist/pipeline/blocks/measureContentBlock/measureOptions.d.ts.map +1 -0
- package/dist/pipeline/blocks/measureContentBlock/measureOptions.js +90 -0
- package/dist/pipeline/blocks/measureContentBlock/measureOptions.js.map +1 -0
- package/dist/pipeline/blocks/measureContentBlock/types.d.ts +165 -0
- package/dist/pipeline/blocks/measureContentBlock/types.d.ts.map +1 -0
- package/dist/pipeline/blocks/measureContentBlock/types.js +2 -0
- package/dist/pipeline/blocks/measureContentBlock/types.js.map +1 -0
- package/dist/pipeline/blocks/measureContentBlock.d.ts +8 -172
- package/dist/pipeline/blocks/measureContentBlock.d.ts.map +1 -1
- package/dist/pipeline/blocks/measureContentBlock.js +16 -257
- package/dist/pipeline/blocks/measureContentBlock.js.map +1 -1
- package/dist/pipeline/blocks/placement/bands.d.ts +61 -0
- package/dist/pipeline/blocks/placement/bands.d.ts.map +1 -0
- package/dist/pipeline/blocks/placement/bands.js +188 -0
- package/dist/pipeline/blocks/placement/bands.js.map +1 -0
- package/dist/pipeline/blocks/placement.d.ts +2 -59
- package/dist/pipeline/blocks/placement.d.ts.map +1 -1
- package/dist/pipeline/blocks/placement.js +3 -184
- package/dist/pipeline/blocks/placement.js.map +1 -1
- package/dist/pipeline/build/pass/composed/comicText.d.ts +27 -0
- package/dist/pipeline/build/pass/composed/comicText.d.ts.map +1 -0
- package/dist/pipeline/build/pass/composed/comicText.js +89 -0
- package/dist/pipeline/build/pass/composed/comicText.js.map +1 -0
- package/dist/pipeline/build/pass/composed/jumps.d.ts +29 -0
- package/dist/pipeline/build/pass/composed/jumps.d.ts.map +1 -0
- package/dist/pipeline/build/pass/composed/jumps.js +91 -0
- package/dist/pipeline/build/pass/composed/jumps.js.map +1 -0
- package/dist/pipeline/build/pass/composed/placePage.d.ts +60 -0
- package/dist/pipeline/build/pass/composed/placePage.d.ts.map +1 -0
- package/dist/pipeline/build/pass/composed/placePage.js +368 -0
- package/dist/pipeline/build/pass/composed/placePage.js.map +1 -0
- package/dist/pipeline/build/pass/composed.d.ts +6 -7
- package/dist/pipeline/build/pass/composed.d.ts.map +1 -1
- package/dist/pipeline/build/pass/composed.js +20 -524
- package/dist/pipeline/build/pass/composed.js.map +1 -1
- package/dist/pipeline/build/pass/setup/contentSetup.d.ts +89 -0
- package/dist/pipeline/build/pass/setup/contentSetup.d.ts.map +1 -0
- package/dist/pipeline/build/pass/setup/contentSetup.js +314 -0
- package/dist/pipeline/build/pass/setup/contentSetup.js.map +1 -0
- package/dist/pipeline/build/pass/setup/pageSetup.d.ts +32 -0
- package/dist/pipeline/build/pass/setup/pageSetup.d.ts.map +1 -0
- package/dist/pipeline/build/pass/setup/pageSetup.js +147 -0
- package/dist/pipeline/build/pass/setup/pageSetup.js.map +1 -0
- package/dist/pipeline/build/pass/setup/passFinish.d.ts +95 -0
- package/dist/pipeline/build/pass/setup/passFinish.d.ts.map +1 -0
- package/dist/pipeline/build/pass/setup/passFinish.js +201 -0
- package/dist/pipeline/build/pass/setup/passFinish.js.map +1 -0
- package/dist/pipeline/build/pass/setupState.d.ts +8 -0
- package/dist/pipeline/build/pass/setupState.d.ts.map +1 -0
- package/dist/pipeline/build/pass/setupState.js +2 -0
- package/dist/pipeline/build/pass/setupState.js.map +1 -0
- package/dist/pipeline/build/pass.d.ts.map +1 -1
- package/dist/pipeline/build/pass.js +60 -654
- package/dist/pipeline/build/pass.js.map +1 -1
- package/dist/pipeline/callouts/calloutLayout/boxDecoration.d.ts +49 -0
- package/dist/pipeline/callouts/calloutLayout/boxDecoration.d.ts.map +1 -0
- package/dist/pipeline/callouts/calloutLayout/boxDecoration.js +110 -0
- package/dist/pipeline/callouts/calloutLayout/boxDecoration.js.map +1 -0
- package/dist/pipeline/callouts/calloutLayout/labelTab.d.ts +31 -0
- package/dist/pipeline/callouts/calloutLayout/labelTab.d.ts.map +1 -0
- package/dist/pipeline/callouts/calloutLayout/labelTab.js +202 -0
- package/dist/pipeline/callouts/calloutLayout/labelTab.js.map +1 -0
- package/dist/pipeline/callouts/calloutLayout/layoutCallout.d.ts.map +1 -1
- package/dist/pipeline/callouts/calloutLayout/layoutCallout.js +23 -355
- package/dist/pipeline/callouts/calloutLayout/layoutCallout.js.map +1 -1
- package/dist/pipeline/callouts/calloutLayout/layoutCalloutState.d.ts +14 -0
- package/dist/pipeline/callouts/calloutLayout/layoutCalloutState.d.ts.map +1 -0
- package/dist/pipeline/callouts/calloutLayout/layoutCalloutState.js +2 -0
- package/dist/pipeline/callouts/calloutLayout/layoutCalloutState.js.map +1 -0
- package/dist/pipeline/callouts/calloutLayout/markerColumn.d.ts +31 -0
- package/dist/pipeline/callouts/calloutLayout/markerColumn.d.ts.map +1 -0
- package/dist/pipeline/callouts/calloutLayout/markerColumn.js +75 -0
- package/dist/pipeline/callouts/calloutLayout/markerColumn.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/fill.d.ts +68 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/fill.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/fill.js +249 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/fill.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/measure.d.ts +50 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/measure.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/measure.js +195 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/measure.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGrid.d.ts +30 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGrid.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGrid.js +174 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGrid.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGroup.d.ts +35 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGroup.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGroup.js +158 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGroup.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeModules.d.ts +37 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeModules.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeModules.js +303 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeModules.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/state.d.ts +11 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/state.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/state.js +3 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/state.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/types.d.ts +14 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/types.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/types.js +2 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/types.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run.d.ts +59 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run.js +171 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/state.d.ts +7 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/state.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/state.js +2 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/state.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage.d.ts.map +1 -1
- package/dist/pipeline/composedPages/composedLayout/composePage.js +24 -1165
- package/dist/pipeline/composedPages/composedLayout/composePage.js.map +1 -1
- package/dist/pipeline/contents/indexDirective/blocks.d.ts +9 -0
- package/dist/pipeline/contents/indexDirective/blocks.d.ts.map +1 -0
- package/dist/pipeline/contents/indexDirective/blocks.js +256 -0
- package/dist/pipeline/contents/indexDirective/blocks.js.map +1 -0
- package/dist/pipeline/contents/indexDirective/tree.d.ts +71 -0
- package/dist/pipeline/contents/indexDirective/tree.d.ts.map +1 -0
- package/dist/pipeline/contents/indexDirective/tree.js +224 -0
- package/dist/pipeline/contents/indexDirective/tree.js.map +1 -0
- package/dist/pipeline/contents/indexDirective.d.ts +2 -8
- package/dist/pipeline/contents/indexDirective.d.ts.map +1 -1
- package/dist/pipeline/contents/indexDirective.js +3 -472
- package/dist/pipeline/contents/indexDirective.js.map +1 -1
- package/dist/pipeline/pages/placeholders/chapterValues.d.ts +117 -0
- package/dist/pipeline/pages/placeholders/chapterValues.d.ts.map +1 -0
- package/dist/pipeline/pages/placeholders/chapterValues.js +236 -0
- package/dist/pipeline/pages/placeholders/chapterValues.js.map +1 -0
- package/dist/pipeline/pages/placeholders/lineText.d.ts +66 -0
- package/dist/pipeline/pages/placeholders/lineText.d.ts.map +1 -0
- package/dist/pipeline/pages/placeholders/lineText.js +173 -0
- package/dist/pipeline/pages/placeholders/lineText.js.map +1 -0
- package/dist/pipeline/pages/placeholders.d.ts +6 -179
- package/dist/pipeline/pages/placeholders.d.ts.map +1 -1
- package/dist/pipeline/pages/placeholders.js +4 -398
- package/dist/pipeline/pages/placeholders.js.map +1 -1
- package/dist/pipeline/references/citations/markers.d.ts +14 -0
- package/dist/pipeline/references/citations/markers.d.ts.map +1 -0
- package/dist/pipeline/references/citations/markers.js +106 -0
- package/dist/pipeline/references/citations/markers.js.map +1 -0
- package/dist/pipeline/references/citations/process.d.ts +56 -0
- package/dist/pipeline/references/citations/process.d.ts.map +1 -0
- package/dist/pipeline/references/citations/process.js +213 -0
- package/dist/pipeline/references/citations/process.js.map +1 -0
- package/dist/pipeline/references/citations/spans.d.ts +33 -0
- package/dist/pipeline/references/citations/spans.d.ts.map +1 -0
- package/dist/pipeline/references/citations/spans.js +127 -0
- package/dist/pipeline/references/citations/spans.js.map +1 -0
- package/dist/pipeline/references/citations.d.ts +4 -51
- package/dist/pipeline/references/citations.d.ts.map +1 -1
- package/dist/pipeline/references/citations.js +5 -438
- package/dist/pipeline/references/citations.js.map +1 -1
- package/dist/pipeline/resources/resourceLayout/resourceBlock/captionNotes.d.ts +63 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/captionNotes.d.ts.map +1 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/captionNotes.js +88 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/captionNotes.js.map +1 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/state.d.ts +9 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/state.d.ts.map +1 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/state.js +2 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/state.js.map +1 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/upright.d.ts +26 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/upright.d.ts.map +1 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/upright.js +90 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/upright.js.map +1 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock.d.ts +1 -3
- package/dist/pipeline/resources/resourceLayout/resourceBlock.d.ts.map +1 -1
- package/dist/pipeline/resources/resourceLayout/resourceBlock.js +13 -159
- package/dist/pipeline/resources/resourceLayout/resourceBlock.js.map +1 -1
- package/dist/pipeline/sections/partPalette/colorKinds.d.ts +53 -0
- package/dist/pipeline/sections/partPalette/colorKinds.d.ts.map +1 -0
- package/dist/pipeline/sections/partPalette/colorKinds.js +181 -0
- package/dist/pipeline/sections/partPalette/colorKinds.js.map +1 -0
- package/dist/pipeline/sections/partPalette/flowColors.d.ts +16 -0
- package/dist/pipeline/sections/partPalette/flowColors.d.ts.map +1 -0
- package/dist/pipeline/sections/partPalette/flowColors.js +78 -0
- package/dist/pipeline/sections/partPalette/flowColors.js.map +1 -0
- package/dist/pipeline/sections/partPalette/recolor.d.ts +18 -0
- package/dist/pipeline/sections/partPalette/recolor.d.ts.map +1 -0
- package/dist/pipeline/sections/partPalette/recolor.js +188 -0
- package/dist/pipeline/sections/partPalette/recolor.js.map +1 -0
- package/dist/pipeline/sections/partPalette.d.ts +4 -49
- package/dist/pipeline/sections/partPalette.d.ts.map +1 -1
- package/dist/pipeline/sections/partPalette.js +3 -442
- package/dist/pipeline/sections/partPalette.js.map +1 -1
- package/dist/pipeline/text/lists/orderedRuns.d.ts +49 -0
- package/dist/pipeline/text/lists/orderedRuns.d.ts.map +1 -0
- package/dist/pipeline/text/lists/orderedRuns.js +256 -0
- package/dist/pipeline/text/lists/orderedRuns.js.map +1 -0
- package/dist/pipeline/text/lists.d.ts +16 -46
- package/dist/pipeline/text/lists.d.ts.map +1 -1
- package/dist/pipeline/text/lists.js +5 -255
- package/dist/pipeline/text/lists.js.map +1 -1
- package/dist/svg/fonts/inline.d.ts +30 -0
- package/dist/svg/fonts/inline.d.ts.map +1 -0
- package/dist/svg/fonts/inline.js +298 -0
- package/dist/svg/fonts/inline.js.map +1 -0
- package/dist/svg/fonts/scan.d.ts +27 -0
- package/dist/svg/fonts/scan.d.ts.map +1 -0
- package/dist/svg/fonts/scan.js +353 -0
- package/dist/svg/fonts/scan.js.map +1 -0
- package/dist/svg/fonts/types.d.ts +106 -0
- package/dist/svg/fonts/types.d.ts.map +1 -0
- package/dist/svg/fonts/types.js +4 -0
- package/dist/svg/fonts/types.js.map +1 -0
- package/dist/svg/fonts.d.ts +4 -150
- package/dist/svg/fonts.d.ts.map +1 -1
- package/dist/svg/fonts.js +3 -647
- package/dist/svg/fonts.js.map +1 -1
- package/dist/types/text/bodyText/config.d.ts +465 -0
- package/dist/types/text/bodyText/config.d.ts.map +1 -0
- package/dist/types/text/bodyText/config.js +2 -0
- package/dist/types/text/bodyText/config.js.map +1 -0
- package/dist/types/text/bodyText/options.d.ts +73 -0
- package/dist/types/text/bodyText/options.d.ts.map +1 -0
- package/dist/types/text/bodyText/options.js +2 -0
- package/dist/types/text/bodyText/options.js.map +1 -0
- package/dist/types/text/bodyText/resolved.d.ts +95 -0
- package/dist/types/text/bodyText/resolved.d.ts.map +1 -0
- package/dist/types/text/bodyText/resolved.js +2 -0
- package/dist/types/text/bodyText/resolved.js.map +1 -0
- package/dist/types/text/bodyText.d.ts +3 -623
- package/dist/types/text/bodyText.d.ts.map +1 -1
- package/dist/vdt/contentWarnings/comic.d.ts +95 -0
- package/dist/vdt/contentWarnings/comic.d.ts.map +1 -0
- package/dist/vdt/contentWarnings/comic.js +3 -0
- package/dist/vdt/contentWarnings/comic.js.map +1 -0
- package/dist/vdt/contentWarnings/composed.d.ts +126 -0
- package/dist/vdt/contentWarnings/composed.d.ts.map +1 -0
- package/dist/vdt/contentWarnings/composed.js +2 -0
- package/dist/vdt/contentWarnings/composed.js.map +1 -0
- package/dist/vdt/contentWarnings/layout.d.ts +247 -0
- package/dist/vdt/contentWarnings/layout.d.ts.map +1 -0
- package/dist/vdt/contentWarnings/layout.js +2 -0
- package/dist/vdt/contentWarnings/layout.js.map +1 -0
- package/dist/vdt/contentWarnings/markup.d.ts +211 -0
- package/dist/vdt/contentWarnings/markup.d.ts.map +1 -0
- package/dist/vdt/contentWarnings/markup.js +4 -0
- package/dist/vdt/contentWarnings/markup.js.map +1 -0
- package/dist/vdt/contentWarnings/source.d.ts +216 -0
- package/dist/vdt/contentWarnings/source.d.ts.map +1 -0
- package/dist/vdt/contentWarnings/source.js +4 -0
- package/dist/vdt/contentWarnings/source.js.map +1 -0
- package/dist/vdt/contentWarnings/text.d.ts +139 -0
- package/dist/vdt/contentWarnings/text.d.ts.map +1 -0
- package/dist/vdt/contentWarnings/text.js +4 -0
- package/dist/vdt/contentWarnings/text.js.map +1 -0
- package/dist/vdt/contentWarnings.d.ts +7 -1017
- package/dist/vdt/contentWarnings.d.ts.map +1 -1
- package/dist/vdt/pages/comic.d.ts +200 -0
- package/dist/vdt/pages/comic.d.ts.map +1 -0
- package/dist/vdt/pages/comic.js +2 -0
- package/dist/vdt/pages/comic.js.map +1 -0
- package/dist/vdt/pages/composed.d.ts +282 -0
- package/dist/vdt/pages/composed.d.ts.map +1 -0
- package/dist/vdt/pages/composed.js +2 -0
- package/dist/vdt/pages/composed.js.map +1 -0
- package/dist/vdt/pages.d.ts +6 -476
- package/dist/vdt/pages.d.ts.map +1 -1
- package/dist/word/docxRead/body.d.ts +17 -0
- package/dist/word/docxRead/body.d.ts.map +1 -0
- package/dist/word/docxRead/body.js +372 -0
- package/dist/word/docxRead/body.js.map +1 -0
- package/dist/word/docxRead/parts.d.ts +27 -0
- package/dist/word/docxRead/parts.d.ts.map +1 -0
- package/dist/word/docxRead/parts.js +160 -0
- package/dist/word/docxRead/parts.js.map +1 -0
- package/dist/word/docxRead.d.ts +1 -5
- package/dist/word/docxRead.d.ts.map +1 -1
- package/dist/word/docxRead.js +5 -526
- package/dist/word/docxRead.js.map +1 -1
- package/dist/word/inline/parse.d.ts +16 -0
- package/dist/word/inline/parse.d.ts.map +1 -0
- package/dist/word/inline/parse.js +367 -0
- package/dist/word/inline/parse.js.map +1 -0
- package/dist/word/inline/render.d.ts +44 -0
- package/dist/word/inline/render.d.ts.map +1 -0
- package/dist/word/inline/render.js +296 -0
- package/dist/word/inline/render.js.map +1 -0
- package/dist/word/inline.d.ts +4 -52
- package/dist/word/inline.d.ts.map +1 -1
- package/dist/word/inline.js +2 -657
- package/dist/word/inline.js.map +1 -1
- package/dist/word/toDocx/parse.d.ts +46 -0
- package/dist/word/toDocx/parse.d.ts.map +1 -0
- package/dist/word/toDocx/parse.js +313 -0
- package/dist/word/toDocx/parse.js.map +1 -0
- package/dist/word/toDocx/styles.d.ts +63 -0
- package/dist/word/toDocx/styles.d.ts.map +1 -0
- package/dist/word/toDocx/styles.js +239 -0
- package/dist/word/toDocx/styles.js.map +1 -0
- package/dist/word/toDocx/wordml.d.ts +24 -0
- package/dist/word/toDocx/wordml.d.ts.map +1 -0
- package/dist/word/toDocx/wordml.js +114 -0
- package/dist/word/toDocx/wordml.js.map +1 -0
- package/dist/word/toDocx.d.ts +3 -25
- package/dist/word/toDocx.d.ts.map +1 -1
- package/dist/word/toDocx.js +8 -661
- package/dist/word/toDocx.js.map +1 -1
- package/dist/word/toMarkdown/converter.d.ts +57 -0
- package/dist/word/toMarkdown/converter.d.ts.map +1 -0
- package/dist/word/toMarkdown/converter.js +600 -0
- package/dist/word/toMarkdown/converter.js.map +1 -0
- package/dist/word/toMarkdown/helpers.d.ts +98 -0
- package/dist/word/toMarkdown/helpers.d.ts.map +1 -0
- package/dist/word/toMarkdown/helpers.js +153 -0
- package/dist/word/toMarkdown/helpers.js.map +1 -0
- package/dist/word/toMarkdown.d.ts +4 -64
- package/dist/word/toMarkdown.d.ts.map +1 -1
- package/dist/word/toMarkdown.js +2 -749
- package/dist/word/toMarkdown.js.map +1 -1
- package/dist/writing/bidi/chars.d.ts +61 -0
- package/dist/writing/bidi/chars.d.ts.map +1 -0
- package/dist/writing/bidi/chars.js +145 -0
- package/dist/writing/bidi/chars.js.map +1 -0
- package/dist/writing/bidi/joining.d.ts +27 -0
- package/dist/writing/bidi/joining.d.ts.map +1 -0
- package/dist/writing/bidi/joining.js +70 -0
- package/dist/writing/bidi/joining.js.map +1 -0
- package/dist/writing/bidi/paragraph.d.ts +72 -0
- package/dist/writing/bidi/paragraph.d.ts.map +1 -0
- package/dist/writing/bidi/paragraph.js +119 -0
- package/dist/writing/bidi/paragraph.js.map +1 -0
- package/dist/writing/bidi/resolve.d.ts +14 -0
- package/dist/writing/bidi/resolve.d.ts.map +1 -0
- package/dist/writing/bidi/resolve.js +413 -0
- package/dist/writing/bidi/resolve.js.map +1 -0
- package/dist/writing/bidi.d.ts +8 -147
- package/dist/writing/bidi.d.ts.map +1 -1
- package/dist/writing/bidi.js +6 -733
- package/dist/writing/bidi.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,624 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
import type { ResolvedVerseConfig, VerseConfig } from './verse.js';
|
|
5
|
-
export interface BodyTextConfig {
|
|
6
|
-
/** One family, as every `fontFamily` field: a CSS font stack is set in
|
|
7
|
-
* its first family (see `primaryFontFamily`) and reported by
|
|
8
|
-
* `collectConfigWarnings`. */
|
|
9
|
-
fontFamily?: string;
|
|
10
|
-
/** The figures of the running text (see {@link FigureStyle}): `'oldstyle'`
|
|
11
|
-
* for a book's prose. The styles that take the body's family take them
|
|
12
|
-
* too. Default: the font's own. */
|
|
13
|
-
figureStyle?: FigureStyle;
|
|
14
|
-
fontSize?: Dimension;
|
|
15
|
-
lineHeight?: Dimension;
|
|
16
|
-
/** The space between two paragraphs (#1115). `true` adds one
|
|
17
|
-
* baseline-grid line (the body's line height), `false` (default) none,
|
|
18
|
-
* and a length (`2mm`, `0.33em` of the font size, `4pt`) exactly that
|
|
19
|
-
* much, in the main flow, in boxes and in composed frames. A length that
|
|
20
|
-
* is not a whole number of lines takes the paragraphs off the baseline
|
|
21
|
-
* grid, as `paragraphStyles[].spaceBetween` does in a `:::paragraphs`
|
|
22
|
-
* container (the same slot of the paragraph's style): the next block
|
|
23
|
-
* that snaps (a heading, the last item of a list, display maths, the
|
|
24
|
-
* last paragraph of a container) brings the flow back onto the grid.
|
|
25
|
-
* Inside a `:::paragraphs` container the style's `spaceBetween` sets
|
|
26
|
-
* the space instead. */
|
|
27
|
-
paragraphSpacing?: boolean | Dimension;
|
|
28
|
-
color?: ColorValue;
|
|
29
|
-
boldColor?: ColorValue;
|
|
30
|
-
italicColor?: ColorValue;
|
|
31
|
-
/** Colour of inline `:ref` reference labels (e.g. "Fig. 1.7"). Defaults to
|
|
32
|
-
* {@link boldColor} (the emphasis colour). */
|
|
33
|
-
referenceColor?: ColorValue;
|
|
34
|
-
/** Whether reference labels are rendered in the bold font. Default `true`. */
|
|
35
|
-
referenceBold?: boolean;
|
|
36
|
-
/** Whether reference labels are rendered italic. Default `false`. */
|
|
37
|
-
referenceItalic?: boolean;
|
|
38
|
-
textAlign?: TextAlignKeyword;
|
|
39
|
-
fontWeight?: number;
|
|
40
|
-
boldFontWeight?: number;
|
|
41
|
-
hyphenation?: HyphenationConfig;
|
|
42
|
-
firstLineIndent?: Dimension;
|
|
43
|
-
hangingIndent?: boolean;
|
|
44
|
-
/** When `false`, the first paragraph immediately following a heading (or
|
|
45
|
-
* a `:::space` line) is rendered without first-line indent. A common typographic convention in
|
|
46
|
-
* scientific publications and many book styles ("indent run-in" style).
|
|
47
|
-
* Default `true` — every paragraph receives the indent. */
|
|
48
|
-
indentAfterHeading?: boolean;
|
|
49
|
-
/** Max word-spacing when justifying, as a multiplier of the normal space width.
|
|
50
|
-
* Knuth–Plass keeps every line within it that the paragraph allows,
|
|
51
|
-
* hyphenating or spreading the slack over neighbouring lines first; a
|
|
52
|
-
* line no break sequence can set within it stretches past it at a cost
|
|
53
|
-
* that jumps past the bound and grows with the square of the adjustment
|
|
54
|
-
* ratio, and one past 3× the normal
|
|
55
|
-
* space is set ragged. `maxJustifyTracking` lets such a line take a
|
|
56
|
-
* little tracking instead. Default 2. */
|
|
57
|
-
maxWordSpacing?: number;
|
|
58
|
-
/** Min word-spacing when justifying, as a multiplier of the normal space width. */
|
|
59
|
-
minWordSpacing?: number;
|
|
60
|
-
/** Most tracking a justified line may take, in thousandths of an em
|
|
61
|
-
* either way (the InDesign unit: 10 = 0.01 em per character), when its
|
|
62
|
-
* word spaces alone would set it past `maxWordSpacing` or
|
|
63
|
-
* `minWordSpacing`: the part of the adjustment beyond the limit goes into
|
|
64
|
-
* the letters, so a loose line's spaces come back to `maxWordSpacing` and
|
|
65
|
-
* a tight one fits at `minWordSpacing`. Lines within the limits, a
|
|
66
|
-
* paragraph's last line (unless it runs over) and a line of one word
|
|
67
|
-
* take none, nor does a line holding a chip. Knuth–Plass weighs it (it
|
|
68
|
-
* is taken only where word spacing alone would pass its limits), so it
|
|
69
|
-
* needs `optimalLineBreaking`. 0 (the default) turns it off. */
|
|
70
|
-
maxJustifyTracking?: number;
|
|
71
|
-
/** Kashida justification (#375): a justified line of Arabic-script text
|
|
72
|
-
* takes part of its slack by elongating letter joins with tatweels
|
|
73
|
-
* (U+0640), the rest in its word spaces. Each word gets at most
|
|
74
|
-
* {@link kashidaPerWord} elongations, at the joins the pattern set
|
|
75
|
-
* ({@link kashidaPatterns}) ranks best, never after a letter that does
|
|
76
|
-
* not join onward (ا د ذ ر ز و ة), never at the end of a word, never
|
|
77
|
-
* inside lām-alif; a word that holds a tatweel the author typed is
|
|
78
|
-
* lengthened there. Never in Latin text, digits, a heading, a ragged
|
|
79
|
-
* line or a paragraph's last line, and never as letter-spacing.
|
|
80
|
-
* Knuth–Plass counts each word's elongation as stretch, so lines with
|
|
81
|
-
* Arabic words choose their breaks knowing they can stretch there.
|
|
82
|
-
* The tatweels are painted as text; copied and extracted text leaves
|
|
83
|
-
* them out (see `VDTLineSegment.kashida`).
|
|
84
|
-
* `'auto'` elongates; `'none'` justifies with the spaces alone. Unset:
|
|
85
|
-
* `'auto'` in a document whose language is written in the Arabic
|
|
86
|
-
* script (`ar`, `fa`, `ur`…), `'none'` otherwise. */
|
|
87
|
-
kashida?: KashidaSetting;
|
|
88
|
-
/** Which joins take a kashida, and in what order (#375): `'naskh'`, the
|
|
89
|
-
* classical Naskh rules (Benatia's matrix with Afifi's prohibitions, as
|
|
90
|
-
* in raqim-kashida), for Amiri, Noto Naskh, Scheherazade and their
|
|
91
|
-
* kind; `'simple'`, the Microsoft priorities, for simple modern faces;
|
|
92
|
-
* `'nastaliq'`, the Naskh rules tailored for Nastaʿlīq. `'auto'` (the
|
|
93
|
-
* default) reads the body font's family: no kashida at all in a Ruqʿa
|
|
94
|
-
* or Dīwānī face (`Aref Ruqaa`), whose letters do not elongate,
|
|
95
|
-
* `'nastaliq'` in a Nastaʿlīq one, else `'naskh'`. */
|
|
96
|
-
kashidaPatterns?: KashidaPatterns;
|
|
97
|
-
/** Most elongations in one word (#375). Default 1, the rule of book
|
|
98
|
-
* typography; a classical verse line (`:::verse`) may take more. */
|
|
99
|
-
kashidaPerWord?: number;
|
|
100
|
-
/** Longest elongation at one join, in ems (#375): the tatweels inserted
|
|
101
|
-
* there are whole ones, as many as fit in this. Default 0.6 (three
|
|
102
|
-
* tatweels of Amiri, two of Noto Naskh Arabic). */
|
|
103
|
-
kashidaMaxLength?: number;
|
|
104
|
-
/** Use Knuth-Plass optimal line breaking instead of greedy first-fit. Default true. */
|
|
105
|
-
optimalLineBreaking?: boolean;
|
|
106
|
-
/** Break ragged paragraphs with Knuth–Plass too: body text, blockquotes
|
|
107
|
-
* and list items set left, right or centred, and ragged paragraph styles,
|
|
108
|
-
* box bodies and the bodies of parts and section styles. Word spaces keep
|
|
109
|
-
* their width; the breaker weighs how far each line falls short of the
|
|
110
|
-
* measure (3 em short costs what a justified line at `maxWordSpacing`
|
|
111
|
-
* does), so the edge comes out more even, and the runt rules
|
|
112
|
-
* (`avoidRunts`, `tightenRunts`) and `hyphenateAcrossColumns` work as on
|
|
113
|
-
* justified text. A line may end after a hyphen the text carries between
|
|
114
|
-
* two letters, as line by line. With `hyphenation.ragged` the zone still
|
|
115
|
-
* decides which syllables may end a line; two syllable ends in a row are
|
|
116
|
-
* discouraged rather than refused.
|
|
117
|
-
* Ragged headings, captions, table cells and the contents are still set
|
|
118
|
-
* line by line. Needs `optimalLineBreaking`. Default `true`; `false` sets ragged text
|
|
119
|
-
* line by line, as up to postext 1.4 (configurations stored before
|
|
120
|
-
* `configVersion` 7 whose text can be ragged read with it, see
|
|
121
|
-
* `pinLegacyRaggedBreaking` in `postext/bundle`). */
|
|
122
|
-
optimalRagged?: boolean;
|
|
123
|
-
/** Let a line end after an em or en dash set closed between words
|
|
124
|
-
* ("say—that’s", "riddles.—I", "Hamburg–Berlin"), in Knuth–Plass as well
|
|
125
|
-
* as line by line. Never after a dash that opens an aside or a line of
|
|
126
|
-
* dialogue ("—dijo", `said "—Hola`: a space, or a space and a quotation
|
|
127
|
-
* mark, before the dash; a quote that closes a word still lets the line
|
|
128
|
-
* end, "\"no\"—and", German "„nein“—und", French "« non »—et"), before
|
|
129
|
-
* punctuation ("él—,"), before a quotation
|
|
130
|
-
* mark or a bracket ("thinking—\" and", "says—“no”"), inside a run of
|
|
131
|
-
* dashes, or inside a range of numbers set with an en dash
|
|
132
|
-
* ("1914–1918"). A dash that ends a run before a word in another style
|
|
133
|
-
* ("see—*and*") counts too. The line ends on the dash and nothing is
|
|
134
|
-
* added. Default
|
|
135
|
-
* `true`; `false` keeps postext 1.4's breaks: Knuth–Plass never breaks
|
|
136
|
-
* there, and the line-by-line breaker of formatted or hyphenated ragged
|
|
137
|
-
* text only between two letters (configurations stored before
|
|
138
|
-
* `configVersion` 7 whose text sets such a dash read with it, see
|
|
139
|
-
* `pinLegacyDashBreaks`). Applies to the running text, headings, lists,
|
|
140
|
-
* blockquotes and boxes; captions, table cells and the contents keep the
|
|
141
|
-
* 1.4 breaks, and a plain ragged paragraph set line by line follows
|
|
142
|
-
* pretext's own rules either way. */
|
|
143
|
-
breakAfterDashes?: boolean;
|
|
144
|
-
/** Let a line end after the hyphen of a compound, a hyphen between two
|
|
145
|
-
* letters ("well-" | "known", "vencer-" | "se"), in every paragraph
|
|
146
|
-
* broken with Knuth–Plass. The line ends on the hyphen and nothing is
|
|
147
|
-
* added. Never after a hyphen next to a digit or a sign ("COVID-19",
|
|
148
|
-
* "-5 °C"). A justified paragraph without inline formatting breaks there
|
|
149
|
-
* only with two letters on each side of the hyphen, so no line ends on
|
|
150
|
-
* "e-" of "e-mail". Default `true`. `false` keeps postext 1.4's breaks: a
|
|
151
|
-
* justified paragraph with no inline formatting never breaks there,
|
|
152
|
-
* while one with a bold or italic word anywhere, a ragged paragraph and
|
|
153
|
-
* one set line by line do (configurations stored before `configVersion`
|
|
154
|
-
* 8 whose text sets a compound read with it, see
|
|
155
|
-
* `pinLegacyHyphenBreaks`). Applies to the running text, headings, lists,
|
|
156
|
-
* blockquotes and boxes. */
|
|
157
|
-
breakAfterHyphens?: boolean;
|
|
158
|
-
/** Let a line of formatted text end after a slash between two words
|
|
159
|
-
* ("entrada/" | "salida", "ACC/" | "AHA/" | "AAPA", #1164): each side
|
|
160
|
-
* a run of at least three letters or digits, not two digits, so a unit
|
|
161
|
-
* ("km/h", "kg/m³", "mg/dL"), a short pair ("and/or"), a fraction or a
|
|
162
|
-
* date ("1/2", "10/03/2026") stays whole. The line ends on the slash and
|
|
163
|
-
* nothing is added. A word wider than its whole line is divided after a
|
|
164
|
-
* slash before a syllable or a letter. Default `true`; `false` keeps
|
|
165
|
-
* the breaks of postext 1.51, which broke there only inside a web
|
|
166
|
-
* address (configurations stored before `configVersion` 19 read with
|
|
167
|
-
* it, see `pinLegacySlashBreaks`). Applies to every text the rich
|
|
168
|
-
* breaker sets: paragraphs with inline formatting, captions, table
|
|
169
|
-
* cells, notes, bibliographies; a plain paragraph breaks after any
|
|
170
|
-
* slash, as the hyphenation dictionary marks it, either way. */
|
|
171
|
-
breakAfterSlashes?: boolean;
|
|
172
|
-
/** Read a backslash at the end of a source line, and `\\` before a space,
|
|
173
|
-
* as a forced line break inside a paragraph, a quotation or a list item
|
|
174
|
-
* (CommonMark's hard break, #620): the next words start a new line
|
|
175
|
-
* of the same paragraph, and the line before the break is set at its
|
|
176
|
-
* natural width, as a paragraph's last line is. A backslash that ends
|
|
177
|
-
* the paragraph prints. Two trailing spaces are no break (they are
|
|
178
|
-
* invisible, and editors leave them behind). Default `true`. `false`
|
|
179
|
-
* keeps postext 1.22's reading: the backslashes print and the lines
|
|
180
|
-
* join with a space (configurations stored before `configVersion` 9
|
|
181
|
-
* whose text has such a backslash read with it, see
|
|
182
|
-
* `pinLegacyHardBreaks`). Titles (`\\` in a heading), captions, notes
|
|
183
|
-
* and table cells break at `\\` either way. */
|
|
184
|
-
hardLineBreaks?: boolean;
|
|
185
|
-
/** Shape a word with no letter (`46.`, `1367)`, `».`: digits,
|
|
186
|
-
* punctuation or symbols alone) in the script of the text around it
|
|
187
|
-
* (#725). Such a word has no script of its own, and a face may draw its
|
|
188
|
-
* marks by script: Amiri sets a Latin full stop, brackets and guillemets
|
|
189
|
-
* under Latin and Arabic ones otherwise, of other widths. Left alone,
|
|
190
|
-
* each shaper picks a script by its own rule (one version of a browser
|
|
191
|
-
* the font's default, the next Latin, the PDF the default), so a
|
|
192
|
-
* document broke its lines otherwise from one browser to another and
|
|
193
|
-
* its PDF set glyphs of another width in the measured places. With
|
|
194
|
-
* this on, a word painted left to right takes the script of the nearest
|
|
195
|
-
* letter before it in its isolate, else after it; one painted right to
|
|
196
|
-
* left (a bracket or a full stop at a right-to-left level) the script
|
|
197
|
-
* of the nearest right-to-left letter; with no letter near, the script
|
|
198
|
-
* of the document's language. A piece with no letter of a word that
|
|
199
|
-
* has one (`10.1006/` and `.2001` of a DOI that ends a line at its
|
|
200
|
-
* joints, what a cut leaves of a word wider than its line) takes the
|
|
201
|
-
* script it has inside the word. In a Chinese or Japanese document a
|
|
202
|
-
* doubled ellipsis or dash (`……`, `——`) in a word with no letter is
|
|
203
|
-
* the document's own mark, set in the forms of Han text whatever
|
|
204
|
-
* sentence cites it. The layout measures it in that script
|
|
205
|
-
* and says so on its segment (`VDTLineSegment.scriptContext`), and the
|
|
206
|
-
* canvas, the HTML, the fixed-layout EPUB and the PDF paint those
|
|
207
|
-
* forms at that width. It acts on Latin, Greek, Cyrillic, Arabic and
|
|
208
|
-
* Hebrew contexts, and only in a face whose punctuation or digits
|
|
209
|
-
* change with the script (asked once a face): every other face is laid
|
|
210
|
-
* out and painted as before. It governs the running text, headings,
|
|
211
|
-
* lists, captions, notes and table cells, and the leader of dots of a
|
|
212
|
-
* contents entry (in the script of the document's language); in such a
|
|
213
|
-
* face a right-to-left word is also measured as it is painted, right to
|
|
214
|
-
* left, so a bracket or a stop at its edge takes one width in every
|
|
215
|
-
* browser. Design text (running heads, openers), list markers, comic
|
|
216
|
-
* lettering and paragraphs set by the CJK composer are not touched. Default `true`. `false` shapes such a word alone, as up
|
|
217
|
-
* to postext 1.27 (configurations stored before `configVersion` 12
|
|
218
|
-
* read with it, see `pinLegacyScriptContext` in `postext/bundle`). */
|
|
219
|
-
scriptContext?: boolean;
|
|
220
|
-
/** The language the document's text is shaped in (#764): measured,
|
|
221
|
-
* painted and embedded. A font answers with other glyphs under a
|
|
222
|
-
* language (OpenType `locl`): Noto Serif SC sets its digits otherwise
|
|
223
|
-
* in Chinese, a face with a Catalan form draws `l·l` otherwise, one
|
|
224
|
-
* with the Turkish rule keeps `fi` apart. `'document'` (the default
|
|
225
|
-
* since postext 1.30, #770): the document's own
|
|
226
|
-
* ({@link PostextConfig.locale}), and a run's own where it names one
|
|
227
|
-
* (`{lang=en}`), on every context the layout measures with (the
|
|
228
|
-
* engine's, a layout worker's, the plain-paragraph breaker's), so the
|
|
229
|
-
* same document has the same lines on a page in any language and in a
|
|
230
|
-
* worker; the canvas paints in it through every `save()`
|
|
231
|
-
* (`canvas-backend/contextState.ts`), the HTML viewer and the EPUB
|
|
232
|
-
* declare it and the PDF shapes with the OpenType language system of
|
|
233
|
-
* the language. Under it the text is measured as it is painted: a
|
|
234
|
-
* string has one width whatever was measured before it, a
|
|
235
|
-
* right-to-left word is measured right to left, the two parts of a
|
|
236
|
-
* word broken at a line end and the runs of a design text are measured
|
|
237
|
-
* as the texts that are painted, and the PDF shapes word by word as the
|
|
238
|
-
* canvas does and takes each character from the font file the browser
|
|
239
|
-
* took it from. `'host'`: as up to postext 1.28, the measuring contexts
|
|
240
|
-
* take the language of the page that hosts the layout (none in a
|
|
241
|
-
* worker) and the canvas paints in that same language; the HTML viewer
|
|
242
|
-
* declares the language of a Chinese, Japanese, Korean or right-to-left
|
|
243
|
-
* document; the widths and the PDF are the ones such a document had.
|
|
244
|
-
* Under `'host'` the part of a broken word that opens the next line is
|
|
245
|
-
* measured as the whole word less its first part, so a face whose form
|
|
246
|
-
* for the language needs the letters on both sides of the break (the
|
|
247
|
-
* Catalan `l·l` of Crimson Pro, a wide dot set only between two `l`)
|
|
248
|
-
* leaves a gap after it on a page in that language. `'host'` was the
|
|
249
|
-
* default of postext 1.29.1 and 1.29.2; `'document'` was the default of
|
|
250
|
-
* 1.29.0 alone, whose canvas and PDF did not follow the measure (#764).
|
|
251
|
-
* A configuration stored before `configVersion` 14 that does not name
|
|
252
|
-
* the setting reads with `'host'` written out
|
|
253
|
-
* (`pinLegacyShapingLanguage` in `postext/bundle`), so a stored
|
|
254
|
-
* document keeps its lines. A browser whose canvas has no `lang`
|
|
255
|
-
* (Chrome before 136, Firefox and Safari where it is missing) is given
|
|
256
|
-
* no language and keeps the forms it always measured. */
|
|
257
|
-
shapingLanguage?: 'document' | 'host';
|
|
258
|
-
/** Tab stops of every paragraph, list item and quotation (#622): where a
|
|
259
|
-
* tab (`:tab`, or a tab character in the text) sends the words after
|
|
260
|
-
* it. A paragraph style or a callout body that sets its own replaces
|
|
261
|
-
* them. Unset: none; a tab character is then a word space, as before. */
|
|
262
|
-
tabStops?: TabStop[];
|
|
263
|
-
/** Default stops every `tabInterval` past the last of {@link tabStops}
|
|
264
|
-
* (#622), from the start of the measure. Unset: a tab past the last stop
|
|
265
|
-
* is a word space. */
|
|
266
|
-
tabInterval?: Dimension;
|
|
267
|
-
/** Start the line after a break at a compound's hyphen with a hyphen too:
|
|
268
|
-
* "vencer-" | "-se", as Portuguese spelling and the Spanish Academy's
|
|
269
|
-
* 2010 rules ask ("léxico-" | "-semántico"), so the reader knows the
|
|
270
|
-
* hyphen is part of the word. The repeated hyphen is measured with its
|
|
271
|
-
* line and painted, and left out of the line's source range (see
|
|
272
|
-
* `VDTLine.repeatedHyphen`); the PDF paints it under an `/ActualText`
|
|
273
|
-
* that leaves it out, so extracted text reads the word once. A web
|
|
274
|
-
* address never gets one. Default
|
|
275
|
-
* `false`. Applies to the running text, headings, lists, blockquotes and
|
|
276
|
-
* boxes; with it on, a paragraph without formatting that holds a
|
|
277
|
-
* compound is broken the way a formatted one is. */
|
|
278
|
-
repeatHyphen?: boolean;
|
|
279
|
-
/** How Markdown blockquotes (`> …`) are set. Unset fields keep the look
|
|
280
|
-
* postext 1.4 gave them: grey (`#666666`), italic, the body's first-line
|
|
281
|
-
* indent and no side indent. */
|
|
282
|
-
blockquote?: BlockquoteConfig;
|
|
283
|
-
/** How `:::verse` poems in the line layout are set (#620): each fence
|
|
284
|
-
* attribute of the same name overrides the setting for its poem. */
|
|
285
|
-
verse?: VerseConfig;
|
|
286
|
-
/** When true, discourage a paragraph from ending with fewer than `orphanMinLines`
|
|
287
|
-
* lines at the top of the next column. Soft (penalty-based). Default true;
|
|
288
|
-
* false on a character grid (`cjk.grid`) in the Japan region, where a
|
|
289
|
-
* page holds the lines its grid counts (#717, `avoidOrphansByDefault`). */
|
|
290
|
-
avoidOrphans?: boolean;
|
|
291
|
-
/** Minimum lines required at the top of the next column when a paragraph is split.
|
|
292
|
-
* Only effective when `avoidOrphans` is true. Default 2. */
|
|
293
|
-
orphanMinLines?: number;
|
|
294
|
-
/** Demerit added when an orphan constraint is violated. Higher = stronger
|
|
295
|
-
* avoidance. 0 effectively disables the penalty. Default 1000 — chosen so
|
|
296
|
-
* orphan avoidance normally wins over slack (slackWeight·slack²) unless
|
|
297
|
-
* pushing the paragraph would leave ≳10 lines of whitespace. */
|
|
298
|
-
orphanPenalty?: number;
|
|
299
|
-
/** When true, list items also receive orphan protection (not just paragraphs).
|
|
300
|
-
* Only effective when `avoidOrphans` is true. Default true. */
|
|
301
|
-
avoidOrphansInLists?: boolean;
|
|
302
|
-
/** When true, discourage a paragraph from starting with fewer than `widowMinLines`
|
|
303
|
-
* lines at the bottom of the current column. Soft (penalty-based). Default true;
|
|
304
|
-
* false on a character grid (`cjk.grid`, #717, `avoidWidowsByDefault`). */
|
|
305
|
-
avoidWidows?: boolean;
|
|
306
|
-
/** Minimum lines required at the bottom of the current column when a paragraph is
|
|
307
|
-
* split. Only effective when `avoidWidows` is true. Default 2. */
|
|
308
|
-
widowMinLines?: number;
|
|
309
|
-
/** Demerit added when a widow constraint is violated. Default 1000 (same
|
|
310
|
-
* scale as `orphanPenalty`). */
|
|
311
|
-
widowPenalty?: number;
|
|
312
|
-
/** When true, list items also receive widow protection (not just paragraphs).
|
|
313
|
-
* Only effective when `avoidWidows` is true. Default true. */
|
|
314
|
-
avoidWidowsInLists?: boolean;
|
|
315
|
-
/** A short list cut between two columns or pages (#749): one of up to
|
|
316
|
-
* `shortListMaxItems` items, in the running text. `avoidOrphansInLists`
|
|
317
|
-
* and `avoidWidowsInLists` keep the lines of one item together; this
|
|
318
|
-
* rule keeps the items of one list together. `'allow'` (the default)
|
|
319
|
-
* cuts such a list wherever the column ends, as any other. `'warn'`
|
|
320
|
-
* lays it out the same and reports each list cut (a `shortListSplit`
|
|
321
|
-
* content warning). `'avoid'` sets the list whole: when it does not fit
|
|
322
|
-
* under what the column holds it opens the next column, the headings
|
|
323
|
-
* right above it and the colon line that introduces it
|
|
324
|
-
* (`keepColonWithList`) going with it. A float offered the foot of the
|
|
325
|
-
* column the list stands whole in takes its next slot instead, and the
|
|
326
|
-
* colon line counts the room a figure it cites will take there. A list
|
|
327
|
-
* taller than an empty column is cut as any other, and reported. Lists inside a `:::callout`
|
|
328
|
-
* follow the box's own cut rules, and the entries of `:::toc` and
|
|
329
|
-
* `:::index` are not lists. */
|
|
330
|
-
shortListSplit?: CompositionRule;
|
|
331
|
-
/** The most items a list has to count as short for `shortListSplit`,
|
|
332
|
-
* the items of its nested lists included. Default 3. */
|
|
333
|
-
shortListMaxItems?: number;
|
|
334
|
-
/** Weight applied to the squared "unused column space" cost. Higher values make
|
|
335
|
-
* the layout prefer filling columns tightly; 0 disables the slack pressure.
|
|
336
|
-
* Default 10. */
|
|
337
|
-
slackWeight?: number;
|
|
338
|
-
/** When true, discourage paragraphs from ending with a very short last line
|
|
339
|
-
* (a "runt" — e.g. a single short word alone). Soft (Knuth-Plass penalty),
|
|
340
|
-
* so ragged text takes it only when `optimalRagged` breaks it with
|
|
341
|
-
* Knuth–Plass. A Chinese, Japanese or Korean paragraph does not end on a
|
|
342
|
-
* line holding one character, alone or with its closing marks (孤字): the
|
|
343
|
-
* line above gives it its last character when that line can still be
|
|
344
|
-
* justified within the tracking cap; a line set left, right or centred
|
|
345
|
-
* gives it up too and stands one character short. On manuscript paper
|
|
346
|
-
* (`cjk.grid.fullLines`, #718) only a justified line gives it up: the
|
|
347
|
-
* others keep every cell and the paragraph may end on one character.
|
|
348
|
-
* Default true. */
|
|
349
|
-
avoidRunts?: boolean;
|
|
350
|
-
/** Approximate minimum character count for the last line of a paragraph.
|
|
351
|
-
* Interpreted internally as `runtMinCharacters * normalSpaceWidth` pixels, so
|
|
352
|
-
* the real test is "is the last line visually shorter than N characters'
|
|
353
|
-
* worth of space-width content". Default 20. */
|
|
354
|
-
runtMinCharacters?: number;
|
|
355
|
-
/** Equivalent-badness added to the last line when it is shorter than the
|
|
356
|
-
* runt threshold. Feeds into the Knuth–Plass squared demerit on the same
|
|
357
|
-
* scale as line `badness` (which saturates at 10000). Default 1000 —
|
|
358
|
-
* dominates alternatives up to roughly r≈2.15 word-spacing stretch. */
|
|
359
|
-
runtPenalty?: number;
|
|
360
|
-
/** Scale the runt penalty by how short the last line falls: a last line
|
|
361
|
-
* of width `w` under the threshold `t` costs `runtPenalty × (1 − w / t)`
|
|
362
|
-
* instead of the whole `runtPenalty`, so a two-word ending costs less
|
|
363
|
-
* than a one-word one and the breaker takes it when a line above can
|
|
364
|
-
* give a word up. Off by default (every runt costs the same). */
|
|
365
|
-
gradedRuntPenalty?: boolean;
|
|
366
|
-
/** When true, list items also receive the runt penalty (not just paragraphs).
|
|
367
|
-
* Only effective when `avoidRunts` is true. Default true. */
|
|
368
|
-
avoidRuntsInLists?: boolean;
|
|
369
|
-
/** When the penalty above could not keep a paragraph from ending in a
|
|
370
|
-
* runt, set the paragraph one line shorter instead — the compositor's
|
|
371
|
-
* fix: the spaces of every line tighten (never past `minWordSpacing`)
|
|
372
|
-
* and, when that alone does not carry the line, a little negative
|
|
373
|
-
* tracking joins in, up to `maxRuntTracking`. A shorter setting is no
|
|
374
|
-
* fix, and the runt stays, when it would stretch a justified line past
|
|
375
|
-
* `maxWordSpacing` or, when the paragraph already has a looser
|
|
376
|
-
* justified line, past that line; or when it would set more lines
|
|
377
|
-
* ragged (past 3× the normal space) than the paragraph had. The word
|
|
378
|
-
* spaces of ragged text keep their width, so there only the tracking
|
|
379
|
-
* takes part. Needs `optimalLineBreaking` and `avoidRunts` (and
|
|
380
|
-
* `optimalRagged` for ragged text). Default true. */
|
|
381
|
-
tightenRunts?: boolean;
|
|
382
|
-
/** Most tracking a runt fix may take, in thousandths of an em (the
|
|
383
|
-
* InDesign unit: 10 = 0.01 em per character), applied as a tightening.
|
|
384
|
-
* 0 leaves the fix to word spacing alone. Default 10. */
|
|
385
|
-
maxRuntTracking?: number;
|
|
386
|
-
/** When true, a paragraph ending with a colon that directly introduces a
|
|
387
|
-
* list is kept joined to the list: if placing the paragraph would leave no
|
|
388
|
-
* room for the first list item in the same column/page, the colon-bearing
|
|
389
|
-
* last line is moved to the next column together with the list (or the
|
|
390
|
-
* whole paragraph, if it is a single line). How much room counts as
|
|
391
|
-
* enough is `colonListRoom`. Default true. */
|
|
392
|
-
keepColonWithList?: boolean;
|
|
393
|
-
/** The room `keepColonWithList` asks for under the colon line:
|
|
394
|
-
* - `'item'` (default): what the orphan and widow rules for lists would
|
|
395
|
-
* leave of the first item there, a line when it may split, all of it
|
|
396
|
-
* when they keep it whole (a two-line item, say);
|
|
397
|
-
* - `'line'`: one line, as up to postext 1.4. A first item those rules
|
|
398
|
-
* keep whole then goes on to the next column alone and leaves the
|
|
399
|
-
* colon line at the foot. Configurations stored before
|
|
400
|
-
* `configVersion` 6 read with it (see `pinLegacyColonListRoom` in
|
|
401
|
-
* `postext/bundle`). */
|
|
402
|
-
colonListRoom?: ColonListRoom;
|
|
403
|
-
/** Let a column or a page end on a hyphenated word (InDesign's "Hyphenate
|
|
404
|
-
* Across Column"). Default `true`. `false` re-breaks a paragraph whose
|
|
405
|
-
* last line in a column would end on a hyphen, so that line ends on a
|
|
406
|
-
* whole word instead — the word spaces of the lines above take the
|
|
407
|
-
* difference, within `maxWordSpacing` and `minWordSpacing`; when no
|
|
408
|
-
* break inside those limits avoids it, the hyphen stays. It covers the
|
|
409
|
-
* first column break of a paragraph and the later ones that fall where
|
|
410
|
-
* a full column ends; a later one that falls elsewhere (a widow kept, a
|
|
411
|
-
* band cut level) gets a second re-break from its column, which keeps
|
|
412
|
-
* the lines already placed at their breaks and breaks only the rest.
|
|
413
|
-
* A ragged paragraph set with `optimalRagged` is broken again the same
|
|
414
|
-
* way; its word spaces keep their width, so only its line ends move.
|
|
415
|
-
* Needs `optimalLineBreaking` (and `optimalRagged` for ragged text).
|
|
416
|
-
* Running text only (not box bodies).
|
|
417
|
-
*
|
|
418
|
-
* `'withinPage'` (#701) guards the lines that close a page and no
|
|
419
|
-
* other: a word may be divided between two columns of one page, and the
|
|
420
|
-
* last line of a page ends on a whole word wherever the word-spacing
|
|
421
|
-
* limits allow it. A column closes its page when the text that leaves it
|
|
422
|
-
* goes on to another page (no later column of the page takes text: a
|
|
423
|
-
* float-only side column does not, nor does a column the floats have
|
|
424
|
-
* filled). It moves fewer lines than
|
|
425
|
-
* `false`; in a single-column layout the two give the same lines. */
|
|
426
|
-
hyphenateAcrossColumns?: boolean | 'withinPage';
|
|
427
|
-
/** The space under a `:::paragraphs` container that closes on a
|
|
428
|
-
* paragraph, between that paragraph and the block after it:
|
|
429
|
-
* - `'collapse'` (default): the larger of the style's `spaceBetween` and
|
|
430
|
-
* `marginBottom` and the paragraph spacing of the text around the
|
|
431
|
-
* container (a line with `paragraphSpacing`, in a box its body's),
|
|
432
|
-
* merged with the space the next block keeps above itself (a
|
|
433
|
-
* heading's `marginTop`, a list's), as between two paragraphs of
|
|
434
|
-
* running text. The flow still snaps back to the baseline grid under
|
|
435
|
-
* the container, the space being a minimum;
|
|
436
|
-
* - `'add'`: as up to postext 1.4, the style's space alone is set under
|
|
437
|
-
* the last line before the grid snap, the next block's own space above
|
|
438
|
-
* is added under it, and the paragraph spacing is left out.
|
|
439
|
-
* Configurations stored before `configVersion` 8 read with it (see
|
|
440
|
-
* `pinLegacyParagraphContainerSpacing` in `postext/bundle`).
|
|
441
|
-
* A negative `marginBottom` pulls the next block up either way. A
|
|
442
|
-
* container that closes on a list is set as in 1.4 under both rules: the
|
|
443
|
-
* list keeps its own space in its snap, and `marginBottom` follows. */
|
|
444
|
-
paragraphContainerSpacing?: ParagraphContainerSpacing;
|
|
445
|
-
/** What the fields a paragraph style leaves unset (face, size, leading,
|
|
446
|
-
* weights, colour) inherit inside a box (#1119):
|
|
447
|
-
* - `'box'` (default): the box's body, so one style that sets only
|
|
448
|
-
* `textAlign` serves a serif box and a sans one alike;
|
|
449
|
-
* - `'document'`: the document's body text, as up to postext 1.51.
|
|
450
|
-
* Configurations stored before `configVersion` 17 read with it (see
|
|
451
|
-
* `pinLegacyBoxParagraphStyles` in `postext/bundle`). */
|
|
452
|
-
paragraphStylesInBoxes?: ParagraphStylesInBoxes;
|
|
453
|
-
/** How Markdown emphasis (`*…*`) is set (see {@link EmphasisStyle}).
|
|
454
|
-
* `'auto'` (the default): `'bold'` in a document whose language is
|
|
455
|
-
* written in Arabic script (`ar`, `fa`, `ur`…), whose type has no
|
|
456
|
-
* italics, and `'italic'` in any other. Whatever is chosen, the engine
|
|
457
|
-
* never slants Arabic letters: an italic run sets its Arabic words
|
|
458
|
-
* upright (#376). */
|
|
459
|
-
emphasis?: 'auto' | EmphasisStyle;
|
|
460
|
-
/** Arabic vowel marks (tashkīl) in the text (see {@link TashkilMode}).
|
|
461
|
-
* Default `'keep'`. */
|
|
462
|
-
tashkil?: TashkilMode;
|
|
463
|
-
}
|
|
464
|
-
/** How `*…*` is set (`BodyTextConfig.emphasis`):
|
|
465
|
-
* - `'italic'`: in the italic face, as postext always did;
|
|
466
|
-
* - `'bold'`: in the bold face and `boldColor`, as `**…**` is (bold
|
|
467
|
-
* and italic together stay bold);
|
|
468
|
-
* - `'color'`: upright, in `italicColor`;
|
|
469
|
-
* - `'overline'`: upright, in `italicColor`, with a rule over the words
|
|
470
|
-
* (the Arabic khaṭṭ fawqī).
|
|
471
|
-
* It applies to the body text and to what is set in its faces: lists,
|
|
472
|
-
* blockquotes, paragraph styles, callout bodies, notes and headings.
|
|
473
|
-
* Captions, table cells, the contents and the index keep their own
|
|
474
|
-
* italic settings. */
|
|
475
|
-
export type EmphasisStyle = 'italic' | 'bold' | 'color' | 'overline';
|
|
476
|
-
/** What becomes of the Arabic vowel marks of the text
|
|
477
|
-
* (`BodyTextConfig.tashkil`), for an edition without them made from a
|
|
478
|
-
* vocalised source:
|
|
479
|
-
* - `'keep'`: set as written;
|
|
480
|
-
* - `'strip'`: every vowel and Qurʾānic mark is dropped: fatḥa, ḍamma,
|
|
481
|
-
* kasra, their tanwīn, sukūn, shadda, the superscript (dagger) alef
|
|
482
|
-
* U+0670 (هٰذا is set هذا) and the other marks U+0656–U+065F, and the
|
|
483
|
-
* Qurʾānic annotation signs U+06D6–U+06ED;
|
|
484
|
-
* - `'strip-vowels'`: as `'strip'`, but the shadda stays, as most modern
|
|
485
|
-
* books print it.
|
|
486
|
-
* Hamza and madda are kept in both: أ إ آ ؤ ئ are letters, also when
|
|
487
|
-
* written with the combining U+0653–U+0655. The marks leave the text the
|
|
488
|
-
* layout sets (body, headings, notes, the contents); the source keeps
|
|
489
|
-
* them, and every character set still maps to its place in it. */
|
|
490
|
-
export type TashkilMode = 'keep' | 'strip' | 'strip-vowels';
|
|
491
|
-
/** The room kept for a list under the colon line that introduces it
|
|
492
|
-
* (`BodyTextConfig.colonListRoom`). */
|
|
493
|
-
export type ColonListRoom = 'item' | 'line';
|
|
494
|
-
/** How far a composition rule goes (`BodyTextConfig.shortListSplit`,
|
|
495
|
-
* `LayoutConfig.openerFloats`, #749): `'allow'` leaves the rule off (the
|
|
496
|
-
* layout is not changed and nothing is reported), `'warn'` leaves the
|
|
497
|
-
* layout as it is and reports each case in
|
|
498
|
-
* `VDTDocument.contentWarnings`, `'avoid'` applies the rule. */
|
|
499
|
-
export type CompositionRule = 'allow' | 'warn' | 'avoid';
|
|
500
|
-
/** How the space under a `:::paragraphs` container is worked out
|
|
501
|
-
* (`BodyTextConfig.paragraphContainerSpacing`). */
|
|
502
|
-
export type ParagraphContainerSpacing = 'collapse' | 'add';
|
|
503
|
-
/** What a paragraph style's unset type fields inherit inside a box
|
|
504
|
-
* (`BodyTextConfig.paragraphStylesInBoxes`, #1119). */
|
|
505
|
-
export type ParagraphStylesInBoxes = 'box' | 'document';
|
|
506
|
-
/** The type fields a paragraph style inherits from the body text when it
|
|
507
|
-
* leaves them unset (`ResolvedParagraphStyleConfig.inheritsBody`). */
|
|
508
|
-
export type ParagraphBodyField = 'fontFamily' | 'fontSize' | 'lineHeight' | 'fontWeight' | 'boldFontWeight' | 'color';
|
|
509
|
-
/** How Markdown blockquotes (`> …`) are set (`BodyTextConfig.blockquote`).
|
|
510
|
-
* They take the body's family, size, leading, weights, alignment and
|
|
511
|
-
* hyphenation. */
|
|
512
|
-
export interface BlockquoteConfig {
|
|
513
|
-
/** Text colour. Default `#666666`. A colour linked to a palette entry
|
|
514
|
-
* (`paletteId`) follows that entry, as everywhere. */
|
|
515
|
-
color?: ColorValue;
|
|
516
|
-
/** Set the text in italics; a `*…*` run inside turns back to upright.
|
|
517
|
-
* Default `true`. */
|
|
518
|
-
italic?: boolean;
|
|
519
|
-
/** Indent of every line from the left edge of the column or box, the
|
|
520
|
-
* first-line indent counted from it. `em` is the body's size. Default
|
|
521
|
-
* `0`. */
|
|
522
|
-
indent?: Dimension;
|
|
523
|
-
/** Indent of the first line of each quoted paragraph, from {@link indent}
|
|
524
|
-
* (with the body's `hangingIndent`, of every line but the first). Unset:
|
|
525
|
-
* the body's `firstLineIndent`. */
|
|
526
|
-
firstLineIndent?: Dimension;
|
|
527
|
-
}
|
|
528
|
-
export interface ResolvedBlockquoteConfig {
|
|
529
|
-
color: ColorValue;
|
|
530
|
-
italic: boolean;
|
|
531
|
-
indent: Dimension;
|
|
532
|
-
/** Unset: the body's `firstLineIndent`. */
|
|
533
|
-
firstLineIndent?: Dimension;
|
|
534
|
-
}
|
|
535
|
-
export interface ResolvedBodyTextConfig {
|
|
536
|
-
fontFamily: string;
|
|
537
|
-
fontSize: Dimension;
|
|
538
|
-
lineHeight: Dimension;
|
|
539
|
-
paragraphSpacing: boolean | Dimension;
|
|
540
|
-
color: ColorValue;
|
|
541
|
-
boldColor?: ColorValue;
|
|
542
|
-
italicColor?: ColorValue;
|
|
543
|
-
/** Resolved colour for inline `:ref` labels (defaults to the bold colour). */
|
|
544
|
-
referenceColor: ColorValue;
|
|
545
|
-
/** Whether reference labels use the bold font. */
|
|
546
|
-
referenceBold: boolean;
|
|
547
|
-
/** Whether reference labels are italic. */
|
|
548
|
-
referenceItalic: boolean;
|
|
549
|
-
textAlign: TextAlign;
|
|
550
|
-
fontWeight: number;
|
|
551
|
-
boldFontWeight: number;
|
|
552
|
-
hyphenation: ResolvedHyphenationConfig;
|
|
553
|
-
firstLineIndent: Dimension;
|
|
554
|
-
hangingIndent: boolean;
|
|
555
|
-
indentAfterHeading: boolean;
|
|
556
|
-
maxWordSpacing: number;
|
|
557
|
-
minWordSpacing: number;
|
|
558
|
-
maxJustifyTracking: number;
|
|
559
|
-
/** Kashida justification (see `BodyTextConfig.kashida`): `'auto'` and
|
|
560
|
-
* its three details, all resolved, when it is on; all four absent when
|
|
561
|
-
* it is off, so a document that does not use it resolves as it did
|
|
562
|
-
* before kashidas existed. Read them with `resolvedKashida`. */
|
|
563
|
-
kashida?: 'auto';
|
|
564
|
-
kashidaPatterns?: KashidaPatterns;
|
|
565
|
-
kashidaPerWord?: number;
|
|
566
|
-
kashidaMaxLength?: number;
|
|
567
|
-
optimalLineBreaking: boolean;
|
|
568
|
-
optimalRagged: boolean;
|
|
569
|
-
breakAfterDashes: boolean;
|
|
570
|
-
breakAfterHyphens: boolean;
|
|
571
|
-
hardLineBreaks: boolean;
|
|
572
|
-
/** Present only when switched off (see
|
|
573
|
-
* {@link BodyTextConfig.breakAfterSlashes}). */
|
|
574
|
-
breakAfterSlashes?: false;
|
|
575
|
-
/** Present only when switched off (see
|
|
576
|
-
* {@link BodyTextConfig.scriptContext}). */
|
|
577
|
-
scriptContext?: false;
|
|
578
|
-
/** Present only when the host's (see
|
|
579
|
-
* {@link BodyTextConfig.shapingLanguage}). */
|
|
580
|
-
shapingLanguage?: 'host';
|
|
581
|
-
/** Absent when unset (see {@link BodyTextConfig.tabStops}). */
|
|
582
|
-
tabStops?: TabStop[];
|
|
583
|
-
/** Absent when unset (see {@link BodyTextConfig.tabInterval}). */
|
|
584
|
-
tabInterval?: Dimension;
|
|
585
|
-
repeatHyphen: boolean;
|
|
586
|
-
blockquote: ResolvedBlockquoteConfig;
|
|
587
|
-
verse: ResolvedVerseConfig;
|
|
588
|
-
avoidOrphans: boolean;
|
|
589
|
-
orphanMinLines: number;
|
|
590
|
-
orphanPenalty: number;
|
|
591
|
-
avoidOrphansInLists: boolean;
|
|
592
|
-
avoidWidows: boolean;
|
|
593
|
-
widowMinLines: number;
|
|
594
|
-
widowPenalty: number;
|
|
595
|
-
avoidWidowsInLists: boolean;
|
|
596
|
-
shortListSplit: CompositionRule;
|
|
597
|
-
shortListMaxItems: number;
|
|
598
|
-
slackWeight: number;
|
|
599
|
-
avoidRunts: boolean;
|
|
600
|
-
runtMinCharacters: number;
|
|
601
|
-
runtPenalty: number;
|
|
602
|
-
gradedRuntPenalty: boolean;
|
|
603
|
-
avoidRuntsInLists: boolean;
|
|
604
|
-
tightenRunts: boolean;
|
|
605
|
-
maxRuntTracking: number;
|
|
606
|
-
keepColonWithList: boolean;
|
|
607
|
-
colonListRoom: ColonListRoom;
|
|
608
|
-
hyphenateAcrossColumns: boolean | 'withinPage';
|
|
609
|
-
paragraphContainerSpacing: ParagraphContainerSpacing;
|
|
610
|
-
paragraphStylesInBoxes: ParagraphStylesInBoxes;
|
|
611
|
-
/** `emphasis` resolved; absent when `*…*` is set in italics. */
|
|
612
|
-
emphasis?: Exclude<EmphasisStyle, 'italic'>;
|
|
613
|
-
/** `tashkil`; absent when the marks are kept. */
|
|
614
|
-
tashkil?: Exclude<TashkilMode, 'keep'>;
|
|
615
|
-
/** Set only in the derived config a callout lays its children out with
|
|
616
|
-
* (a style's `body.italic` / `body.smallCaps`): the running text of a
|
|
617
|
-
* document is always upright, in lowercase. */
|
|
618
|
-
italic?: boolean;
|
|
619
|
-
smallCaps?: boolean;
|
|
620
|
-
/** Set only in the derived config of a callout whose `body.letterSpacing`
|
|
621
|
-
* is not zero (#974). */
|
|
622
|
-
letterSpacing?: Dimension;
|
|
623
|
-
}
|
|
1
|
+
export type { BodyTextConfig } from './bodyText/config.js';
|
|
2
|
+
export type { EmphasisStyle, TashkilMode, ColonListRoom, CompositionRule, ParagraphContainerSpacing, ParagraphStylesInBoxes, ParagraphBodyField, BlockquoteConfig, ResolvedBlockquoteConfig } from './bodyText/options.js';
|
|
3
|
+
export type { ResolvedBodyTextConfig } from './bodyText/resolved.js';
|
|
624
4
|
//# sourceMappingURL=bodyText.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bodyText.d.ts","sourceRoot":"","sources":["../../../src/types/text/bodyText.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"bodyText.d.ts","sourceRoot":"","sources":["../../../src/types/text/bodyText.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,EAAE,yBAAyB,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAC;AAC3N,YAAY,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC"}
|