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
package/dist/composed/types.d.ts
CHANGED
|
@@ -6,647 +6,9 @@
|
|
|
6
6
|
* carries `pageTemplates` and `labelStyles`. The document nodes are the
|
|
7
7
|
* parser's (P3, #854) and the VDT nodes the layout's (P4, #855).
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* the frame's min/max) or `'fill'` (what is left up to the edge the frame
|
|
13
|
-
* is anchored to, as in design slots). */
|
|
14
|
-
export type FrameSize = Dimension | {
|
|
15
|
-
percent: number;
|
|
16
|
-
} | 'auto' | 'fill';
|
|
17
|
-
export interface FrameGridCell {
|
|
18
|
-
/** 1-based column and row of the template grid. */
|
|
19
|
-
col: number;
|
|
20
|
-
row: number;
|
|
21
|
-
/** Columns and rows the frame spans. Default 1. */
|
|
22
|
-
cols?: number;
|
|
23
|
-
rows?: number;
|
|
24
|
-
}
|
|
25
|
-
export interface FrameFitConfig {
|
|
26
|
-
/** Shrink the frame's text when nothing else makes it fit. Default true. */
|
|
27
|
-
shrinkText?: boolean;
|
|
28
|
-
/** Smallest text scale, above 0 and at most 1. Default 0.9. */
|
|
29
|
-
minScale?: number;
|
|
30
|
-
/** Scale flexible pictures inside the frame. Default true. */
|
|
31
|
-
scaleImages?: boolean;
|
|
32
|
-
/** Smallest picture scale, above 0 and at most 1. Default 0.8. */
|
|
33
|
-
imageMinScale?: number;
|
|
34
|
-
/** A frame whose `overflow.continueIn` sends content to another page
|
|
35
|
-
* (`'next-page'`, `'template:<id>'`, `'page:<id>'`) goes on there
|
|
36
|
-
* before its pictures or its text shrink, so a story keeps one size
|
|
37
|
-
* from page to page (#920). `false`: shrink first and go on only when
|
|
38
|
-
* shrinking is not enough. Default true. */
|
|
39
|
-
preferContinue?: boolean;
|
|
40
|
-
}
|
|
41
|
-
export interface FrameOverflowConfig {
|
|
42
|
-
/** Where content that does not fit goes on: `'#frame'` (another frame of
|
|
43
|
-
* the same page, as `next`), `'next-page'` (the same frame on a page
|
|
44
|
-
* added after this one), `'template:<id>'` (a page of that template)
|
|
45
|
-
* or `'page:<id>'` (#917: a frame of the later page fence
|
|
46
|
-
* `::::page{id=…}`, the one it leaves empty, or the one named by
|
|
47
|
-
* `'page:<id>#<frame>'`; `<id>` may be `{attr.name}`, read from the
|
|
48
|
-
* fence). Unset: nowhere; the frame runs the reflow ladder and warns. */
|
|
49
|
-
continueIn?: string;
|
|
50
|
-
/** Continuation mark at the end of a cut piece; unset = the localized
|
|
51
|
-
* default; `false` = none. `{page}` is the number of the page the rest
|
|
52
|
-
* goes on on (#917). */
|
|
53
|
-
mark?: string | false;
|
|
54
|
-
/** Words at the head of the piece that goes on on another page, `{page}`
|
|
55
|
-
* being the number of the page it comes from (#917): "Continued from
|
|
56
|
-
* page {page}". The receiving frame's own, else the sending frame's.
|
|
57
|
-
* Unset: none. */
|
|
58
|
-
fromMark?: string;
|
|
59
|
-
}
|
|
60
|
-
/** Ruled lines across a frame (#914): an answer space, a writing frame.
|
|
61
|
-
* One rule at the foot of each line slot of the frame's content box (its
|
|
62
|
-
* box less its padding), as many as fit its height, so an `'auto'` frame
|
|
63
|
-
* that receives `:::space{lines=4}` is ruled four times and a frame that
|
|
64
|
-
* grows gets more. */
|
|
65
|
-
export interface FrameRulesConfig {
|
|
66
|
-
/** The pitch: `'line'` (the default), the leading of the frame's text
|
|
67
|
-
* (its style's body, else the book's), or a length. */
|
|
68
|
-
every?: 'line' | Dimension;
|
|
69
|
-
/** Default: a mid grey. */
|
|
70
|
-
color?: ColorValue;
|
|
71
|
-
/** The rules' thickness. Default 0.5 pt. */
|
|
72
|
-
width?: Dimension;
|
|
73
|
-
/** Room left at both ends of each rule, inside the content box, or per
|
|
74
|
-
* side. Default 0. */
|
|
75
|
-
inset?: Dimension | {
|
|
76
|
-
left?: Dimension;
|
|
77
|
-
right?: Dimension;
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
export interface FrameConfig {
|
|
81
|
-
/** The slot name. Unique per template. */
|
|
82
|
-
name: string;
|
|
83
|
-
/** Anchor, offset and size, in the language of design slots;
|
|
84
|
-
* `anchor.to` may be `'#frame'` or `'#group'`. Ignored when `grid` is
|
|
85
|
-
* set. Neither: the frame takes the whole area. */
|
|
86
|
-
placement?: ElementPlacement;
|
|
87
|
-
/** A cell of the template's `grid`. Wins over `placement`; ignored when
|
|
88
|
-
* the template has no grid. */
|
|
89
|
-
grid?: FrameGridCell;
|
|
90
|
-
/** Default: `placement.size.width`, else `'fill'`. */
|
|
91
|
-
width?: FrameSize;
|
|
92
|
-
/** Default: `placement.size.height`, else `'auto'`. */
|
|
93
|
-
height?: FrameSize;
|
|
94
|
-
minWidth?: Dimension;
|
|
95
|
-
maxWidth?: Dimension;
|
|
96
|
-
minHeight?: Dimension;
|
|
97
|
-
maxHeight?: Dimension;
|
|
98
|
-
/** A `calloutStyles` id. Unset: a frameless box. */
|
|
99
|
-
style?: string;
|
|
100
|
-
/** Paint order. Default 1; decoration is 0; negative paints below it. */
|
|
101
|
-
layer?: number;
|
|
102
|
-
/** Degrees, clockwise. Box and content turn together. Default 0. */
|
|
103
|
-
rotate?: number;
|
|
104
|
-
/** Where the content sits in a frame taller than it. Default `'top'`. */
|
|
105
|
-
verticalAlign?: 'top' | 'middle' | 'bottom' | 'justify';
|
|
106
|
-
/** Default 1. */
|
|
107
|
-
columns?: number;
|
|
108
|
-
columnGap?: Dimension;
|
|
109
|
-
/** Overrides the style's padding, side by side. */
|
|
110
|
-
padding?: CalloutPaddingConfig;
|
|
111
|
-
/** `'push'`: text of other frames wraps around this one. Default `'none'`. */
|
|
112
|
-
exclude?: 'none' | 'push';
|
|
113
|
-
/** What the text of other frames runs round when this frame pushes it
|
|
114
|
-
* (`exclude: 'push'`, #883): `'box'` (the default), the frame's box;
|
|
115
|
-
* `'contour'`, the shape of the pictures it holds (`Resource.contour`:
|
|
116
|
-
* a polygon or the bitmap's alpha channel), each line set as short as
|
|
117
|
-
* the shape is wide beside it. A frame whose pictures have no known
|
|
118
|
-
* shape, or a turned frame, pushes with its box. */
|
|
119
|
-
wrap?: 'box' | 'contour';
|
|
120
|
-
/** Receives content that names no slot. */
|
|
121
|
-
flow?: boolean;
|
|
122
|
-
/** Chain: content that does not fit continues in this frame. */
|
|
123
|
-
next?: string;
|
|
124
|
-
/** Receives the first heading of this level that names no slot, or
|
|
125
|
-
* (`'toc'`, #983) the rows of the page's `:::toc` that name no slot,
|
|
126
|
-
* laid by the contents' own rules (part rows, leaders, `keep`). */
|
|
127
|
-
takes?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'toc';
|
|
128
|
-
/** Never moves or resizes. */
|
|
129
|
-
pin?: boolean;
|
|
130
|
-
/** Share of a group's spare space this frame takes. Default 0. */
|
|
131
|
-
grow?: number;
|
|
132
|
-
/** Whether (and how much) this frame gives space back in a group. Default 0. */
|
|
133
|
-
shrink?: number;
|
|
134
|
-
/** Lower yields first. Default 0. */
|
|
135
|
-
priority?: number;
|
|
136
|
-
/** The frame grows with the frames laid inside it (#1117): its height is
|
|
137
|
-
* at least down to the foot of those frames and its bottom padding, so
|
|
138
|
-
* its fill, border and tab follow captions that run longer, and the
|
|
139
|
-
* frames under it move down as under any growing box. `'children'`:
|
|
140
|
-
* the frames and groups anchored to a point of its top side
|
|
141
|
-
* (`top-left`, `top`, `top-right`, `top-start`, `top-end`) and,
|
|
142
|
-
* through them, those anchored to these; a list of frame and group
|
|
143
|
-
* names takes those instead. A frame turned (`rotate`) does not grow.
|
|
144
|
-
* Unset: the frame's height is its own content's. */
|
|
145
|
-
growWith?: 'children' | string[];
|
|
146
|
-
fit?: FrameFitConfig;
|
|
147
|
-
overflow?: FrameOverflowConfig;
|
|
148
|
-
/** No `slotEmpty` warning when nothing is poured in. */
|
|
149
|
-
optional?: boolean;
|
|
150
|
-
/** On a spread template: the frame may cross the spine band (`gutter`). */
|
|
151
|
-
crossGutter?: boolean;
|
|
152
|
-
writingMode?: 'horizontal-tb' | 'vertical-rl';
|
|
153
|
-
direction?: 'ltr' | 'rtl';
|
|
154
|
-
/** Ruled lines across the frame at a pitch (#914). */
|
|
155
|
-
rules?: FrameRulesConfig;
|
|
156
|
-
/** What this frame changes of its callout style's look (#976): colours,
|
|
157
|
-
* and the tracking of the body. A book with one box in a dozen tints
|
|
158
|
-
* keeps one style and writes the tint here. Merged key by key over the
|
|
159
|
-
* parent's in a patch. */
|
|
160
|
-
look?: FrameLook;
|
|
161
|
-
/** The overlap checks (#1053): `'allow'` leaves the frame out of
|
|
162
|
-
* `frameCovered`, as the frame painted over another (art meant to sit
|
|
163
|
-
* over text) and as the one painted under, and out of
|
|
164
|
-
* `frameOutsideArea` (a badge hung half off its card on purpose).
|
|
165
|
-
* Default `'check'`. */
|
|
166
|
-
overlap?: 'check' | 'allow';
|
|
167
|
-
/** In a template patch (`extends`, `variants`): drop the inherited frame. */
|
|
168
|
-
remove?: boolean;
|
|
169
|
-
}
|
|
170
|
-
/** The fields of a callout style a frame may set for itself (#976), named
|
|
171
|
-
* and nested as in {@link CalloutStyleConfig}. A `background` also turns
|
|
172
|
-
* the style's fill on. */
|
|
173
|
-
export interface FrameLook {
|
|
174
|
-
background?: ColorValue;
|
|
175
|
-
border?: {
|
|
176
|
-
color?: ColorValue;
|
|
177
|
-
};
|
|
178
|
-
stripe?: {
|
|
179
|
-
color?: ColorValue;
|
|
180
|
-
};
|
|
181
|
-
icon?: {
|
|
182
|
-
color?: ColorValue;
|
|
183
|
-
};
|
|
184
|
-
marker?: {
|
|
185
|
-
color?: ColorValue;
|
|
186
|
-
rule?: {
|
|
187
|
-
color?: ColorValue;
|
|
188
|
-
};
|
|
189
|
-
};
|
|
190
|
-
titleStyle?: {
|
|
191
|
-
color?: ColorValue;
|
|
192
|
-
};
|
|
193
|
-
/** Colours of the box's text, and its tracking (see
|
|
194
|
-
* `CalloutBodyStyleConfig.letterSpacing`, #974). */
|
|
195
|
-
body?: {
|
|
196
|
-
color?: ColorValue;
|
|
197
|
-
boldColor?: ColorValue;
|
|
198
|
-
italicColor?: ColorValue;
|
|
199
|
-
letterSpacing?: Dimension;
|
|
200
|
-
};
|
|
201
|
-
/** The label tab's colours; only on a style that has a tab. */
|
|
202
|
-
label?: {
|
|
203
|
-
color?: ColorValue;
|
|
204
|
-
background?: ColorValue;
|
|
205
|
-
rule?: {
|
|
206
|
-
color?: ColorValue;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
}
|
|
210
|
-
/** A named look (#1089, `PostextConfig.frameLooks`): the fields of a
|
|
211
|
-
* {@link FrameLook} under an id a `:::frame{slot="…" look="<id>"}` piece
|
|
212
|
-
* names. The Markdown names the look, the config defines it; it is laid
|
|
213
|
-
* over the frame's style and the template frame's own `look`, for that
|
|
214
|
-
* piece only, so the items of a repeating grid can each wear a colour of
|
|
215
|
-
* their own. */
|
|
216
|
-
export interface FrameLookEntry extends FrameLook {
|
|
217
|
-
/** Required, unique among `frameLooks`. */
|
|
218
|
-
id: string;
|
|
219
|
-
/** Shown in the Sandbox only. */
|
|
220
|
-
name?: string;
|
|
221
|
-
}
|
|
222
|
-
/** The frame set a grid group lays once per content item (#1061, DESIGN
|
|
223
|
-
* §12.6). */
|
|
224
|
-
export interface FrameRepeatConfig {
|
|
225
|
-
/** The frames of the set. The first is the cell's main frame: it takes
|
|
226
|
-
* the cell's width, and each `:::frame{slot="<main>"}` piece of the page
|
|
227
|
-
* is one item. The others are laid as the template draws them, anchored
|
|
228
|
-
* to the main frame or to each other. */
|
|
229
|
-
frames: string[];
|
|
230
|
-
/** The most items the grid takes; the rest goes to the flow frame
|
|
231
|
-
* (`repeatOverflow`). Unset: no limit. */
|
|
232
|
-
max?: number;
|
|
233
|
-
}
|
|
234
|
-
export interface FrameGroupConfig {
|
|
235
|
-
/** Unique per template, and distinct from every frame name (anchors
|
|
236
|
-
* name both as `'#name'`). */
|
|
237
|
-
name: string;
|
|
238
|
-
/** Default `'stack'`. `'grid'` (#1061): cells of `columns` columns,
|
|
239
|
-
* filled row by row from the start side, each row as tall as its
|
|
240
|
-
* tallest cell. */
|
|
241
|
-
kind?: 'stack' | 'row' | 'grid';
|
|
242
|
-
/** Order on the page: top to bottom (stack), start to end (row), cell
|
|
243
|
-
* after cell (grid). A frame belongs to at most one group. A grid that
|
|
244
|
-
* `repeat`s takes the set's frames instead. */
|
|
245
|
-
frames?: string[];
|
|
246
|
-
/** Grid: the number of columns. Default 1. */
|
|
247
|
-
columns?: number;
|
|
248
|
-
/** Grid: the space between columns, and between rows. Default 0 (a
|
|
249
|
-
* grid's `gap` is read for both when these are unset). */
|
|
250
|
-
columnGap?: Dimension;
|
|
251
|
-
rowGap?: Dimension;
|
|
252
|
-
/** Grid: where a cell shorter than its row sits: `'stretch'` (the
|
|
253
|
-
* default) makes its main frame as tall as the row. A modules row or
|
|
254
|
-
* grid (#1088): where a module shorter than its row sits; `'stretch'`
|
|
255
|
-
* lays it in a box as tall as the row (its `'fill'` frames grow). */
|
|
256
|
-
rowAlign?: 'start' | 'center' | 'end' | 'stretch';
|
|
257
|
-
/** Grid: the frame set laid once per item of the page's content. */
|
|
258
|
-
repeat?: FrameRepeatConfig;
|
|
259
|
-
/** The group takes the page's `:::module` blocks (#1062, DESIGN §12.7),
|
|
260
|
-
* in Markdown order, `gap` between them. Its `frames` are not read. A
|
|
261
|
-
* `'stack'` lays them one under another, each as wide as the group (or
|
|
262
|
-
* its template's `width`) and as tall as its frames; a `'row'` (#1088)
|
|
263
|
-
* side by side, start to end, each as wide as its template's `width`
|
|
264
|
-
* or an equal share of what is left, the row as tall as its tallest
|
|
265
|
-
* module (`rowAlign`); a `'grid'` (#1088) in `columns` equal columns,
|
|
266
|
-
* row after row. */
|
|
267
|
-
modules?: boolean;
|
|
268
|
-
/** A modules group laid inside the modules group of this name (#1088):
|
|
269
|
-
* each run of the page's modules it takes (`templates`), one after
|
|
270
|
-
* another in Markdown order, is one item of that group, a row or a grid
|
|
271
|
-
* of its own where the first of the run comes. Only on a modules group,
|
|
272
|
-
* naming a modules group of the template; groups may lie inside each
|
|
273
|
-
* other to any depth (#1095), the outermost being the page's modules
|
|
274
|
-
* group. Inside a stack a run's rows are rows of the stack; inside a
|
|
275
|
-
* row or a grid a run is one cell (a share of the row). */
|
|
276
|
-
within?: string;
|
|
277
|
-
/** A modules group inside another (`within`, #1088): the module
|
|
278
|
-
* templates it takes. Unset: every module, unless other groups lie
|
|
279
|
-
* inside it (#1095): then only theirs. */
|
|
280
|
-
templates?: string[];
|
|
281
|
-
/** A modules group (#1062): where a module that does not fit goes on,
|
|
282
|
-
* whole (`'next-page'`, `'template:<id>'`). Unset: the module is laid
|
|
283
|
-
* cut at the group's foot and its frames run the reflow ladder. */
|
|
284
|
-
overflow?: {
|
|
285
|
-
continueIn?: string;
|
|
286
|
-
};
|
|
287
|
-
/** Default 0. */
|
|
288
|
-
gap?: Dimension;
|
|
289
|
-
/** The group's own box. Neither this nor `grid`: the union of its
|
|
290
|
-
* frames' declared boxes. */
|
|
291
|
-
placement?: ElementPlacement;
|
|
292
|
-
grid?: FrameGridCell;
|
|
293
|
-
/** Where spare space goes. Default `'start'`. */
|
|
294
|
-
align?: 'start' | 'center' | 'end' | 'space-between';
|
|
295
|
-
/** In a template patch: drop the inherited group. */
|
|
296
|
-
remove?: boolean;
|
|
297
|
-
}
|
|
298
|
-
export interface PageTemplateGrid {
|
|
299
|
-
columns: number;
|
|
300
|
-
rows: number;
|
|
301
|
-
columnGap?: Dimension;
|
|
302
|
-
rowGap?: Dimension;
|
|
303
|
-
}
|
|
304
|
-
/** In a template patch (`extends`, `variants`): takes the decoration
|
|
305
|
-
* element `id` of the template it inherits out (#975), as `remove: true`
|
|
306
|
-
* does for a frame or a group. An id the patch inherits no element under
|
|
307
|
-
* changes nothing. */
|
|
308
|
-
export interface DecorationRemoval {
|
|
309
|
-
id: string;
|
|
310
|
-
remove: true;
|
|
311
|
-
}
|
|
312
|
-
/** The decoration of a template or of a patch: elements, and in a patch
|
|
313
|
-
* the removals of inherited ones. */
|
|
314
|
-
export interface TemplateDecoration {
|
|
315
|
-
elements: (DesignElement | DecorationRemoval)[];
|
|
316
|
-
}
|
|
317
|
-
/** The fields a variant or a child template may override. */
|
|
318
|
-
export interface PageTemplatePatch {
|
|
319
|
-
/** The rectangle frame coordinates refer to. Default `'content'` (the
|
|
320
|
-
* page's content area, mirrored per parity like the flow). */
|
|
321
|
-
area?: 'content' | 'trim' | 'bleed';
|
|
322
|
-
/** Merged key by key over the parent's. */
|
|
323
|
-
grid?: PageTemplateGrid;
|
|
324
|
-
/** Merged by `name` over the parent's (`remove: true` drops one). */
|
|
325
|
-
frames?: FrameConfig[];
|
|
326
|
-
/** Merged by `name` over the parent's (`remove: true` drops one). */
|
|
327
|
-
groups?: FrameGroupConfig[];
|
|
328
|
-
/** Elements merged by `id` over the parent's; elements with no id are
|
|
329
|
-
* added; `{ id, remove: true }` takes an inherited one out (#975). */
|
|
330
|
-
decoration?: TemplateDecoration;
|
|
331
|
-
/** `false` hides; unset inherits the running section's. */
|
|
332
|
-
header?: DesignSlot | false;
|
|
333
|
-
footer?: DesignSlot | false;
|
|
334
|
-
/** Template of the pages added by continuation (`overflow.continueIn:
|
|
335
|
-
* 'next-page'`). Default: this template with only the continued frames
|
|
336
|
-
* filled. */
|
|
337
|
-
overflowTemplate?: string;
|
|
338
|
-
/** A paragraph style for the page's text. */
|
|
339
|
-
bodyStyle?: string;
|
|
340
|
-
/** A palette override, as heading styles have. */
|
|
341
|
-
palette?: string;
|
|
342
|
-
}
|
|
343
|
-
export interface PageTemplate extends PageTemplatePatch {
|
|
344
|
-
/** Required, unique among `pageTemplates`. */
|
|
345
|
-
id: string;
|
|
346
|
-
/** Shown in the Sandbox only. */
|
|
347
|
-
name?: string;
|
|
348
|
-
/** Id of a template whose fields this one inherits. */
|
|
349
|
-
extends?: string;
|
|
350
|
-
/** Two facing pages laid as one sheet, starting on a verso. */
|
|
351
|
-
spread?: boolean;
|
|
352
|
-
/** The spine band of a spread. Default 0. */
|
|
353
|
-
gutter?: Dimension;
|
|
354
|
-
/** Patches applied on a recto or a verso page, after `extends`. */
|
|
355
|
-
variants?: {
|
|
356
|
-
recto?: PageTemplatePatch;
|
|
357
|
-
verso?: PageTemplatePatch;
|
|
358
|
-
};
|
|
359
|
-
/** Page role reported to design slots. Default `'composed'`.
|
|
360
|
-
* `'module'` (#1062, DESIGN §12.7): the template is a module, a box of
|
|
361
|
-
* frames, groups and decoration a page stacks in its modules group
|
|
362
|
-
* (`:::module{template="…"}`); it has no `area`, header, footer,
|
|
363
|
-
* variants, spread or overflow template, and no page fence lays it. */
|
|
364
|
-
role?: string;
|
|
365
|
-
/** A module (#1088): its width in a modules row or stack: a length, a
|
|
366
|
-
* percentage of the group's width, or `'fill'` (an equal share of what
|
|
367
|
-
* the row's other modules leave). Unset: `'fill'`. A grid's cells are
|
|
368
|
-
* its columns. */
|
|
369
|
-
width?: ModuleWidth;
|
|
370
|
-
/** A module (#1095): its share of the room a row of modules leaves past
|
|
371
|
-
* the widths of its modules (`width`). Default 0 for a module with a
|
|
372
|
-
* width, 1 for a `'fill'` one (which then grows by its share of what is
|
|
373
|
-
* left, as before). Not read in a stack or a grid. */
|
|
374
|
-
grow?: number;
|
|
375
|
-
/** A module with a `width` (#1095): how much of the room a row of modules
|
|
376
|
-
* is short by it gives back, in proportion to its width. Default 0
|
|
377
|
-
* (the row runs past the group's end side). */
|
|
378
|
-
shrink?: number;
|
|
379
|
-
}
|
|
380
|
-
/** A module's width in its group (#1088). */
|
|
381
|
-
export type ModuleWidth = Dimension | {
|
|
382
|
-
percent: number;
|
|
383
|
-
} | 'fill';
|
|
384
|
-
export interface LabelStyle {
|
|
385
|
-
id: string;
|
|
386
|
-
name?: string;
|
|
387
|
-
/** A paragraph style whose type the label borrows. */
|
|
388
|
-
paragraphStyle?: string;
|
|
389
|
-
fontFamily?: string;
|
|
390
|
-
fontSize?: Dimension;
|
|
391
|
-
fontWeight?: number;
|
|
392
|
-
/** Default `'normal'`. Written, `'normal'` also switches off the slant
|
|
393
|
-
* of a borrowed `paragraphStyle` (#955); left out, that style's slant
|
|
394
|
-
* holds. */
|
|
395
|
-
fontStyle?: 'normal' | 'italic';
|
|
396
|
-
color?: ColorValue;
|
|
397
|
-
/** Default `'none'`. Written, `'none'` also switches off the capitals
|
|
398
|
-
* of a borrowed `paragraphStyle` (#955). */
|
|
399
|
-
textTransform?: 'none' | 'uppercase';
|
|
400
|
-
letterSpacing?: number;
|
|
401
|
-
halo?: {
|
|
402
|
-
color: ColorValue;
|
|
403
|
-
width: Dimension;
|
|
404
|
-
};
|
|
405
|
-
background?: ColorValue;
|
|
406
|
-
padding?: Dimension;
|
|
407
|
-
/** Smallest scale when a label does not fit its width. Default 0.85. */
|
|
408
|
-
minScale?: number;
|
|
409
|
-
/** `'vertical-rl'` sets the label in vertical writing (#902), unless its
|
|
410
|
-
* anchor says otherwise. Default `'horizontal-tb'`. */
|
|
411
|
-
writingMode?: 'horizontal-tb' | 'vertical-rl';
|
|
412
|
-
/** `'allow'` leaves the labels set in this style out of the
|
|
413
|
-
* `labelOverlap` check: a map whose names touch in the source (#977).
|
|
414
|
-
* An anchor's `overlap` wins. Default `'check'`. */
|
|
415
|
-
overlap?: 'check' | 'allow';
|
|
416
|
-
/** How the lines of a label line up inside its box (#1058): `'start'`
|
|
417
|
-
* and `'end'` in the label's own direction. Left out: as the anchor
|
|
418
|
-
* places the box (`ResourceAnchor.align`, centred by default), and
|
|
419
|
-
* `'start'` in a legend. */
|
|
420
|
-
align?: 'start' | 'center' | 'end';
|
|
421
|
-
/** A line round the label's plate (its box grown by `padding`), with or
|
|
422
|
-
* without a `background` (#1058). */
|
|
423
|
-
border?: {
|
|
424
|
-
color: ColorValue;
|
|
425
|
-
width: Dimension;
|
|
426
|
-
};
|
|
427
|
-
/** The corners of the plate (#1058). */
|
|
428
|
-
radius?: Dimension;
|
|
429
|
-
/** `'legend'` (#1058): a map's key. Each line of the label is a row; the
|
|
430
|
-
* first inline symbol (`:icon`) that opens a row hangs in a column as
|
|
431
|
-
* wide as the widest of them, so the words of every row line up. */
|
|
432
|
-
kind?: 'legend';
|
|
433
|
-
/** The look of the leaders of labels set in this style (#1057): the line
|
|
434
|
-
* from a label's box to its anchor's point. A label set away from its
|
|
435
|
-
* point (`ResourceAnchor.labelAt`) gets one; `leader` on the anchor or
|
|
436
|
-
* on the label turns it on or off. */
|
|
437
|
-
leader?: LeaderStyle;
|
|
438
|
-
}
|
|
439
|
-
/** New top-level config keys. `checks.contentInConfig` (DESIGN §2.8)
|
|
440
|
-
* belongs to #849, which adds it to `PostextConfig` itself. */
|
|
441
|
-
export interface ComposedPagesConfigKeys {
|
|
442
|
-
pageTemplates?: PageTemplate[];
|
|
443
|
-
labelStyles?: LabelStyle[];
|
|
444
|
-
/** Named frame looks (#1089). */
|
|
445
|
-
frameLooks?: FrameLookEntry[];
|
|
446
|
-
}
|
|
447
|
-
/** The physical side of a page: its variant. */
|
|
448
|
-
export type PageSide = 'recto' | 'verso';
|
|
449
|
-
export interface ResolvePageTemplateOptions {
|
|
450
|
-
/** The side of the page the template is laid on: picks
|
|
451
|
-
* `variants.recto` or `variants.verso`. */
|
|
452
|
-
parity?: PageSide;
|
|
453
|
-
/** The caller lays a sheet of two pages: no variant applies (a spread
|
|
454
|
-
* has both sides). A `spread` template is always laid this way. */
|
|
455
|
-
spread?: boolean;
|
|
456
|
-
/** The modules the page lays (#1062), in Markdown order: the template
|
|
457
|
-
* comes back with each one's frames, groups and decoration in its
|
|
458
|
-
* modules group, scoped by the instance name (`expandModules`). */
|
|
459
|
-
modules?: readonly ComposedModuleUse[];
|
|
460
|
-
}
|
|
461
|
-
/** A module a page lays (#1062): its instance name (the fence's `name`,
|
|
462
|
-
* else `<template>[n]`) and its module template. */
|
|
463
|
-
export interface ComposedModuleUse {
|
|
464
|
-
name: string;
|
|
465
|
-
template: string;
|
|
466
|
-
}
|
|
467
|
-
/** A module laid in a template's modules group (#1062), after
|
|
468
|
-
* `expandModules`: what of the template belongs to it, by scoped name
|
|
469
|
-
* (`<name>.<frame>`). */
|
|
470
|
-
export interface ResolvedModule extends ComposedModuleUse {
|
|
471
|
-
/** The modules group it is laid in. */
|
|
472
|
-
group: string;
|
|
473
|
-
/** JSON pointer of the module template. */
|
|
474
|
-
configPath: string;
|
|
475
|
-
/** Its frames, groups and decoration element ids, scoped, in the module
|
|
476
|
-
* template's order. */
|
|
477
|
-
frames: string[];
|
|
478
|
-
groups: string[];
|
|
479
|
-
elements: string[];
|
|
480
|
-
/** The module's flow frame: the content of its `:::module` that names
|
|
481
|
-
* no slot. */
|
|
482
|
-
flow?: string;
|
|
483
|
-
/** The module's frames that take the first heading of a level (or the
|
|
484
|
-
* contents) inside its `:::module`. */
|
|
485
|
-
takes?: Partial<Record<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'toc', string>>;
|
|
486
|
-
/** Its template's `width` (#1088). */
|
|
487
|
-
width?: ModuleWidth;
|
|
488
|
-
/** Its template's `grow` and `shrink` (#1095), when it writes them. */
|
|
489
|
-
grow?: number;
|
|
490
|
-
shrink?: number;
|
|
491
|
-
/** The modules group inside `group` it is laid in (`within`, #1088): the
|
|
492
|
-
* innermost, when groups lie inside each other (#1095). */
|
|
493
|
-
nested?: string;
|
|
494
|
-
/** Its decoration elements (#1189): indices `start` to `end - 1` of the
|
|
495
|
-
* page's `decoration.elements` (with or without an `id`). Absent when
|
|
496
|
-
* the module has none. */
|
|
497
|
-
decoration?: {
|
|
498
|
-
start: number;
|
|
499
|
-
end: number;
|
|
500
|
-
};
|
|
501
|
-
}
|
|
502
|
-
export interface ResolvedFrameFit {
|
|
503
|
-
shrinkText: boolean;
|
|
504
|
-
minScale: number;
|
|
505
|
-
scaleImages: boolean;
|
|
506
|
-
imageMinScale: number;
|
|
507
|
-
preferContinue: boolean;
|
|
508
|
-
}
|
|
509
|
-
export interface ResolvedFrame {
|
|
510
|
-
name: string;
|
|
511
|
-
placement?: ElementPlacement;
|
|
512
|
-
/** Clamped to the template grid; absent when the template has none. */
|
|
513
|
-
grid?: Required<FrameGridCell>;
|
|
514
|
-
width: FrameSize;
|
|
515
|
-
height: FrameSize;
|
|
516
|
-
minWidth?: Dimension;
|
|
517
|
-
maxWidth?: Dimension;
|
|
518
|
-
minHeight?: Dimension;
|
|
519
|
-
maxHeight?: Dimension;
|
|
520
|
-
style?: string;
|
|
521
|
-
layer: number;
|
|
522
|
-
rotate: number;
|
|
523
|
-
verticalAlign: 'top' | 'middle' | 'bottom' | 'justify';
|
|
524
|
-
columns: number;
|
|
525
|
-
columnGap?: Dimension;
|
|
526
|
-
padding?: CalloutPaddingConfig;
|
|
527
|
-
exclude: 'none' | 'push';
|
|
528
|
-
/** `'contour'`: a pushing frame pushes with its pictures' shape (#883).
|
|
529
|
-
* Absent: with its box. */
|
|
530
|
-
wrap?: 'contour';
|
|
531
|
-
flow: boolean;
|
|
532
|
-
next?: string;
|
|
533
|
-
takes?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'toc';
|
|
534
|
-
pin: boolean;
|
|
535
|
-
grow: number;
|
|
536
|
-
shrink: number;
|
|
537
|
-
priority: number;
|
|
538
|
-
/** Grows with the frames laid inside it (#1117). Absent: it does not. */
|
|
539
|
-
growWith?: 'children' | string[];
|
|
540
|
-
fit: ResolvedFrameFit;
|
|
541
|
-
overflow: FrameOverflowConfig;
|
|
542
|
-
optional: boolean;
|
|
543
|
-
crossGutter: boolean;
|
|
544
|
-
writingMode?: 'horizontal-tb' | 'vertical-rl';
|
|
545
|
-
direction?: 'ltr' | 'rtl';
|
|
546
|
-
/** Ruled lines across the frame (#914), as written (lengths checked). */
|
|
547
|
-
rules?: FrameRulesConfig;
|
|
548
|
-
/** What the frame changes of its style's look (#976), colours and
|
|
549
|
-
* lengths checked. */
|
|
550
|
-
look?: FrameLook;
|
|
551
|
-
/** `'allow'`: the frame is left out of the overlap checks (#1053).
|
|
552
|
-
* Absent: checked. */
|
|
553
|
-
overlap?: 'allow';
|
|
554
|
-
/** JSON pointer of the most specific entry that sets this frame
|
|
555
|
-
* (`/pageTemplates/3/frames/2`, `/pageTemplates/3/variants/recto/frames/0`). */
|
|
556
|
-
configPath: string;
|
|
557
|
-
/** Per field as written: the JSON pointer of the entry whose value won. */
|
|
558
|
-
fieldPaths: Record<string, string>;
|
|
559
|
-
}
|
|
560
|
-
export interface ResolvedFrameGroup {
|
|
561
|
-
name: string;
|
|
562
|
-
kind: 'stack' | 'row' | 'grid';
|
|
563
|
-
/** For a grid that repeats: the set's frames (before `expandRepeats`),
|
|
564
|
-
* or its instances, cell after cell (after). */
|
|
565
|
-
frames: string[];
|
|
566
|
-
gap: Dimension;
|
|
567
|
-
/** Grid only (#1061): set when `kind` is `'grid'`. */
|
|
568
|
-
columns?: number;
|
|
569
|
-
columnGap?: Dimension;
|
|
570
|
-
rowGap?: Dimension;
|
|
571
|
-
rowAlign?: 'start' | 'center' | 'end' | 'stretch';
|
|
572
|
-
repeat?: {
|
|
573
|
-
frames: string[];
|
|
574
|
-
max?: number;
|
|
575
|
-
};
|
|
576
|
-
/** After `expandRepeats` (#1061): the items laid, each its number and its
|
|
577
|
-
* instances (the main frame's first), in cell order. For a modules group
|
|
578
|
-
* after `expandModules` (#1062): each module, its frames, `module` its
|
|
579
|
-
* instance name. */
|
|
580
|
-
items?: {
|
|
581
|
-
item: number;
|
|
582
|
-
frames: string[];
|
|
583
|
-
module?: string;
|
|
584
|
-
nested?: string;
|
|
585
|
-
}[];
|
|
586
|
-
/** The group takes the page's modules (#1062). */
|
|
587
|
-
modules?: true;
|
|
588
|
-
/** A modules group inside the modules stack of this name (#1088). */
|
|
589
|
-
within?: string;
|
|
590
|
-
/** A modules group inside another (#1088): the module templates it
|
|
591
|
-
* takes; unset, every one. */
|
|
592
|
-
templates?: string[];
|
|
593
|
-
/** A modules group's `overflow.continueIn` (#1062). */
|
|
594
|
-
overflow?: {
|
|
595
|
-
continueIn?: string;
|
|
596
|
-
};
|
|
597
|
-
placement?: ElementPlacement;
|
|
598
|
-
grid?: Required<FrameGridCell>;
|
|
599
|
-
align: 'start' | 'center' | 'end' | 'space-between';
|
|
600
|
-
configPath: string;
|
|
601
|
-
fieldPaths: Record<string, string>;
|
|
602
|
-
}
|
|
603
|
-
export interface ResolvedPageTemplate {
|
|
604
|
-
id: string;
|
|
605
|
-
name?: string;
|
|
606
|
-
area: 'content' | 'trim' | 'bleed';
|
|
607
|
-
grid?: Required<PageTemplateGrid>;
|
|
608
|
-
/** In template order: the root's frames first, then each child's new ones. */
|
|
609
|
-
frames: ResolvedFrame[];
|
|
610
|
-
groups: ResolvedFrameGroup[];
|
|
611
|
-
decoration: DesignSlot;
|
|
612
|
-
/** JSON pointer of each decoration element, in `decoration.elements` order. */
|
|
613
|
-
decorationPaths: string[];
|
|
614
|
-
header?: DesignSlot | false;
|
|
615
|
-
footer?: DesignSlot | false;
|
|
616
|
-
/** JSON pointers of the `header` / `footer` the template takes (its
|
|
617
|
-
* own, or the one of the template it extends), when it sets one (#857). */
|
|
618
|
-
headerPath?: string;
|
|
619
|
-
footerPath?: string;
|
|
620
|
-
overflowTemplate?: string;
|
|
621
|
-
bodyStyle?: string;
|
|
622
|
-
palette?: string;
|
|
623
|
-
spread: boolean;
|
|
624
|
-
gutter: Dimension;
|
|
625
|
-
role: string;
|
|
626
|
-
/** The variant applied, if any. */
|
|
627
|
-
variant?: PageSide;
|
|
628
|
-
/** The modules laid in the template's modules group (#1062), in order:
|
|
629
|
-
* set by `expandModules`. */
|
|
630
|
-
modules?: ResolvedModule[];
|
|
631
|
-
/** A module's width in its group (#1088): set on a module that writes
|
|
632
|
-
* one. */
|
|
633
|
-
width?: ModuleWidth;
|
|
634
|
-
/** A module's `grow` and `shrink` in a row (#1095): set on a module that
|
|
635
|
-
* writes them. */
|
|
636
|
-
grow?: number;
|
|
637
|
-
shrink?: number;
|
|
638
|
-
/** The template and its ancestors, nearest first. */
|
|
639
|
-
chain: string[];
|
|
640
|
-
/** `/pageTemplates/<i>`. */
|
|
641
|
-
configPath: string;
|
|
642
|
-
}
|
|
643
|
-
export interface ResolvedLabelStyle extends LabelStyle {
|
|
644
|
-
/** Left out when the style does not say: a borrowed paragraph style's
|
|
645
|
-
* slant holds then, while `'normal'` written overrides it (#955). */
|
|
646
|
-
fontStyle?: 'normal' | 'italic';
|
|
647
|
-
textTransform?: 'none' | 'uppercase';
|
|
648
|
-
minScale: number;
|
|
649
|
-
}
|
|
9
|
+
export type { FrameSize, FrameGridCell, FrameFitConfig, FrameOverflowConfig, FrameRulesConfig, FrameConfig, FrameLook, FrameLookEntry, FrameRepeatConfig, FrameGroupConfig } from './types/frames.js';
|
|
10
|
+
export type { PageTemplateGrid, DecorationRemoval, TemplateDecoration, PageTemplatePatch, PageTemplate, ModuleWidth, LabelStyle, ComposedPagesConfigKeys } from './types/templates.js';
|
|
11
|
+
export type { PageSide, ResolvePageTemplateOptions, ComposedModuleUse, ResolvedModule, ResolvedFrameFit, ResolvedFrame, ResolvedFrameGroup, ResolvedPageTemplate, ResolvedLabelStyle } from './types/resolved.js';
|
|
650
12
|
export interface SourceRange {
|
|
651
13
|
sourceStart: number;
|
|
652
14
|
sourceEnd: number;
|