postext 1.63.3 → 1.63.4
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
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
import { flowRectToPage } from '../../vdt.js';
|
|
2
|
+
import { resolvedLocale, resolvedDirection } from '../../pipeline/config.js';
|
|
3
|
+
import { dimensionToPx } from '../../units.js';
|
|
4
|
+
import { comicReadingDirection, resolvedComics } from '../../defaults/comics.js';
|
|
5
|
+
import { physicalSide } from '../geometry.js';
|
|
6
|
+
/** The leaf a comic page is laid out on when the page is not one
|
|
7
|
+
* (`comics.viewerLeaf`): its box on the page — the print leaf scaled to
|
|
8
|
+
* `fitWidth` px wide (no taller than `fitHeight`), at the top of the
|
|
9
|
+
* trim, centred across it —, its content area, and the dpi that scale
|
|
10
|
+
* resolves every length of the comic page at. Undefined without one. */
|
|
11
|
+
export function comicViewerLeaf(comics, resolved, trim) {
|
|
12
|
+
const leaf = comics.viewerLeaf;
|
|
13
|
+
if (!leaf || !(leaf.fitWidth > 0))
|
|
14
|
+
return undefined;
|
|
15
|
+
const dpi0 = resolved.page.dpi;
|
|
16
|
+
const w0 = dimensionToPx(leaf.width, dpi0);
|
|
17
|
+
const h0 = dimensionToPx(leaf.height, dpi0);
|
|
18
|
+
if (!(w0 > 0) || !(h0 > 0))
|
|
19
|
+
return undefined;
|
|
20
|
+
const k = Math.min(leaf.fitWidth / w0, leaf.fitHeight && leaf.fitHeight > 0 ? leaf.fitHeight / h0 : Infinity);
|
|
21
|
+
const dpi = dpi0 * k;
|
|
22
|
+
const width = w0 * k;
|
|
23
|
+
const height = h0 * k;
|
|
24
|
+
const box = { x: trim.x + Math.max(0, (trim.width - width) / 2), y: trim.y, width, height };
|
|
25
|
+
const m = leaf.margins ?? {};
|
|
26
|
+
const at = (d) => (d ? dimensionToPx(d, dpi) : 0);
|
|
27
|
+
const left = at(m.left);
|
|
28
|
+
const right = at(m.right);
|
|
29
|
+
const top = at(m.top);
|
|
30
|
+
const bottom = at(m.bottom);
|
|
31
|
+
const content = { x: box.x + left, y: box.y + top, width: Math.max(0, width - left - right), height: Math.max(0, height - top - bottom) };
|
|
32
|
+
return { box, content, dpi };
|
|
33
|
+
}
|
|
34
|
+
/** A Dimension written in an attribute (`4mm`, `0.5cm`, `6pt`, `12px`, a
|
|
35
|
+
* bare number in mm), or undefined. */
|
|
36
|
+
export function parseComicDimension(value) {
|
|
37
|
+
if (value === undefined)
|
|
38
|
+
return undefined;
|
|
39
|
+
// The number is `4`, `0.5` or `.5`, each written one way only (linear).
|
|
40
|
+
const m = /^([0-9]+(?:\.[0-9]+)?|\.[0-9]+)(?:\s*(mm|cm|in|pt|px))?$/.exec(value.trim());
|
|
41
|
+
if (!m)
|
|
42
|
+
return undefined;
|
|
43
|
+
return { value: Number(m[1]), unit: m[2] ?? 'mm' };
|
|
44
|
+
}
|
|
45
|
+
/** Whether a flag attribute is on: present, and not `false` / `no` / `0`. */
|
|
46
|
+
export function flagOn(value) {
|
|
47
|
+
if (value === undefined)
|
|
48
|
+
return undefined;
|
|
49
|
+
const t = value.trim().toLowerCase();
|
|
50
|
+
return !(t === 'false' || t === 'no' || t === '0' || t === 'none');
|
|
51
|
+
}
|
|
52
|
+
/** The reading direction of a page: its `direction` attribute, else the
|
|
53
|
+
* document's ({@link comicReadingDirection}): `'auto'` is `'rtl'` in a
|
|
54
|
+
* right-to-left document (an Arabic edition mirrors its pages), in a
|
|
55
|
+
* vertical one and in a Japanese or Traditional Chinese one (a localized
|
|
56
|
+
* edition of a Western comic reads in its language's direction), and the
|
|
57
|
+
* direction the art was drawn for otherwise (`comics.artDirection`: a
|
|
58
|
+
* manga stays right to left in any language). Every comic of the
|
|
59
|
+
* document — pages, spreads, strips, their lettering order and the
|
|
60
|
+
* guided views — reads in the direction this returns. */
|
|
61
|
+
export function comicPageDirection(source, comics, resolved) {
|
|
62
|
+
const own = source.attrs.direction?.trim().toLowerCase() ?? source.attrs.dir?.trim().toLowerCase();
|
|
63
|
+
if (own === 'ltr' || own === 'rtl')
|
|
64
|
+
return own;
|
|
65
|
+
return comicReadingDirection(comics, {
|
|
66
|
+
locale: resolvedLocale(resolved),
|
|
67
|
+
direction: resolvedDirection(resolved),
|
|
68
|
+
writingMode: resolved.layout.writingMode,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
/** A panel's `pad` (CSS-like, one to four values: top, end, bottom,
|
|
72
|
+
* start; each a Dimension or a percentage of the cell, `pad="0 12%"`) as
|
|
73
|
+
* px insets of a cell `cell` wide and high on a page read in
|
|
74
|
+
* `direction`. Undefined when unset or unreadable. */
|
|
75
|
+
export function comicPanelPadding(value, cell, direction, dpi) {
|
|
76
|
+
const parts = value?.trim().split(/[\s,]+/).filter(Boolean) ?? [];
|
|
77
|
+
if (parts.length === 0 || parts.length > 4)
|
|
78
|
+
return undefined;
|
|
79
|
+
const px = (v, along) => {
|
|
80
|
+
const pct = /^\s*(-?[0-9]*\.?[0-9]+)\s*%\s*$/.exec(v);
|
|
81
|
+
if (pct)
|
|
82
|
+
return (Number(pct[1]) / 100) * along;
|
|
83
|
+
if (/^\s*0+(?:\.0*)?\s*$/.test(v))
|
|
84
|
+
return 0;
|
|
85
|
+
const d = parseComicDimension(v);
|
|
86
|
+
return d ? dimensionToPx(d, dpi) : undefined;
|
|
87
|
+
};
|
|
88
|
+
const [t, e = t, b = t, st = e] = parts;
|
|
89
|
+
const top = px(t, cell.height);
|
|
90
|
+
const end = px(e, cell.width);
|
|
91
|
+
const bottom = px(b, cell.height);
|
|
92
|
+
const start = px(st, cell.width);
|
|
93
|
+
if (top === undefined || end === undefined || bottom === undefined || start === undefined)
|
|
94
|
+
return undefined;
|
|
95
|
+
const clampV = (v) => Math.max(0, v);
|
|
96
|
+
return direction === 'ltr'
|
|
97
|
+
? { top: clampV(top), right: clampV(end), bottom: clampV(bottom), left: clampV(start) }
|
|
98
|
+
: { top: clampV(top), right: clampV(start), bottom: clampV(bottom), left: clampV(end) };
|
|
99
|
+
}
|
|
100
|
+
/** A colour written in an attribute: `#rgb` / `#rrggbb`, or a palette id. */
|
|
101
|
+
export function attrColor(value, palette) {
|
|
102
|
+
const v = value?.trim();
|
|
103
|
+
if (!v)
|
|
104
|
+
return undefined;
|
|
105
|
+
if (/^#[0-9a-f]{3}(?:[0-9a-f]{3})?(?:[0-9a-f]{2})?$/i.test(v))
|
|
106
|
+
return v;
|
|
107
|
+
if (v === 'none' || v === 'transparent')
|
|
108
|
+
return 'transparent';
|
|
109
|
+
return palette?.find((e) => e.id === v)?.value.hex;
|
|
110
|
+
}
|
|
111
|
+
/** The sides of the frame a panel bleeds through: the page's `bleed`, the
|
|
112
|
+
* panel's (`bleed`, `bleed="top start"`, `bleed=false`), else its style's. */
|
|
113
|
+
export function bleedSides(page, panel, style, direction) {
|
|
114
|
+
const all = ['top', 'bottom', 'left', 'right'];
|
|
115
|
+
const own = panel?.attrs.bleed;
|
|
116
|
+
if (own !== undefined) {
|
|
117
|
+
const t = own.trim().toLowerCase();
|
|
118
|
+
if (t === '' || t === 'true' || t === 'all')
|
|
119
|
+
return all;
|
|
120
|
+
if (t === 'false' || t === 'none' || t === 'no')
|
|
121
|
+
return [];
|
|
122
|
+
return t.split(/[\s,]+/).map((s) => physicalSide(s, direction)).filter((s) => s !== undefined);
|
|
123
|
+
}
|
|
124
|
+
if (flagOn(page.attrs.bleed))
|
|
125
|
+
return all;
|
|
126
|
+
return style.bleed ? all : [];
|
|
127
|
+
}
|
|
128
|
+
/** The picture of a resource a panel names, if it is one. */
|
|
129
|
+
export function pictureOf(resources, id) {
|
|
130
|
+
if (!id)
|
|
131
|
+
return undefined;
|
|
132
|
+
const r = resources.get(id);
|
|
133
|
+
if (!r)
|
|
134
|
+
return undefined;
|
|
135
|
+
if (r.kind === 'bitmap' && r.bitmap)
|
|
136
|
+
return { resource: r, kind: 'bitmap', fileId: r.bitmap.fileId, format: r.bitmap.format, width: r.bitmap.width, height: r.bitmap.height };
|
|
137
|
+
if (r.kind === 'svg' && r.svg)
|
|
138
|
+
return { resource: r, kind: 'svg', fileId: r.svg.fileId, width: r.svg.width ?? 0, height: r.svg.height ?? 0 };
|
|
139
|
+
return undefined;
|
|
140
|
+
}
|
|
141
|
+
/** The frame of a page: the content area on the sheet, or the trim inset
|
|
142
|
+
* by `comics.frame.margins`. */
|
|
143
|
+
export function comicPageFrame(ctx, comics = resolvedComics(ctx.resolved)) {
|
|
144
|
+
const m = comics.frame.margins;
|
|
145
|
+
if (!m)
|
|
146
|
+
return ctx.contentBox ?? flowRectToPage(ctx.page, ctx.page.contentArea);
|
|
147
|
+
const dpi = ctx.resolved.page.dpi;
|
|
148
|
+
const t = ctx.trimBox;
|
|
149
|
+
let left = dimensionToPx(m.left, dpi);
|
|
150
|
+
let right = dimensionToPx(m.right, dpi);
|
|
151
|
+
if (m.mirror && ctx.mirrorMargins)
|
|
152
|
+
[left, right] = [right, left];
|
|
153
|
+
const top = dimensionToPx(m.top, dpi);
|
|
154
|
+
const bottom = dimensionToPx(m.bottom, dpi);
|
|
155
|
+
return { x: t.x + left, y: t.y + top, width: Math.max(0, t.width - left - right), height: Math.max(0, t.height - top - bottom) };
|
|
156
|
+
}
|
|
157
|
+
/** The panel gutters (px): the page's `gutter` (one value for both, or
|
|
158
|
+
* `"rows columns"`), else the config's. */
|
|
159
|
+
export function comicGutters(source, comics, dpi) {
|
|
160
|
+
const parts = source.attrs.gutter?.trim().split(/\s+/).filter(Boolean) ?? [];
|
|
161
|
+
const a = parseComicDimension(parts[0]);
|
|
162
|
+
const b = parseComicDimension(parts[1]) ?? a;
|
|
163
|
+
return {
|
|
164
|
+
rows: dimensionToPx(a ?? comics.gutter.horizontal, dpi),
|
|
165
|
+
columns: dimensionToPx(b ?? comics.gutter.vertical, dpi),
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
//# sourceMappingURL=settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"settings.js","sourceRoot":"","sources":["../../../src/comics/layoutPage/settings.ts"],"names":[],"mappings":"AAGA,OAAO,EAAyC,cAAc,EAAE,MAAM,cAAc,CAAC;AACrF,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACjF,OAAO,EAAuB,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAInE;;;;yEAIyE;AACzE,MAAM,UAAU,eAAe,CAC7B,MAA4B,EAC5B,QAAwB,EACxB,IAAiB;IAEjB,MAAM,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC;IAC/B,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QAAE,OAAO,SAAS,CAAC;IACpD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EAAE,MAA4B,EAAE,GAAW;IAC7F,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IAC7E,MAAM,CAAC,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACxC,MAAM,CAAC,GAAG,mBAAmB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;IAC7C,OAAO;QACL,IAAI,EAAE,aAAa,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,UAAU,EAAE,GAAG,CAAC;QACvD,OAAO,EAAE,aAAa,CAAC,CAAC,IAAI,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,GAAG,CAAC;KACzD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import type { Resource, ResolvedBalloonStyleConfig, ResolvedComicsConfig } from '../../types.js';
|
|
2
|
+
import type { VDTComicPanel, VDTPoint, BoundingBox, VDTComicBalloon } from '../../vdt.js';
|
|
3
|
+
import type { LetteringStyle, LetteringAnchor } from '../lettering/types.js';
|
|
4
|
+
import type { ComicScriptItem } from '../types.js';
|
|
5
|
+
/** A sound effect set in columns breaks after five characters at most
|
|
6
|
+
* (its letters are big: a long column would run out of the panel). */
|
|
7
|
+
export declare function sfxColumns(role: ComicScriptItem['role'], style: LetteringStyle): LetteringStyle;
|
|
8
|
+
/** A point given in fractions of a panel's picture (of its cell, for a
|
|
9
|
+
* panel without one) on the page. */
|
|
10
|
+
export declare function panelPoint(panel: VDTComicPanel, at: {
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
}): VDTPoint;
|
|
14
|
+
/** The anchors of a panel's picture on the page, each with whether its
|
|
15
|
+
* mouth is in view. */
|
|
16
|
+
export declare function panelAnchors(panel: VDTComicPanel, resource: Resource | undefined): LetteringAnchor[];
|
|
17
|
+
/** The faces a panel's picture marks for people who do not speak
|
|
18
|
+
* (`Resource.faces`, #726), on the page: through the crop and the mirror,
|
|
19
|
+
* as an anchor's face is. */
|
|
20
|
+
export declare function bystanderFaces(panel: VDTComicPanel, resource: Resource | undefined): BoundingBox[];
|
|
21
|
+
export declare function overlaps(a: BoundingBox, b: BoundingBox): boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Guards over the head of every speaker, so that balloons do not land on a
|
|
24
|
+
* hat or a head of hair. Each is an avoid zone (a balloon may still cover
|
|
25
|
+
* it as a last resort; tails run to the mouth as usual):
|
|
26
|
+
* - a marked `face` (a speaker's, or a bystander's from `Resource.faces`,
|
|
27
|
+
* #726) grown upward by 0.4 of its height and outward by a fifth of its
|
|
28
|
+
* width (hair, a hat brim; the face itself stays a hard no-go);
|
|
29
|
+
* - with no face, a box of a few ems about the mouth (and the head point),
|
|
30
|
+
* mostly above it, sized from the mouth-to-head distance when the head
|
|
31
|
+
* is marked.
|
|
32
|
+
* {@link headZones} adds the larger head a close shot may have, as a
|
|
33
|
+
* softer preference.
|
|
34
|
+
*/
|
|
35
|
+
export declare function headGuards(panel: VDTComicPanel, resource: Resource | undefined, em: number): BoundingBox[];
|
|
36
|
+
/** The head a speaker with no marked face may have in a closer shot (a
|
|
37
|
+
* quarter of the shorter side of the cell, above the mouth), as a region
|
|
38
|
+
* better left uncovered: a cost per area, never a fault, so that in a
|
|
39
|
+
* long shot (small figures) a balloon still comes close. */
|
|
40
|
+
export declare function headZones(panel: VDTComicPanel, resource: Resource | undefined): (BoundingBox & {
|
|
41
|
+
weight: number;
|
|
42
|
+
})[];
|
|
43
|
+
/** The body under every marked face (a figure's chest and arms, two
|
|
44
|
+
* hugging characters), as a region better left uncovered: a balloon goes
|
|
45
|
+
* over the background before it goes over the action. A cost per area,
|
|
46
|
+
* never a fault; each zone names its figure (`owner`), so that a balloon
|
|
47
|
+
* costs more over another character than over its own speaker. The
|
|
48
|
+
* figure under a bystander's face (`Resource.faces`, #726) is nobody's
|
|
49
|
+
* own: its owner is a name no script key can be (a key holds no space),
|
|
50
|
+
* so every balloon pays for it as for another character's. */
|
|
51
|
+
export declare function bodyZones(panel: VDTComicPanel, resource: Resource | undefined): (BoundingBox & {
|
|
52
|
+
weight: number;
|
|
53
|
+
owner: string;
|
|
54
|
+
})[];
|
|
55
|
+
/** The picture's safe area as a region better left uncovered, when the art
|
|
56
|
+
* marks no face (a speaker's or a bystander's) and no avoid zone (nothing
|
|
57
|
+
* else tells the lettering what matters in it). */
|
|
58
|
+
export declare function softSafeArea(panel: VDTComicPanel, resource: Resource | undefined): BoundingBox[];
|
|
59
|
+
/** Text on the art with no balloon (a `none` shape) and no halo of its
|
|
60
|
+
* own gets one, light under dark letters and dark under light ones: the
|
|
61
|
+
* white outline letterers give lettering laid on a picture (#559). */
|
|
62
|
+
export declare function withAutoHalo(style: LetteringStyle, st: ResolvedBalloonStyleConfig): LetteringStyle;
|
|
63
|
+
/** A box butted against the border of a framed panel (a caption at a
|
|
64
|
+
* corner) is outlined at the border's weight, so that its edges and the
|
|
65
|
+
* border read as one line. */
|
|
66
|
+
export declare function buttedCaption(style: LetteringStyle, panel: VDTComicPanel, at: string | undefined): LetteringStyle;
|
|
67
|
+
/** Whether a balloon's outline is an oval or grows from one (a cloud, a
|
|
68
|
+
* burst): its box's corners are no part of it. */
|
|
69
|
+
export declare function roundBalloon(comics: ResolvedComicsConfig, b: VDTComicBalloon): boolean;
|
|
70
|
+
/** A balloon's tail as drawn, from its body to its tip (the body taken as
|
|
71
|
+
* the oval its box holds); undefined for a balloon with none. */
|
|
72
|
+
export declare function drawnTail(b: VDTComicBalloon): [VDTPoint, VDTPoint] | undefined;
|
|
73
|
+
/** A script's `tail=` as the lettering reads it. `left` and `right` name
|
|
74
|
+
* a side of the panel's picture as stored (#727), as `at=` and `to=`
|
|
75
|
+
* name points of it: on the page that is the same side of the panel, and
|
|
76
|
+
* the other one when the picture is mirrored. A panel with no picture
|
|
77
|
+
* reads them as the page's. The other values pass through. */
|
|
78
|
+
export declare function tailSideOnPage(tail: ComicScriptItem['tail'], panel: VDTComicPanel): ComicScriptItem['tail'];
|
|
79
|
+
//# sourceMappingURL=zones.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zones.d.ts","sourceRoot":"","sources":["../../../src/comics/layoutPage/zones.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,0BAA0B,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACjG,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAI1F,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD;uEACuE;AACvE,wBAAgB,UAAU,CAAC,IAAI,EAAE,eAAe,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,cAAc,GAAG,cAAc,CAE/F;AAED;sCACsC;AACtC,wBAAgB,UAAU,CAAC,KAAK,EAAE,aAAa,EAAE,EAAE,EAAE;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,QAAQ,CAGvF;AAED;wBACwB;AACxB,wBAAgB,YAAY,CAAC,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,GAAG,SAAS,GAAG,eAAe,EAAE,CAapG;AAED;;8BAE8B;AAC9B,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,EAAE,CAIlG;AAUD,wBAAgB,QAAQ,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,EAAE,WAAW,GAAG,OAAO,CAEhE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,UAAU,CAAC,KAAK,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0,0 +1,179 @@
|
|
|
1
|
+
import { pickBalloonStyle } from '../../defaults/comics.js';
|
|
2
|
+
import { comicArtPointToPage, comicArtRectToPage } from '../art.js';
|
|
3
|
+
import { pointInPolygon } from '../geometry.js';
|
|
4
|
+
/** A sound effect set in columns breaks after five characters at most
|
|
5
|
+
* (its letters are big: a long column would run out of the panel). */
|
|
6
|
+
export function sfxColumns(role, style) {
|
|
7
|
+
return role === 'sfx' ? { ...style, maxColumnChars: Math.min(5, style.maxColumnChars ?? 5) } : style;
|
|
8
|
+
}
|
|
9
|
+
/** A point given in fractions of a panel's picture (of its cell, for a
|
|
10
|
+
* panel without one) on the page. */
|
|
11
|
+
export function panelPoint(panel, at) {
|
|
12
|
+
if (panel.art)
|
|
13
|
+
return comicArtPointToPage(panel.art, at.x, at.y);
|
|
14
|
+
return { x: panel.bbox.x + at.x * panel.bbox.width, y: panel.bbox.y + at.y * panel.bbox.height };
|
|
15
|
+
}
|
|
16
|
+
/** The anchors of a panel's picture on the page, each with whether its
|
|
17
|
+
* mouth is in view. */
|
|
18
|
+
export function panelAnchors(panel, resource) {
|
|
19
|
+
const art = panel.art;
|
|
20
|
+
if (!art || !resource?.anchors)
|
|
21
|
+
return [];
|
|
22
|
+
return resource.anchors.map((a) => {
|
|
23
|
+
const mouth = comicArtPointToPage(art, a.x, a.y);
|
|
24
|
+
return {
|
|
25
|
+
id: a.id,
|
|
26
|
+
mouth,
|
|
27
|
+
...(a.head ? { head: comicArtPointToPage(art, a.head.x, a.head.y) } : {}),
|
|
28
|
+
...(a.face ? { face: comicArtRectToPage(art, a.face) } : {}),
|
|
29
|
+
visible: pointInPolygon(panel.polygon, mouth),
|
|
30
|
+
};
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/** The faces a panel's picture marks for people who do not speak
|
|
34
|
+
* (`Resource.faces`, #726), on the page: through the crop and the mirror,
|
|
35
|
+
* as an anchor's face is. */
|
|
36
|
+
export function bystanderFaces(panel, resource) {
|
|
37
|
+
const art = panel.art;
|
|
38
|
+
if (!art || !resource?.faces)
|
|
39
|
+
return [];
|
|
40
|
+
return resource.faces.map((r) => comicArtRectToPage(art, r));
|
|
41
|
+
}
|
|
42
|
+
/** The guard over a marked face: the box grown upward by 0.4 of its
|
|
43
|
+
* height and outward by a fifth of its width (hair, a hat brim). */
|
|
44
|
+
function faceGuard(f) {
|
|
45
|
+
const up = 0.4 * f.height;
|
|
46
|
+
const side = 0.2 * f.width;
|
|
47
|
+
return { x: f.x - side, y: f.y - up, width: f.width + 2 * side, height: f.height + up };
|
|
48
|
+
}
|
|
49
|
+
export function overlaps(a, b) {
|
|
50
|
+
return a.x < b.x + b.width && b.x < a.x + a.width && a.y < b.y + b.height && b.y < a.y + a.height;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Guards over the head of every speaker, so that balloons do not land on a
|
|
54
|
+
* hat or a head of hair. Each is an avoid zone (a balloon may still cover
|
|
55
|
+
* it as a last resort; tails run to the mouth as usual):
|
|
56
|
+
* - a marked `face` (a speaker's, or a bystander's from `Resource.faces`,
|
|
57
|
+
* #726) grown upward by 0.4 of its height and outward by a fifth of its
|
|
58
|
+
* width (hair, a hat brim; the face itself stays a hard no-go);
|
|
59
|
+
* - with no face, a box of a few ems about the mouth (and the head point),
|
|
60
|
+
* mostly above it, sized from the mouth-to-head distance when the head
|
|
61
|
+
* is marked.
|
|
62
|
+
* {@link headZones} adds the larger head a close shot may have, as a
|
|
63
|
+
* softer preference.
|
|
64
|
+
*/
|
|
65
|
+
export function headGuards(panel, resource, em) {
|
|
66
|
+
const art = panel.art;
|
|
67
|
+
if (!art || !resource)
|
|
68
|
+
return [];
|
|
69
|
+
const speakers = (resource.anchors ?? []).filter((a) => a.id !== 'sfx').map((a) => {
|
|
70
|
+
if (a.face)
|
|
71
|
+
return faceGuard(comicArtRectToPage(art, a.face));
|
|
72
|
+
const mouth = comicArtPointToPage(art, a.x, a.y);
|
|
73
|
+
const head = a.head ? comicArtPointToPage(art, a.head.x, a.head.y) : mouth;
|
|
74
|
+
const d = Math.hypot(head.x - mouth.x, head.y - mouth.y);
|
|
75
|
+
const size = d > 0.5 * em ? Math.max(2.4 * d, 3.3 * em) : 3.3 * em;
|
|
76
|
+
const cx = (mouth.x + head.x) / 2;
|
|
77
|
+
const half = Math.max(1.6 * em, 0.5 * size);
|
|
78
|
+
const y0 = Math.min(mouth.y, head.y) - Math.max(2.9 * em, 0.95 * size);
|
|
79
|
+
const y1 = Math.max(mouth.y, head.y) + 0.7 * em;
|
|
80
|
+
return { x: cx - half, y: y0, width: 2 * half, height: y1 - y0 };
|
|
81
|
+
});
|
|
82
|
+
return [...speakers, ...bystanderFaces(panel, resource).map(faceGuard)];
|
|
83
|
+
}
|
|
84
|
+
/** The head a speaker with no marked face may have in a closer shot (a
|
|
85
|
+
* quarter of the shorter side of the cell, above the mouth), as a region
|
|
86
|
+
* better left uncovered: a cost per area, never a fault, so that in a
|
|
87
|
+
* long shot (small figures) a balloon still comes close. */
|
|
88
|
+
export function headZones(panel, resource) {
|
|
89
|
+
const art = panel.art;
|
|
90
|
+
if (!art || !resource?.anchors)
|
|
91
|
+
return [];
|
|
92
|
+
const size = 0.22 * Math.min(panel.bbox.width, panel.bbox.height);
|
|
93
|
+
return resource.anchors.filter((a) => a.id !== 'sfx' && !a.face).map((a) => {
|
|
94
|
+
const mouth = comicArtPointToPage(art, a.x, a.y);
|
|
95
|
+
return { x: mouth.x - 0.45 * size, y: mouth.y - 1.05 * size, width: 0.9 * size, height: 1.25 * size, weight: 1.5 };
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
/** The body under every marked face (a figure's chest and arms, two
|
|
99
|
+
* hugging characters), as a region better left uncovered: a balloon goes
|
|
100
|
+
* over the background before it goes over the action. A cost per area,
|
|
101
|
+
* never a fault; each zone names its figure (`owner`), so that a balloon
|
|
102
|
+
* costs more over another character than over its own speaker. The
|
|
103
|
+
* figure under a bystander's face (`Resource.faces`, #726) is nobody's
|
|
104
|
+
* own: its owner is a name no script key can be (a key holds no space),
|
|
105
|
+
* so every balloon pays for it as for another character's. */
|
|
106
|
+
export function bodyZones(panel, resource) {
|
|
107
|
+
const art = panel.art;
|
|
108
|
+
if (!art || !resource)
|
|
109
|
+
return [];
|
|
110
|
+
const under = (f, owner) => ({ x: f.x - 0.3 * f.width, y: f.y + f.height, width: 1.6 * f.width, height: 2 * f.height, weight: 1.5, owner });
|
|
111
|
+
return [
|
|
112
|
+
...(resource.anchors ?? []).filter((a) => a.id !== 'sfx' && a.face).map((a) => under(comicArtRectToPage(art, a.face), a.id)),
|
|
113
|
+
...bystanderFaces(panel, resource).map((f, i) => under(f, `bystander face ${i}`)),
|
|
114
|
+
];
|
|
115
|
+
}
|
|
116
|
+
/** The picture's safe area as a region better left uncovered, when the art
|
|
117
|
+
* marks no face (a speaker's or a bystander's) and no avoid zone (nothing
|
|
118
|
+
* else tells the lettering what matters in it). */
|
|
119
|
+
export function softSafeArea(panel, resource) {
|
|
120
|
+
const art = panel.art;
|
|
121
|
+
if (!art || !resource?.safeArea)
|
|
122
|
+
return [];
|
|
123
|
+
if ((resource.avoid?.length ?? 0) > 0 || (resource.faces?.length ?? 0) > 0 || (resource.anchors ?? []).some((a) => a.face))
|
|
124
|
+
return [];
|
|
125
|
+
return [comicArtRectToPage(art, resource.safeArea)];
|
|
126
|
+
}
|
|
127
|
+
/** Text on the art with no balloon (a `none` shape) and no halo of its
|
|
128
|
+
* own gets one, light under dark letters and dark under light ones: the
|
|
129
|
+
* white outline letterers give lettering laid on a picture (#559). */
|
|
130
|
+
export function withAutoHalo(style, st) {
|
|
131
|
+
if (st.shape !== 'none' || st.halo !== undefined || style.halo)
|
|
132
|
+
return style;
|
|
133
|
+
const hex = style.color.replace('#', '');
|
|
134
|
+
const v = hex.length >= 6 ? hex.slice(0, 6) : hex.split('').map((c) => c + c).join('');
|
|
135
|
+
const [r, g, b] = [0, 2, 4].map((i) => parseInt(v.slice(i, i + 2), 16) / 255);
|
|
136
|
+
const lum = 0.2126 * r + 0.7152 * g + 0.0722 * b;
|
|
137
|
+
return { ...style, halo: Math.max(0.12 * style.fontSizePx, 1), haloColor: lum < 0.5 ? '#ffffff' : '#000000' };
|
|
138
|
+
}
|
|
139
|
+
/** A box butted against the border of a framed panel (a caption at a
|
|
140
|
+
* corner) is outlined at the border's weight, so that its edges and the
|
|
141
|
+
* border read as one line. */
|
|
142
|
+
export function buttedCaption(style, panel, at) {
|
|
143
|
+
const butted = style.butt && style.shape !== 'none' && (at !== undefined || (style.position !== undefined && style.position !== 'auto'));
|
|
144
|
+
if (!butted || panel.border.style === 'none' || !(panel.border.width > 0) || style.strokeWidth <= 0)
|
|
145
|
+
return style;
|
|
146
|
+
return { ...style, strokeWidth: panel.border.width };
|
|
147
|
+
}
|
|
148
|
+
/** Whether a balloon's outline is an oval or grows from one (a cloud, a
|
|
149
|
+
* burst): its box's corners are no part of it. */
|
|
150
|
+
export function roundBalloon(comics, b) {
|
|
151
|
+
if (b.kind !== 'balloon' || !b.shape)
|
|
152
|
+
return false;
|
|
153
|
+
const shape = pickBalloonStyle(comics, b.style)?.shape;
|
|
154
|
+
return shape !== 'rectangle' && shape !== 'rounded' && shape !== 'none';
|
|
155
|
+
}
|
|
156
|
+
/** A balloon's tail as drawn, from its body to its tip (the body taken as
|
|
157
|
+
* the oval its box holds); undefined for a balloon with none. */
|
|
158
|
+
export function drawnTail(b) {
|
|
159
|
+
if (!b.tailTip)
|
|
160
|
+
return undefined;
|
|
161
|
+
const c = { x: b.bbox.x + b.bbox.width / 2, y: b.bbox.y + b.bbox.height / 2 };
|
|
162
|
+
const dx = b.tailTip.x - c.x;
|
|
163
|
+
const dy = b.tailTip.y - c.y;
|
|
164
|
+
const k = Math.hypot(dx / (b.bbox.width / 2 || 1), dy / (b.bbox.height / 2 || 1));
|
|
165
|
+
if (!(k > 1))
|
|
166
|
+
return undefined;
|
|
167
|
+
return [{ x: c.x + dx / k, y: c.y + dy / k }, { x: b.tailTip.x, y: b.tailTip.y }];
|
|
168
|
+
}
|
|
169
|
+
/** A script's `tail=` as the lettering reads it. `left` and `right` name
|
|
170
|
+
* a side of the panel's picture as stored (#727), as `at=` and `to=`
|
|
171
|
+
* name points of it: on the page that is the same side of the panel, and
|
|
172
|
+
* the other one when the picture is mirrored. A panel with no picture
|
|
173
|
+
* reads them as the page's. The other values pass through. */
|
|
174
|
+
export function tailSideOnPage(tail, panel) {
|
|
175
|
+
if ((tail === 'left' || tail === 'right') && panel.art?.mirrored)
|
|
176
|
+
return tail === 'left' ? 'right' : 'left';
|
|
177
|
+
return tail;
|
|
178
|
+
}
|
|
179
|
+
//# sourceMappingURL=zones.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zones.js","sourceRoot":"","sources":["../../../src/comics/layoutPage/zones.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAIhD;uEACuE;AACvE,MAAM,UAAU,UAAU,CAAC,IAA6B,EAAE,KAAqB;IAC7E,OAAO,IAAI,KAAK,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,KAAK,EAAE,cAAc,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC;AACvG,CAAC;AAED;sCACsC;AACtC,MAAM,UAAU,UAAU,CAAC,KAAoB,EAAE,EAA4B;IAC3E,IAAI,KAAK,CAAC,GAAG;QAAE,OAAO,mBAAmB,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IACjE,OAAO,EAAE,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,C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AE,CAAC,CAAC;AACpF,CAAC;AAED;;;;+DAI+D;AAC/D,MAAM,UAAU,cAAc,CAAC,IAA6B,EAAE,KAAoB;IAChF,IAAI,CAAC,IAAI,KAAK,MAAM,IAAI,IAAI,KAAK,OAAO,CAAC,IAAI,KAAK,CAAC,GAAG,EAAE,QAAQ;QAAE,OAAO,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC;IAC5G,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -8,10 +8,14 @@
|
|
|
8
8
|
* mode or direction; the reading direction of the panels comes from
|
|
9
9
|
* `comics.readingDirection` (or the page's `direction`).
|
|
10
10
|
*/
|
|
11
|
-
import type {
|
|
12
|
-
import type {
|
|
13
|
-
import type {
|
|
14
|
-
|
|
11
|
+
import type { Resource } from '../types.js';
|
|
12
|
+
import type { ResolvedConfig, VDTPage, BoundingBox, VDTComicPage } from '../vdt.js';
|
|
13
|
+
import type { ComicPageSource } from './types.js';
|
|
14
|
+
export { comicViewerLeaf, parseComicDimension, comicPageDirection, comicPanelPadding, comicPageFrame } from './layoutPage/settings.js';
|
|
15
|
+
export { comicPageLayoutWarnings, comicPanelSources, copyComicPanelSources, setComicLayoutWarnings } from './layoutPage/records.js';
|
|
16
|
+
export { comicLetteringLocale, comicLetteringVertical, comicLetteringStyle } from './layoutPage/letteringStyle.js';
|
|
17
|
+
export { letterPanels } from './layoutPage/letterPanels.js';
|
|
18
|
+
export type { LetterPanelsInput } from './layoutPage/letterPanels.js';
|
|
15
19
|
/** What the build hands the comic page layout. */
|
|
16
20
|
export interface ComicPageContext {
|
|
17
21
|
resolved: ResolvedConfig;
|
|
@@ -34,115 +38,6 @@ export interface ComicPageContext {
|
|
|
34
38
|
* its own, `comics.viewerLeaf`). */
|
|
35
39
|
contentBox?: BoundingBox;
|
|
36
40
|
}
|
|
37
|
-
/** The leaf a comic page is laid out on when the page is not one
|
|
38
|
-
* (`comics.viewerLeaf`): its box on the page — the print leaf scaled to
|
|
39
|
-
* `fitWidth` px wide (no taller than `fitHeight`), at the top of the
|
|
40
|
-
* trim, centred across it —, its content area, and the dpi that scale
|
|
41
|
-
* resolves every length of the comic page at. Undefined without one. */
|
|
42
|
-
export declare function comicViewerLeaf(comics: ResolvedComicsConfig, resolved: ResolvedConfig, trim: BoundingBox): {
|
|
43
|
-
box: BoundingBox;
|
|
44
|
-
content: BoundingBox;
|
|
45
|
-
dpi: number;
|
|
46
|
-
} | undefined;
|
|
47
|
-
/** A Dimension written in an attribute (`4mm`, `0.5cm`, `6pt`, `12px`, a
|
|
48
|
-
* bare number in mm), or undefined. */
|
|
49
|
-
export declare function parseComicDimension(value: string | undefined): Dimension | undefined;
|
|
50
|
-
/** The reading direction of a page: its `direction` attribute, else the
|
|
51
|
-
* document's ({@link comicReadingDirection}): `'auto'` is `'rtl'` in a
|
|
52
|
-
* right-to-left document (an Arabic edition mirrors its pages), in a
|
|
53
|
-
* vertical one and in a Japanese or Traditional Chinese one (a localized
|
|
54
|
-
* edition of a Western comic reads in its language's direction), and the
|
|
55
|
-
* direction the art was drawn for otherwise (`comics.artDirection`: a
|
|
56
|
-
* manga stays right to left in any language). Every comic of the
|
|
57
|
-
* document — pages, spreads, strips, their lettering order and the
|
|
58
|
-
* guided views — reads in the direction this returns. */
|
|
59
|
-
export declare function comicPageDirection(source: Pick<ComicPageSource, 'attrs'>, comics: ResolvedComicsConfig, resolved: ResolvedConfig): 'ltr' | 'rtl';
|
|
60
|
-
/** A panel's `pad` (CSS-like, one to four values: top, end, bottom,
|
|
61
|
-
* start; each a Dimension or a percentage of the cell, `pad="0 12%"`) as
|
|
62
|
-
* px insets of a cell `cell` wide and high on a page read in
|
|
63
|
-
* `direction`. Undefined when unset or unreadable. */
|
|
64
|
-
export declare function comicPanelPadding(value: string | undefined, cell: Pick<BoundingBox, 'width' | 'height'>, direction: 'ltr' | 'rtl', dpi: number): {
|
|
65
|
-
top: number;
|
|
66
|
-
right: number;
|
|
67
|
-
bottom: number;
|
|
68
|
-
left: number;
|
|
69
|
-
} | undefined;
|
|
70
|
-
/** The frame of a page: the content area on the sheet, or the trim inset
|
|
71
|
-
* by `comics.frame.margins`. */
|
|
72
|
-
export declare function comicPageFrame(ctx: Pick<ComicPageContext, 'resolved' | 'page' | 'trimBox' | 'mirrorMargins' | 'contentBox'>, comics?: ResolvedComicsConfig): BoundingBox;
|
|
73
|
-
/** The warnings the layout of a comic page found (`comicPanelLetterbox`,
|
|
74
|
-
* `comicBalloonOverflow`). */
|
|
75
|
-
export declare function comicPageLayoutWarnings(comic: VDTComicPage): readonly ContentWarning[];
|
|
76
|
-
/** The source of each panel of a comic laid out by {@link layoutComicFrame}
|
|
77
|
-
* (undefined for an empty cell), in panel order. Internal to the comics
|
|
78
|
-
* modules. */
|
|
79
|
-
export declare function comicPanelSources(comic: VDTComicPage): readonly (ComicPanelSource | undefined)[];
|
|
80
|
-
/** The panel sources of a comic laid out whole, given to a part of it (a
|
|
81
|
-
* half of a spread) or a copy moved elsewhere (a strip on the sheet): the
|
|
82
|
-
* sources stay indexed by the panels' `index`. Internal to the comics
|
|
83
|
-
* modules. */
|
|
84
|
-
export declare function copyComicPanelSources(from: VDTComicPage, to: VDTComicPage): void;
|
|
85
|
-
/** Set the layout warnings of a comic laid out in parts (each page of a
|
|
86
|
-
* spread gets those of its panels). Internal to the comics modules. */
|
|
87
|
-
export declare function setComicLayoutWarnings(comic: VDTComicPage, warnings: readonly ContentWarning[]): void;
|
|
88
|
-
/** The document language the lettering is set in (as
|
|
89
|
-
* {@link resolvedComics} reads it). */
|
|
90
|
-
export declare function comicLetteringLocale(resolved: ResolvedConfig): string;
|
|
91
|
-
/** Whether balloons are set vertically: `lettering.writingMode`, `auto`
|
|
92
|
-
* meaning vertical for Japanese and Traditional Chinese (the comics of
|
|
93
|
-
* both are lettered in columns) and in a vertical document. */
|
|
94
|
-
export declare function comicLetteringVertical(comics: ResolvedComicsConfig, resolved: ResolvedConfig, locale: string): boolean;
|
|
95
|
-
/**
|
|
96
|
-
* A balloon style of the config resolved to the lettering's px style
|
|
97
|
-
* (SPEC D4 → D3): the style over the book's lettering, the speaker's cast
|
|
98
|
-
* entry and the line's own `color` / `font` over both. One lettering size
|
|
99
|
-
* per book: `fontScale` is the only factor (a sound effect's `size=` scales
|
|
100
|
-
* the item, not the style).
|
|
101
|
-
*/
|
|
102
|
-
export declare function comicLetteringStyle(input: {
|
|
103
|
-
style: ResolvedBalloonStyleConfig;
|
|
104
|
-
comics: ResolvedComicsConfig;
|
|
105
|
-
cast?: ComicCastMember;
|
|
106
|
-
item?: Pick<ComicScriptItem, 'color' | 'font'>;
|
|
107
|
-
locale: string;
|
|
108
|
-
vertical: boolean;
|
|
109
|
-
dpi: number;
|
|
110
|
-
palette?: readonly ColorPaletteEntry[];
|
|
111
|
-
}): LetteringStyle;
|
|
112
|
-
/** What {@link letterPanels} needs. */
|
|
113
|
-
export interface LetterPanelsInput {
|
|
114
|
-
source: ComicPageSource;
|
|
115
|
-
panels: readonly VDTComicPanel[];
|
|
116
|
-
/** The script of each laid-out panel (undefined for an empty cell). */
|
|
117
|
-
panelSources: readonly (ComicPanelSource | undefined)[];
|
|
118
|
-
comics: ResolvedComicsConfig;
|
|
119
|
-
resolved: ResolvedConfig;
|
|
120
|
-
resources: ReadonlyMap<string, Resource>;
|
|
121
|
-
direction: 'ltr' | 'rtl';
|
|
122
|
-
sourceOffset: number;
|
|
123
|
-
pageIndex?: number;
|
|
124
|
-
/** Regions of the frame no lettering may cover (the spine of a spread):
|
|
125
|
-
* kept out at every fallback, pins included. */
|
|
126
|
-
avoid?: readonly BoundingBox[];
|
|
127
|
-
/** The comic's frame (the page's live area): lettering keeps inside it
|
|
128
|
-
* unless it breaks a border on purpose. */
|
|
129
|
-
frame?: BoundingBox;
|
|
130
|
-
/** The trim of the sheet (default: the frame) and the bleed box: no
|
|
131
|
-
* lettering runs off the trim; a sound effect breaking its border may
|
|
132
|
-
* run into the bleed beside a panel that bleeds. */
|
|
133
|
-
trim?: BoundingBox;
|
|
134
|
-
bleedBox?: BoundingBox;
|
|
135
|
-
}
|
|
136
|
-
/**
|
|
137
|
-
* The lettering of a page's panels (#559–#561): balloons, captions and
|
|
138
|
-
* sound effects, in reading order (panel order, then script order), and the
|
|
139
|
-
* `comicBalloonOverflow` warnings of the balloons that could not be placed
|
|
140
|
-
* cleanly.
|
|
141
|
-
*/
|
|
142
|
-
export declare function letterPanels(input: LetterPanelsInput): {
|
|
143
|
-
balloons: VDTComicBalloon[];
|
|
144
|
-
warnings: ContentWarning[];
|
|
145
|
-
};
|
|
146
41
|
/** What {@link layoutComicFrame} needs: the box the panels are cut from
|
|
147
42
|
* and the box bleeding panels run out to, in the coordinates the comic is
|
|
148
43
|
* laid out in (a page's sheet, a strip's own box, a spread's two sheets
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layoutPage.d.ts","sourceRoot":"","sources":["../../src/comics/layoutPage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"layoutPage.d.ts","sourceRoot":"","sources":["../../src/comics/layoutPage.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAgE,MAAM,WAAW,CAAC;AAOlJ,OAAO,KAAK,EAAE,eAAe,EAAoB,MAAM,YAAY,CAAC;AAKpE,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AACvI,OAAO,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAC;AACpI,OAAO,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,mBAAmB,EAA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