postext 1.63.3 → 1.63.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/codec/files.d.ts +20 -0
- package/dist/bundle/codec/files.d.ts.map +1 -0
- package/dist/bundle/codec/files.js +92 -0
- package/dist/bundle/codec/files.js.map +1 -0
- package/dist/bundle/codec/plan.d.ts +114 -0
- package/dist/bundle/codec/plan.d.ts.map +1 -0
- package/dist/bundle/codec/plan.js +367 -0
- package/dist/bundle/codec/plan.js.map +1 -0
- package/dist/bundle/codec/read.d.ts +92 -0
- package/dist/bundle/codec/read.d.ts.map +1 -0
- package/dist/bundle/codec/read.js +249 -0
- package/dist/bundle/codec/read.js.map +1 -0
- package/dist/bundle/codec.d.ts +6 -218
- package/dist/bundle/codec.d.ts.map +1 -1
- package/dist/bundle/codec.js +3 -699
- package/dist/bundle/codec.js.map +1 -1
- package/dist/bundle/manifest/entries.d.ts +25 -0
- package/dist/bundle/manifest/entries.d.ts.map +1 -0
- package/dist/bundle/manifest/entries.js +108 -0
- package/dist/bundle/manifest/entries.js.map +1 -0
- package/dist/bundle/manifest/fileNames.d.ts +38 -0
- package/dist/bundle/manifest/fileNames.d.ts.map +1 -0
- package/dist/bundle/manifest/fileNames.js +143 -0
- package/dist/bundle/manifest/fileNames.js.map +1 -0
- package/dist/bundle/manifest/locale.d.ts +61 -0
- package/dist/bundle/manifest/locale.d.ts.map +1 -0
- package/dist/bundle/manifest/locale.js +216 -0
- package/dist/bundle/manifest/locale.js.map +1 -0
- package/dist/bundle/manifest/sizes.d.ts +18 -0
- package/dist/bundle/manifest/sizes.d.ts.map +1 -0
- package/dist/bundle/manifest/sizes.js +257 -0
- package/dist/bundle/manifest/sizes.js.map +1 -0
- package/dist/bundle/manifest/validation.d.ts +10 -0
- package/dist/bundle/manifest/validation.d.ts.map +1 -0
- package/dist/bundle/manifest/validation.js +114 -0
- package/dist/bundle/manifest/validation.js.map +1 -0
- package/dist/bundle/manifest.d.ts +7 -139
- package/dist/bundle/manifest.d.ts.map +1 -1
- package/dist/bundle/manifest.js +5 -829
- package/dist/bundle/manifest.js.map +1 -1
- package/dist/canvas-backend/blockRender/block.d.ts +5 -0
- package/dist/canvas-backend/blockRender/block.d.ts.map +1 -0
- package/dist/canvas-backend/blockRender/block.js +240 -0
- package/dist/canvas-backend/blockRender/block.js.map +1 -0
- package/dist/canvas-backend/blockRender/lines.d.ts +16 -0
- package/dist/canvas-backend/blockRender/lines.d.ts.map +1 -0
- package/dist/canvas-backend/blockRender/lines.js +192 -0
- package/dist/canvas-backend/blockRender/lines.js.map +1 -0
- package/dist/canvas-backend/blockRender/segments.d.ts +54 -0
- package/dist/canvas-backend/blockRender/segments.d.ts.map +1 -0
- package/dist/canvas-backend/blockRender/segments.js +311 -0
- package/dist/canvas-backend/blockRender/segments.js.map +1 -0
- package/dist/canvas-backend/blockRender.d.ts +2 -7
- package/dist/canvas-backend/blockRender.d.ts.map +1 -1
- package/dist/canvas-backend/blockRender.js +3 -727
- package/dist/canvas-backend/blockRender.js.map +1 -1
- package/dist/canvas-backend/renderResourceBlock/block.d.ts +9 -0
- package/dist/canvas-backend/renderResourceBlock/block.d.ts.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/block.js +185 -0
- package/dist/canvas-backend/renderResourceBlock/block.js.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/images.d.ts +67 -0
- package/dist/canvas-backend/renderResourceBlock/images.d.ts.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/images.js +224 -0
- package/dist/canvas-backend/renderResourceBlock/images.js.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/overlays.d.ts +10 -0
- package/dist/canvas-backend/renderResourceBlock/overlays.d.ts.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/overlays.js +107 -0
- package/dist/canvas-backend/renderResourceBlock/overlays.js.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/table.d.ts +3 -0
- package/dist/canvas-backend/renderResourceBlock/table.d.ts.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/table.js +143 -0
- package/dist/canvas-backend/renderResourceBlock/table.js.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/text.d.ts +11 -0
- package/dist/canvas-backend/renderResourceBlock/text.d.ts.map +1 -0
- package/dist/canvas-backend/renderResourceBlock/text.js +141 -0
- package/dist/canvas-backend/renderResourceBlock/text.js.map +1 -0
- package/dist/canvas-backend/renderResourceBlock.d.ts +4 -81
- package/dist/canvas-backend/renderResourceBlock.d.ts.map +1 -1
- package/dist/canvas-backend/renderResourceBlock.js +3 -777
- package/dist/canvas-backend/renderResourceBlock.js.map +1 -1
- package/dist/canvas-backend/verticalText/alternates.d.ts +47 -0
- package/dist/canvas-backend/verticalText/alternates.d.ts.map +1 -0
- package/dist/canvas-backend/verticalText/alternates.js +240 -0
- package/dist/canvas-backend/verticalText/alternates.js.map +1 -0
- package/dist/canvas-backend/verticalText/painter.d.ts +58 -0
- package/dist/canvas-backend/verticalText/painter.d.ts.map +1 -0
- package/dist/canvas-backend/verticalText/painter.js +329 -0
- package/dist/canvas-backend/verticalText/painter.js.map +1 -0
- package/dist/canvas-backend/verticalText.d.ts +4 -101
- package/dist/canvas-backend/verticalText.d.ts.map +1 -1
- package/dist/canvas-backend/verticalText.js +2 -562
- package/dist/canvas-backend/verticalText.js.map +1 -1
- package/dist/checks/contrast/colours.d.ts +64 -0
- package/dist/checks/contrast/colours.d.ts.map +1 -0
- package/dist/checks/contrast/colours.js +101 -0
- package/dist/checks/contrast/colours.js.map +1 -0
- package/dist/checks/contrast/document.d.ts +17 -0
- package/dist/checks/contrast/document.d.ts.map +1 -0
- package/dist/checks/contrast/document.js +132 -0
- package/dist/checks/contrast/document.js.map +1 -0
- package/dist/checks/contrast/pairs.d.ts +10 -0
- package/dist/checks/contrast/pairs.d.ts.map +1 -0
- package/dist/checks/contrast/pairs.js +462 -0
- package/dist/checks/contrast/pairs.js.map +1 -0
- package/dist/checks/contrast/types.d.ts +114 -0
- package/dist/checks/contrast/types.d.ts.map +1 -0
- package/dist/checks/contrast/types.js +2 -0
- package/dist/checks/contrast/types.js.map +1 -0
- package/dist/checks/contrast.d.ts +5 -170
- package/dist/checks/contrast.d.ts.map +1 -1
- package/dist/checks/contrast.js +3 -686
- package/dist/checks/contrast.js.map +1 -1
- package/dist/comics/layoutPage/letterPanels.d.ts +38 -0
- package/dist/comics/layoutPage/letterPanels.d.ts.map +1 -0
- package/dist/comics/layoutPage/letterPanels.js +146 -0
- package/dist/comics/layoutPage/letterPanels.js.map +1 -0
- package/dist/comics/layoutPage/letteringStyle.d.ts +31 -0
- package/dist/comics/layoutPage/letteringStyle.d.ts.map +1 -0
- package/dist/comics/layoutPage/letteringStyle.js +88 -0
- package/dist/comics/layoutPage/letteringStyle.js.map +1 -0
- package/dist/comics/layoutPage/records.d.ts +25 -0
- package/dist/comics/layoutPage/records.d.ts.map +1 -0
- package/dist/comics/layoutPage/records.js +36 -0
- package/dist/comics/layoutPage/records.js.map +1 -0
- package/dist/comics/layoutPage/settings.d.ts +64 -0
- package/dist/comics/layoutPage/settings.d.ts.map +1 -0
- package/dist/comics/layoutPage/settings.js +168 -0
- package/dist/comics/layoutPage/settings.js.map +1 -0
- package/dist/comics/layoutPage/zones.d.ts +79 -0
- package/dist/comics/layoutPage/zones.d.ts.map +1 -0
- package/dist/comics/layoutPage/zones.js +179 -0
- package/dist/comics/layoutPage/zones.js.map +1 -0
- package/dist/comics/layoutPage.d.ts +8 -113
- package/dist/comics/layoutPage.d.ts.map +1 -1
- package/dist/comics/layoutPage.js +12 -603
- package/dist/comics/layoutPage.js.map +1 -1
- package/dist/comics/lettering/letter/variants.d.ts +28 -0
- package/dist/comics/lettering/letter/variants.d.ts.map +1 -0
- package/dist/comics/lettering/letter/variants.js +269 -0
- package/dist/comics/lettering/letter/variants.js.map +1 -0
- package/dist/comics/lettering/letter.d.ts +32 -1
- package/dist/comics/lettering/letter.d.ts.map +1 -1
- package/dist/comics/lettering/letter.js +8 -270
- package/dist/comics/lettering/letter.js.map +1 -1
- package/dist/comics/lettering/shape-text/breaks.d.ts +53 -0
- package/dist/comics/lettering/shape-text/breaks.d.ts.map +1 -0
- package/dist/comics/lettering/shape-text/breaks.js +217 -0
- package/dist/comics/lettering/shape-text/breaks.js.map +1 -0
- package/dist/comics/lettering/shape-text/measure.d.ts +20 -0
- package/dist/comics/lettering/shape-text/measure.d.ts.map +1 -0
- package/dist/comics/lettering/shape-text/measure.js +160 -0
- package/dist/comics/lettering/shape-text/measure.js.map +1 -0
- package/dist/comics/lettering/shape-text/ruby.d.ts +28 -0
- package/dist/comics/lettering/shape-text/ruby.d.ts.map +1 -0
- package/dist/comics/lettering/shape-text/ruby.js +173 -0
- package/dist/comics/lettering/shape-text/ruby.js.map +1 -0
- package/dist/comics/lettering/shape-text.d.ts +7 -6
- package/dist/comics/lettering/shape-text.d.ts.map +1 -1
- package/dist/comics/lettering/shape-text.js +10 -536
- package/dist/comics/lettering/shape-text.js.map +1 -1
- package/dist/composed/overlap/ink.d.ts +48 -0
- package/dist/composed/overlap/ink.d.ts.map +1 -0
- package/dist/composed/overlap/ink.js +180 -0
- package/dist/composed/overlap/ink.js.map +1 -0
- package/dist/composed/overlap/moves.d.ts +97 -0
- package/dist/composed/overlap/moves.d.ts.map +1 -0
- package/dist/composed/overlap/moves.js +191 -0
- package/dist/composed/overlap/moves.js.map +1 -0
- package/dist/composed/overlap.d.ts +2 -2
- package/dist/composed/overlap.d.ts.map +1 -1
- package/dist/composed/overlap.js +3 -367
- package/dist/composed/overlap.js.map +1 -1
- package/dist/composed/sourceMap/chains.d.ts +27 -0
- package/dist/composed/sourceMap/chains.d.ts.map +1 -0
- package/dist/composed/sourceMap/chains.js +176 -0
- package/dist/composed/sourceMap/chains.js.map +1 -0
- package/dist/composed/sourceMap/frames.d.ts +19 -0
- package/dist/composed/sourceMap/frames.d.ts.map +1 -0
- package/dist/composed/sourceMap/frames.js +143 -0
- package/dist/composed/sourceMap/frames.js.map +1 -0
- package/dist/composed/sourceMap/text.d.ts +52 -0
- package/dist/composed/sourceMap/text.d.ts.map +1 -0
- package/dist/composed/sourceMap/text.js +200 -0
- package/dist/composed/sourceMap/text.js.map +1 -0
- package/dist/composed/sourceMap.d.ts +22 -1
- package/dist/composed/sourceMap.d.ts.map +1 -1
- package/dist/composed/sourceMap.js +7 -511
- package/dist/composed/sourceMap.js.map +1 -1
- package/dist/composed/types/frames.d.ts +290 -0
- package/dist/composed/types/frames.d.ts.map +1 -0
- package/dist/composed/types/frames.js +2 -0
- package/dist/composed/types/frames.js.map +1 -0
- package/dist/composed/types/resolved.d.ts +207 -0
- package/dist/composed/types/resolved.d.ts.map +1 -0
- package/dist/composed/types/resolved.js +2 -0
- package/dist/composed/types/resolved.js.map +1 -0
- package/dist/composed/types/templates.d.ts +152 -0
- package/dist/composed/types/templates.d.ts.map +1 -0
- package/dist/composed/types/templates.js +2 -0
- package/dist/composed/types/templates.js.map +1 -0
- package/dist/composed/types.d.ts +3 -641
- package/dist/composed/types.d.ts.map +1 -1
- package/dist/composed/types.js +8 -0
- package/dist/composed/types.js.map +1 -1
- package/dist/defaults/boxes/calloutStyles/inherit.d.ts +15 -0
- package/dist/defaults/boxes/calloutStyles/inherit.d.ts.map +1 -0
- package/dist/defaults/boxes/calloutStyles/inherit.js +64 -0
- package/dist/defaults/boxes/calloutStyles/inherit.js.map +1 -0
- package/dist/defaults/boxes/calloutStyles/resolve.d.ts +7 -0
- package/dist/defaults/boxes/calloutStyles/resolve.d.ts.map +1 -0
- package/dist/defaults/boxes/calloutStyles/resolve.js +223 -0
- package/dist/defaults/boxes/calloutStyles/resolve.js.map +1 -0
- package/dist/defaults/boxes/calloutStyles/statics.d.ts +136 -0
- package/dist/defaults/boxes/calloutStyles/statics.d.ts.map +1 -0
- package/dist/defaults/boxes/calloutStyles/statics.js +140 -0
- package/dist/defaults/boxes/calloutStyles/statics.js.map +1 -0
- package/dist/defaults/boxes/calloutStyles/strip.d.ts +10 -0
- package/dist/defaults/boxes/calloutStyles/strip.d.ts.map +1 -0
- package/dist/defaults/boxes/calloutStyles/strip.js +336 -0
- package/dist/defaults/boxes/calloutStyles/strip.js.map +1 -0
- package/dist/defaults/boxes/calloutStyles.d.ts +4 -148
- package/dist/defaults/boxes/calloutStyles.d.ts.map +1 -1
- package/dist/defaults/boxes/calloutStyles.js +4 -749
- package/dist/defaults/boxes/calloutStyles.js.map +1 -1
- package/dist/defaults/structure/headerFooter/defaults.d.ts +34 -0
- package/dist/defaults/structure/headerFooter/defaults.d.ts.map +1 -0
- package/dist/defaults/structure/headerFooter/defaults.js +162 -0
- package/dist/defaults/structure/headerFooter/defaults.js.map +1 -0
- package/dist/defaults/structure/headerFooter/legacy.d.ts +8 -0
- package/dist/defaults/structure/headerFooter/legacy.d.ts.map +1 -0
- package/dist/defaults/structure/headerFooter/legacy.js +124 -0
- package/dist/defaults/structure/headerFooter/legacy.js.map +1 -0
- package/dist/defaults/structure/headerFooter/resolve.d.ts +29 -0
- package/dist/defaults/structure/headerFooter/resolve.d.ts.map +1 -0
- package/dist/defaults/structure/headerFooter/resolve.js +231 -0
- package/dist/defaults/structure/headerFooter/resolve.js.map +1 -0
- package/dist/defaults/structure/headerFooter.d.ts +6 -58
- package/dist/defaults/structure/headerFooter.d.ts.map +1 -1
- package/dist/defaults/structure/headerFooter.js +5 -510
- package/dist/defaults/structure/headerFooter.js.map +1 -1
- package/dist/defaults/structure/headings/defaults.d.ts +46 -0
- package/dist/defaults/structure/headings/defaults.d.ts.map +1 -0
- package/dist/defaults/structure/headings/defaults.js +100 -0
- package/dist/defaults/structure/headings/defaults.js.map +1 -0
- package/dist/defaults/structure/headings/resolve.d.ts +17 -0
- package/dist/defaults/structure/headings/resolve.d.ts.map +1 -0
- package/dist/defaults/structure/headings/resolve.js +179 -0
- package/dist/defaults/structure/headings/resolve.js.map +1 -0
- package/dist/defaults/structure/headings/strip.d.ts +9 -0
- package/dist/defaults/structure/headings/strip.d.ts.map +1 -0
- package/dist/defaults/structure/headings/strip.js +323 -0
- package/dist/defaults/structure/headings/strip.js.map +1 -0
- package/dist/defaults/structure/headings.d.ts +3 -62
- package/dist/defaults/structure/headings.d.ts.map +1 -1
- package/dist/defaults/structure/headings.js +3 -594
- package/dist/defaults/structure/headings.js.map +1 -1
- package/dist/defaults/text/bodyText/arabic.d.ts +35 -0
- package/dist/defaults/text/bodyText/arabic.d.ts.map +1 -0
- package/dist/defaults/text/bodyText/arabic.js +85 -0
- package/dist/defaults/text/bodyText/arabic.js.map +1 -0
- package/dist/defaults/text/bodyText/defaults.d.ts +31 -0
- package/dist/defaults/text/bodyText/defaults.d.ts.map +1 -0
- package/dist/defaults/text/bodyText/defaults.js +128 -0
- package/dist/defaults/text/bodyText/defaults.js.map +1 -0
- package/dist/defaults/text/bodyText/resolve.d.ts +12 -0
- package/dist/defaults/text/bodyText/resolve.d.ts.map +1 -0
- package/dist/defaults/text/bodyText/resolve.js +171 -0
- package/dist/defaults/text/bodyText/resolve.js.map +1 -0
- package/dist/defaults/text/bodyText/strip.d.ts +12 -0
- package/dist/defaults/text/bodyText/strip.d.ts.map +1 -0
- package/dist/defaults/text/bodyText/strip.js +305 -0
- package/dist/defaults/text/bodyText/strip.js.map +1 -0
- package/dist/defaults/text/bodyText.d.ts +4 -70
- package/dist/defaults/text/bodyText.d.ts.map +1 -1
- package/dist/defaults/text/bodyText.js +4 -673
- package/dist/defaults/text/bodyText.js.map +1 -1
- package/dist/design/richText/ellipsis.d.ts +26 -0
- package/dist/design/richText/ellipsis.d.ts.map +1 -0
- package/dist/design/richText/ellipsis.js +173 -0
- package/dist/design/richText/ellipsis.js.map +1 -0
- package/dist/design/richText/measure.d.ts +51 -0
- package/dist/design/richText/measure.d.ts.map +1 -0
- package/dist/design/richText/measure.js +176 -0
- package/dist/design/richText/measure.js.map +1 -0
- package/dist/design/richText/parse.d.ts +120 -0
- package/dist/design/richText/parse.d.ts.map +1 -0
- package/dist/design/richText/parse.js +190 -0
- package/dist/design/richText/parse.js.map +1 -0
- package/dist/design/richText/wrap.d.ts +13 -0
- package/dist/design/richText/wrap.d.ts.map +1 -0
- package/dist/design/richText/wrap.js +176 -0
- package/dist/design/richText/wrap.js.map +1 -0
- package/dist/design/richText.d.ts +6 -199
- package/dist/design/richText.d.ts.map +1 -1
- package/dist/design/richText.js +4 -698
- package/dist/design/richText.js.map +1 -1
- package/dist/exercises/grids/arithmetic.d.ts +3 -0
- package/dist/exercises/grids/arithmetic.d.ts.map +1 -0
- package/dist/exercises/grids/arithmetic.js +214 -0
- package/dist/exercises/grids/arithmetic.js.map +1 -0
- package/dist/exercises/grids/common.d.ts +8 -0
- package/dist/exercises/grids/common.d.ts.map +1 -0
- package/dist/exercises/grids/common.js +9 -0
- package/dist/exercises/grids/common.js.map +1 -0
- package/dist/exercises/grids/crossword.d.ts +3 -0
- package/dist/exercises/grids/crossword.d.ts.map +1 -0
- package/dist/exercises/grids/crossword.js +191 -0
- package/dist/exercises/grids/crossword.js.map +1 -0
- package/dist/exercises/grids/match.d.ts +3 -0
- package/dist/exercises/grids/match.d.ts.map +1 -0
- package/dist/exercises/grids/match.js +58 -0
- package/dist/exercises/grids/match.js.map +1 -0
- package/dist/exercises/grids/wordSearch.d.ts +5 -0
- package/dist/exercises/grids/wordSearch.d.ts.map +1 -0
- package/dist/exercises/grids/wordSearch.js +122 -0
- package/dist/exercises/grids/wordSearch.js.map +1 -0
- package/dist/exercises/grids.d.ts +2 -2
- package/dist/exercises/grids.d.ts.map +1 -1
- package/dist/exercises/grids.js +4 -575
- package/dist/exercises/grids.js.map +1 -1
- package/dist/knuthPlass/breakpoints/adjust.d.ts +22 -0
- package/dist/knuthPlass/breakpoints/adjust.d.ts.map +1 -0
- package/dist/knuthPlass/breakpoints/adjust.js +39 -0
- package/dist/knuthPlass/breakpoints/adjust.js.map +1 -0
- package/dist/knuthPlass/breakpoints/search.d.ts +10 -0
- package/dist/knuthPlass/breakpoints/search.d.ts.map +1 -0
- package/dist/knuthPlass/breakpoints/search.js +439 -0
- package/dist/knuthPlass/breakpoints/search.js.map +1 -0
- package/dist/knuthPlass/breakpoints.d.ts +2 -21
- package/dist/knuthPlass/breakpoints.d.ts.map +1 -1
- package/dist/knuthPlass/breakpoints.js +2 -472
- package/dist/knuthPlass/breakpoints.js.map +1 -1
- package/dist/marks/cjkMarks/geometry.d.ts +58 -0
- package/dist/marks/cjkMarks/geometry.d.ts.map +1 -0
- package/dist/marks/cjkMarks/geometry.js +131 -0
- package/dist/marks/cjkMarks/geometry.js.map +1 -0
- package/dist/marks/cjkMarks/lineMarks.d.ts +7 -0
- package/dist/marks/cjkMarks/lineMarks.d.ts.map +1 -0
- package/dist/marks/cjkMarks/lineMarks.js +183 -0
- package/dist/marks/cjkMarks/lineMarks.js.map +1 -0
- package/dist/marks/cjkMarks/reach.d.ts +28 -0
- package/dist/marks/cjkMarks/reach.d.ts.map +1 -0
- package/dist/marks/cjkMarks/reach.js +130 -0
- package/dist/marks/cjkMarks/reach.js.map +1 -0
- package/dist/marks/cjkMarks/resources.d.ts +31 -0
- package/dist/marks/cjkMarks/resources.d.ts.map +1 -0
- package/dist/marks/cjkMarks/resources.js +46 -0
- package/dist/marks/cjkMarks/resources.js.map +1 -0
- package/dist/marks/cjkMarks.d.ts +4 -27
- package/dist/marks/cjkMarks.d.ts.map +1 -1
- package/dist/marks/cjkMarks.js +6 -479
- package/dist/marks/cjkMarks.js.map +1 -1
- package/dist/measure/canvas/ink.d.ts +67 -0
- package/dist/measure/canvas/ink.d.ts.map +1 -0
- package/dist/measure/canvas/ink.js +215 -0
- package/dist/measure/canvas/ink.js.map +1 -0
- package/dist/measure/canvas/state.d.ts +91 -0
- package/dist/measure/canvas/state.d.ts.map +1 -0
- package/dist/measure/canvas/state.js +306 -0
- package/dist/measure/canvas/state.js.map +1 -0
- package/dist/measure/canvas/widths.d.ts +27 -0
- package/dist/measure/canvas/widths.d.ts.map +1 -0
- package/dist/measure/canvas/widths.js +137 -0
- package/dist/measure/canvas/widths.js.map +1 -0
- package/dist/measure/canvas.d.ts +4 -154
- package/dist/measure/canvas.d.ts.map +1 -1
- package/dist/measure/canvas.js +4 -646
- package/dist/measure/canvas.js.map +1 -1
- package/dist/measure/cjk/cjkPunctuation/box.d.ts +71 -0
- package/dist/measure/cjk/cjkPunctuation/box.d.ts.map +1 -0
- package/dist/measure/cjk/cjkPunctuation/box.js +114 -0
- package/dist/measure/cjk/cjkPunctuation/box.js.map +1 -0
- package/dist/measure/cjk/cjkPunctuation/composition.d.ts +128 -0
- package/dist/measure/cjk/cjkPunctuation/composition.d.ts.map +1 -0
- package/dist/measure/cjk/cjkPunctuation/composition.js +157 -0
- package/dist/measure/cjk/cjkPunctuation/composition.js.map +1 -0
- package/dist/measure/cjk/cjkPunctuation/lineEdges.d.ts +63 -0
- package/dist/measure/cjk/cjkPunctuation/lineEdges.d.ts.map +1 -0
- package/dist/measure/cjk/cjkPunctuation/lineEdges.js +183 -0
- package/dist/measure/cjk/cjkPunctuation/lineEdges.js.map +1 -0
- package/dist/measure/cjk/cjkPunctuation.d.ts +8 -247
- package/dist/measure/cjk/cjkPunctuation.d.ts.map +1 -1
- package/dist/measure/cjk/cjkPunctuation.js +6 -447
- package/dist/measure/cjk/cjkPunctuation.js.map +1 -1
- package/dist/measure/plain/overwide.d.ts +70 -0
- package/dist/measure/plain/overwide.d.ts.map +1 -0
- package/dist/measure/plain/overwide.js +150 -0
- package/dist/measure/plain/overwide.js.map +1 -0
- package/dist/measure/plain/segments.d.ts +53 -0
- package/dist/measure/plain/segments.d.ts.map +1 -0
- package/dist/measure/plain/segments.js +153 -0
- package/dist/measure/plain/segments.js.map +1 -0
- package/dist/measure/plain.d.ts +2 -15
- package/dist/measure/plain.d.ts.map +1 -1
- package/dist/measure/plain.js +12 -300
- package/dist/measure/plain.js.map +1 -1
- package/dist/migrate/pageDesign/pictures.d.ts +16 -0
- package/dist/migrate/pageDesign/pictures.d.ts.map +1 -0
- package/dist/migrate/pageDesign/pictures.js +101 -0
- package/dist/migrate/pageDesign/pictures.js.map +1 -0
- package/dist/migrate/pageDesign/text.d.ts +48 -0
- package/dist/migrate/pageDesign/text.d.ts.map +1 -0
- package/dist/migrate/pageDesign/text.js +196 -0
- package/dist/migrate/pageDesign/text.js.map +1 -0
- package/dist/migrate/pageDesign/types.d.ts +137 -0
- package/dist/migrate/pageDesign/types.d.ts.map +1 -0
- package/dist/migrate/pageDesign/types.js +2 -0
- package/dist/migrate/pageDesign/types.js.map +1 -0
- package/dist/migrate/pageDesign.d.ts +4 -154
- package/dist/migrate/pageDesign.d.ts.map +1 -1
- package/dist/migrate/pageDesign.js +4 -294
- package/dist/migrate/pageDesign.js.map +1 -1
- package/dist/numerals/numbering/counters.d.ts +49 -0
- package/dist/numerals/numbering/counters.d.ts.map +1 -0
- package/dist/numerals/numbering/counters.js +311 -0
- package/dist/numerals/numbering/counters.js.map +1 -0
- package/dist/numerals/numbering/formats.d.ts +30 -0
- package/dist/numerals/numbering/formats.d.ts.map +1 -0
- package/dist/numerals/numbering/formats.js +116 -0
- package/dist/numerals/numbering/formats.js.map +1 -0
- package/dist/numerals/numbering/headings.d.ts +40 -0
- package/dist/numerals/numbering/headings.d.ts.map +1 -0
- package/dist/numerals/numbering/headings.js +64 -0
- package/dist/numerals/numbering/headings.js.map +1 -0
- package/dist/numerals/numbering/pageLabels.d.ts +43 -0
- package/dist/numerals/numbering/pageLabels.d.ts.map +1 -0
- package/dist/numerals/numbering/pageLabels.js +75 -0
- package/dist/numerals/numbering/pageLabels.js.map +1 -0
- package/dist/numerals/numbering/styles.d.ts +52 -0
- package/dist/numerals/numbering/styles.d.ts.map +1 -0
- package/dist/numerals/numbering/styles.js +43 -0
- package/dist/numerals/numbering/styles.js.map +1 -0
- package/dist/numerals/numbering.d.ts +9 -201
- package/dist/numerals/numbering.d.ts.map +1 -1
- package/dist/numerals/numbering.js +5 -595
- package/dist/numerals/numbering.js.map +1 -1
- package/dist/parse/annotations/apply.d.ts +32 -0
- package/dist/parse/annotations/apply.d.ts.map +1 -0
- package/dist/parse/annotations/apply.js +293 -0
- package/dist/parse/annotations/apply.js.map +1 -0
- package/dist/parse/annotations/scan.d.ts +55 -0
- package/dist/parse/annotations/scan.d.ts.map +1 -0
- package/dist/parse/annotations/scan.js +232 -0
- package/dist/parse/annotations/scan.js.map +1 -0
- package/dist/parse/annotations/source.d.ts +31 -0
- package/dist/parse/annotations/source.d.ts.map +1 -0
- package/dist/parse/annotations/source.js +128 -0
- package/dist/parse/annotations/source.js.map +1 -0
- package/dist/parse/annotations.d.ts +5 -86
- package/dist/parse/annotations.d.ts.map +1 -1
- package/dist/parse/annotations.js +3 -648
- package/dist/parse/annotations.js.map +1 -1
- package/dist/pipeline/blocks/measureContentBlock/helpers.d.ts +31 -0
- package/dist/pipeline/blocks/measureContentBlock/helpers.d.ts.map +1 -0
- package/dist/pipeline/blocks/measureContentBlock/helpers.js +74 -0
- package/dist/pipeline/blocks/measureContentBlock/helpers.js.map +1 -0
- package/dist/pipeline/blocks/measureContentBlock/inlineSpans.d.ts +12 -0
- package/dist/pipeline/blocks/measureContentBlock/inlineSpans.d.ts.map +1 -0
- package/dist/pipeline/blocks/measureContentBlock/inlineSpans.js +107 -0
- package/dist/pipeline/blocks/measureContentBlock/inlineSpans.js.map +1 -0
- package/dist/pipeline/blocks/measureContentBlock/measureOptions.d.ts +68 -0
- package/dist/pipeline/blocks/measureContentBlock/measureOptions.d.ts.map +1 -0
- package/dist/pipeline/blocks/measureContentBlock/measureOptions.js +90 -0
- package/dist/pipeline/blocks/measureContentBlock/measureOptions.js.map +1 -0
- package/dist/pipeline/blocks/measureContentBlock/types.d.ts +165 -0
- package/dist/pipeline/blocks/measureContentBlock/types.d.ts.map +1 -0
- package/dist/pipeline/blocks/measureContentBlock/types.js +2 -0
- package/dist/pipeline/blocks/measureContentBlock/types.js.map +1 -0
- package/dist/pipeline/blocks/measureContentBlock.d.ts +8 -172
- package/dist/pipeline/blocks/measureContentBlock.d.ts.map +1 -1
- package/dist/pipeline/blocks/measureContentBlock.js +16 -257
- package/dist/pipeline/blocks/measureContentBlock.js.map +1 -1
- package/dist/pipeline/blocks/placement/bands.d.ts +61 -0
- package/dist/pipeline/blocks/placement/bands.d.ts.map +1 -0
- package/dist/pipeline/blocks/placement/bands.js +188 -0
- package/dist/pipeline/blocks/placement/bands.js.map +1 -0
- package/dist/pipeline/blocks/placement.d.ts +2 -59
- package/dist/pipeline/blocks/placement.d.ts.map +1 -1
- package/dist/pipeline/blocks/placement.js +3 -184
- package/dist/pipeline/blocks/placement.js.map +1 -1
- package/dist/pipeline/build/pass/composed/comicText.d.ts +27 -0
- package/dist/pipeline/build/pass/composed/comicText.d.ts.map +1 -0
- package/dist/pipeline/build/pass/composed/comicText.js +89 -0
- package/dist/pipeline/build/pass/composed/comicText.js.map +1 -0
- package/dist/pipeline/build/pass/composed/jumps.d.ts +29 -0
- package/dist/pipeline/build/pass/composed/jumps.d.ts.map +1 -0
- package/dist/pipeline/build/pass/composed/jumps.js +91 -0
- package/dist/pipeline/build/pass/composed/jumps.js.map +1 -0
- package/dist/pipeline/build/pass/composed/placePage.d.ts +60 -0
- package/dist/pipeline/build/pass/composed/placePage.d.ts.map +1 -0
- package/dist/pipeline/build/pass/composed/placePage.js +368 -0
- package/dist/pipeline/build/pass/composed/placePage.js.map +1 -0
- package/dist/pipeline/build/pass/composed.d.ts +6 -7
- package/dist/pipeline/build/pass/composed.d.ts.map +1 -1
- package/dist/pipeline/build/pass/composed.js +20 -524
- package/dist/pipeline/build/pass/composed.js.map +1 -1
- package/dist/pipeline/build/pass/setup/contentSetup.d.ts +89 -0
- package/dist/pipeline/build/pass/setup/contentSetup.d.ts.map +1 -0
- package/dist/pipeline/build/pass/setup/contentSetup.js +314 -0
- package/dist/pipeline/build/pass/setup/contentSetup.js.map +1 -0
- package/dist/pipeline/build/pass/setup/pageSetup.d.ts +32 -0
- package/dist/pipeline/build/pass/setup/pageSetup.d.ts.map +1 -0
- package/dist/pipeline/build/pass/setup/pageSetup.js +147 -0
- package/dist/pipeline/build/pass/setup/pageSetup.js.map +1 -0
- package/dist/pipeline/build/pass/setup/passFinish.d.ts +95 -0
- package/dist/pipeline/build/pass/setup/passFinish.d.ts.map +1 -0
- package/dist/pipeline/build/pass/setup/passFinish.js +201 -0
- package/dist/pipeline/build/pass/setup/passFinish.js.map +1 -0
- package/dist/pipeline/build/pass/setupState.d.ts +8 -0
- package/dist/pipeline/build/pass/setupState.d.ts.map +1 -0
- package/dist/pipeline/build/pass/setupState.js +2 -0
- package/dist/pipeline/build/pass/setupState.js.map +1 -0
- package/dist/pipeline/build/pass.d.ts.map +1 -1
- package/dist/pipeline/build/pass.js +60 -654
- package/dist/pipeline/build/pass.js.map +1 -1
- package/dist/pipeline/callouts/calloutLayout/boxDecoration.d.ts +49 -0
- package/dist/pipeline/callouts/calloutLayout/boxDecoration.d.ts.map +1 -0
- package/dist/pipeline/callouts/calloutLayout/boxDecoration.js +110 -0
- package/dist/pipeline/callouts/calloutLayout/boxDecoration.js.map +1 -0
- package/dist/pipeline/callouts/calloutLayout/labelTab.d.ts +31 -0
- package/dist/pipeline/callouts/calloutLayout/labelTab.d.ts.map +1 -0
- package/dist/pipeline/callouts/calloutLayout/labelTab.js +202 -0
- package/dist/pipeline/callouts/calloutLayout/labelTab.js.map +1 -0
- package/dist/pipeline/callouts/calloutLayout/layoutCallout.d.ts.map +1 -1
- package/dist/pipeline/callouts/calloutLayout/layoutCallout.js +23 -355
- package/dist/pipeline/callouts/calloutLayout/layoutCallout.js.map +1 -1
- package/dist/pipeline/callouts/calloutLayout/layoutCalloutState.d.ts +14 -0
- package/dist/pipeline/callouts/calloutLayout/layoutCalloutState.d.ts.map +1 -0
- package/dist/pipeline/callouts/calloutLayout/layoutCalloutState.js +2 -0
- package/dist/pipeline/callouts/calloutLayout/layoutCalloutState.js.map +1 -0
- package/dist/pipeline/callouts/calloutLayout/markerColumn.d.ts +31 -0
- package/dist/pipeline/callouts/calloutLayout/markerColumn.d.ts.map +1 -0
- package/dist/pipeline/callouts/calloutLayout/markerColumn.js +75 -0
- package/dist/pipeline/callouts/calloutLayout/markerColumn.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/fill.d.ts +68 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/fill.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/fill.js +249 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/fill.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/measure.d.ts +50 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/measure.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/measure.js +195 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/measure.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGrid.d.ts +30 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGrid.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGrid.js +174 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGrid.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGroup.d.ts +35 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGroup.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGroup.js +158 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeGroup.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeModules.d.ts +37 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeModules.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeModules.js +303 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/placeModules.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/state.d.ts +11 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/state.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/state.js +3 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/state.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/types.d.ts +14 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/types.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/types.js +2 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run/types.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run.d.ts +59 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run.js +171 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/run.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/state.d.ts +7 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/state.d.ts.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/state.js +2 -0
- package/dist/pipeline/composedPages/composedLayout/composePage/state.js.map +1 -0
- package/dist/pipeline/composedPages/composedLayout/composePage.d.ts.map +1 -1
- package/dist/pipeline/composedPages/composedLayout/composePage.js +24 -1165
- package/dist/pipeline/composedPages/composedLayout/composePage.js.map +1 -1
- package/dist/pipeline/contents/indexDirective/blocks.d.ts +9 -0
- package/dist/pipeline/contents/indexDirective/blocks.d.ts.map +1 -0
- package/dist/pipeline/contents/indexDirective/blocks.js +256 -0
- package/dist/pipeline/contents/indexDirective/blocks.js.map +1 -0
- package/dist/pipeline/contents/indexDirective/tree.d.ts +71 -0
- package/dist/pipeline/contents/indexDirective/tree.d.ts.map +1 -0
- package/dist/pipeline/contents/indexDirective/tree.js +224 -0
- package/dist/pipeline/contents/indexDirective/tree.js.map +1 -0
- package/dist/pipeline/contents/indexDirective.d.ts +2 -8
- package/dist/pipeline/contents/indexDirective.d.ts.map +1 -1
- package/dist/pipeline/contents/indexDirective.js +3 -472
- package/dist/pipeline/contents/indexDirective.js.map +1 -1
- package/dist/pipeline/pages/placeholders/chapterValues.d.ts +117 -0
- package/dist/pipeline/pages/placeholders/chapterValues.d.ts.map +1 -0
- package/dist/pipeline/pages/placeholders/chapterValues.js +236 -0
- package/dist/pipeline/pages/placeholders/chapterValues.js.map +1 -0
- package/dist/pipeline/pages/placeholders/lineText.d.ts +66 -0
- package/dist/pipeline/pages/placeholders/lineText.d.ts.map +1 -0
- package/dist/pipeline/pages/placeholders/lineText.js +173 -0
- package/dist/pipeline/pages/placeholders/lineText.js.map +1 -0
- package/dist/pipeline/pages/placeholders.d.ts +6 -179
- package/dist/pipeline/pages/placeholders.d.ts.map +1 -1
- package/dist/pipeline/pages/placeholders.js +4 -398
- package/dist/pipeline/pages/placeholders.js.map +1 -1
- package/dist/pipeline/references/citations/markers.d.ts +14 -0
- package/dist/pipeline/references/citations/markers.d.ts.map +1 -0
- package/dist/pipeline/references/citations/markers.js +106 -0
- package/dist/pipeline/references/citations/markers.js.map +1 -0
- package/dist/pipeline/references/citations/process.d.ts +56 -0
- package/dist/pipeline/references/citations/process.d.ts.map +1 -0
- package/dist/pipeline/references/citations/process.js +213 -0
- package/dist/pipeline/references/citations/process.js.map +1 -0
- package/dist/pipeline/references/citations/spans.d.ts +33 -0
- package/dist/pipeline/references/citations/spans.d.ts.map +1 -0
- package/dist/pipeline/references/citations/spans.js +127 -0
- package/dist/pipeline/references/citations/spans.js.map +1 -0
- package/dist/pipeline/references/citations.d.ts +4 -51
- package/dist/pipeline/references/citations.d.ts.map +1 -1
- package/dist/pipeline/references/citations.js +5 -438
- package/dist/pipeline/references/citations.js.map +1 -1
- package/dist/pipeline/resources/resourceLayout/resourceBlock/captionNotes.d.ts +63 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/captionNotes.d.ts.map +1 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/captionNotes.js +88 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/captionNotes.js.map +1 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/state.d.ts +9 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/state.d.ts.map +1 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/state.js +2 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/state.js.map +1 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/upright.d.ts +26 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/upright.d.ts.map +1 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/upright.js +90 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock/upright.js.map +1 -0
- package/dist/pipeline/resources/resourceLayout/resourceBlock.d.ts +1 -3
- package/dist/pipeline/resources/resourceLayout/resourceBlock.d.ts.map +1 -1
- package/dist/pipeline/resources/resourceLayout/resourceBlock.js +13 -159
- package/dist/pipeline/resources/resourceLayout/resourceBlock.js.map +1 -1
- package/dist/pipeline/sections/partPalette/colorKinds.d.ts +53 -0
- package/dist/pipeline/sections/partPalette/colorKinds.d.ts.map +1 -0
- package/dist/pipeline/sections/partPalette/colorKinds.js +181 -0
- package/dist/pipeline/sections/partPalette/colorKinds.js.map +1 -0
- package/dist/pipeline/sections/partPalette/flowColors.d.ts +16 -0
- package/dist/pipeline/sections/partPalette/flowColors.d.ts.map +1 -0
- package/dist/pipeline/sections/partPalette/flowColors.js +78 -0
- package/dist/pipeline/sections/partPalette/flowColors.js.map +1 -0
- package/dist/pipeline/sections/partPalette/recolor.d.ts +18 -0
- package/dist/pipeline/sections/partPalette/recolor.d.ts.map +1 -0
- package/dist/pipeline/sections/partPalette/recolor.js +188 -0
- package/dist/pipeline/sections/partPalette/recolor.js.map +1 -0
- package/dist/pipeline/sections/partPalette.d.ts +4 -49
- package/dist/pipeline/sections/partPalette.d.ts.map +1 -1
- package/dist/pipeline/sections/partPalette.js +3 -442
- package/dist/pipeline/sections/partPalette.js.map +1 -1
- package/dist/pipeline/text/lists/orderedRuns.d.ts +49 -0
- package/dist/pipeline/text/lists/orderedRuns.d.ts.map +1 -0
- package/dist/pipeline/text/lists/orderedRuns.js +256 -0
- package/dist/pipeline/text/lists/orderedRuns.js.map +1 -0
- package/dist/pipeline/text/lists.d.ts +16 -46
- package/dist/pipeline/text/lists.d.ts.map +1 -1
- package/dist/pipeline/text/lists.js +5 -255
- package/dist/pipeline/text/lists.js.map +1 -1
- package/dist/svg/fonts/inline.d.ts +30 -0
- package/dist/svg/fonts/inline.d.ts.map +1 -0
- package/dist/svg/fonts/inline.js +298 -0
- package/dist/svg/fonts/inline.js.map +1 -0
- package/dist/svg/fonts/scan.d.ts +27 -0
- package/dist/svg/fonts/scan.d.ts.map +1 -0
- package/dist/svg/fonts/scan.js +353 -0
- package/dist/svg/fonts/scan.js.map +1 -0
- package/dist/svg/fonts/types.d.ts +106 -0
- package/dist/svg/fonts/types.d.ts.map +1 -0
- package/dist/svg/fonts/types.js +4 -0
- package/dist/svg/fonts/types.js.map +1 -0
- package/dist/svg/fonts.d.ts +4 -150
- package/dist/svg/fonts.d.ts.map +1 -1
- package/dist/svg/fonts.js +3 -647
- package/dist/svg/fonts.js.map +1 -1
- package/dist/types/text/bodyText/config.d.ts +465 -0
- package/dist/types/text/bodyText/config.d.ts.map +1 -0
- package/dist/types/text/bodyText/config.js +2 -0
- package/dist/types/text/bodyText/config.js.map +1 -0
- package/dist/types/text/bodyText/options.d.ts +73 -0
- package/dist/types/text/bodyText/options.d.ts.map +1 -0
- package/dist/types/text/bodyText/options.js +2 -0
- package/dist/types/text/bodyText/options.js.map +1 -0
- package/dist/types/text/bodyText/resolved.d.ts +95 -0
- package/dist/types/text/bodyText/resolved.d.ts.map +1 -0
- package/dist/types/text/bodyText/resolved.js +2 -0
- package/dist/types/text/bodyText/resolved.js.map +1 -0
- package/dist/types/text/bodyText.d.ts +3 -623
- package/dist/types/text/bodyText.d.ts.map +1 -1
- package/dist/vdt/contentWarnings/comic.d.ts +95 -0
- package/dist/vdt/contentWarnings/comic.d.ts.map +1 -0
- package/dist/vdt/contentWarnings/comic.js +3 -0
- package/dist/vdt/contentWarnings/comic.js.map +1 -0
- package/dist/vdt/contentWarnings/composed.d.ts +126 -0
- package/dist/vdt/contentWarnings/composed.d.ts.map +1 -0
- package/dist/vdt/contentWarnings/composed.js +2 -0
- package/dist/vdt/contentWarnings/composed.js.map +1 -0
- package/dist/vdt/contentWarnings/layout.d.ts +247 -0
- package/dist/vdt/contentWarnings/layout.d.ts.map +1 -0
- package/dist/vdt/contentWarnings/layout.js +2 -0
- package/dist/vdt/contentWarnings/layout.js.map +1 -0
- package/dist/vdt/contentWarnings/markup.d.ts +211 -0
- package/dist/vdt/contentWarnings/markup.d.ts.map +1 -0
- package/dist/vdt/contentWarnings/markup.js +4 -0
- package/dist/vdt/contentWarnings/markup.js.map +1 -0
- package/dist/vdt/contentWarnings/source.d.ts +216 -0
- package/dist/vdt/contentWarnings/source.d.ts.map +1 -0
- package/dist/vdt/contentWarnings/source.js +4 -0
- package/dist/vdt/contentWarnings/source.js.map +1 -0
- package/dist/vdt/contentWarnings/text.d.ts +139 -0
- package/dist/vdt/contentWarnings/text.d.ts.map +1 -0
- package/dist/vdt/contentWarnings/text.js +4 -0
- package/dist/vdt/contentWarnings/text.js.map +1 -0
- package/dist/vdt/contentWarnings.d.ts +7 -1017
- package/dist/vdt/contentWarnings.d.ts.map +1 -1
- package/dist/vdt/pages/comic.d.ts +200 -0
- package/dist/vdt/pages/comic.d.ts.map +1 -0
- package/dist/vdt/pages/comic.js +2 -0
- package/dist/vdt/pages/comic.js.map +1 -0
- package/dist/vdt/pages/composed.d.ts +282 -0
- package/dist/vdt/pages/composed.d.ts.map +1 -0
- package/dist/vdt/pages/composed.js +2 -0
- package/dist/vdt/pages/composed.js.map +1 -0
- package/dist/vdt/pages.d.ts +6 -476
- package/dist/vdt/pages.d.ts.map +1 -1
- package/dist/word/docxRead/body.d.ts +17 -0
- package/dist/word/docxRead/body.d.ts.map +1 -0
- package/dist/word/docxRead/body.js +372 -0
- package/dist/word/docxRead/body.js.map +1 -0
- package/dist/word/docxRead/parts.d.ts +27 -0
- package/dist/word/docxRead/parts.d.ts.map +1 -0
- package/dist/word/docxRead/parts.js +160 -0
- package/dist/word/docxRead/parts.js.map +1 -0
- package/dist/word/docxRead.d.ts +1 -5
- package/dist/word/docxRead.d.ts.map +1 -1
- package/dist/word/docxRead.js +5 -526
- package/dist/word/docxRead.js.map +1 -1
- package/dist/word/inline/parse.d.ts +16 -0
- package/dist/word/inline/parse.d.ts.map +1 -0
- package/dist/word/inline/parse.js +367 -0
- package/dist/word/inline/parse.js.map +1 -0
- package/dist/word/inline/render.d.ts +44 -0
- package/dist/word/inline/render.d.ts.map +1 -0
- package/dist/word/inline/render.js +296 -0
- package/dist/word/inline/render.js.map +1 -0
- package/dist/word/inline.d.ts +4 -52
- package/dist/word/inline.d.ts.map +1 -1
- package/dist/word/inline.js +2 -657
- package/dist/word/inline.js.map +1 -1
- package/dist/word/toDocx/parse.d.ts +46 -0
- package/dist/word/toDocx/parse.d.ts.map +1 -0
- package/dist/word/toDocx/parse.js +313 -0
- package/dist/word/toDocx/parse.js.map +1 -0
- package/dist/word/toDocx/styles.d.ts +63 -0
- package/dist/word/toDocx/styles.d.ts.map +1 -0
- package/dist/word/toDocx/styles.js +239 -0
- package/dist/word/toDocx/styles.js.map +1 -0
- package/dist/word/toDocx/wordml.d.ts +24 -0
- package/dist/word/toDocx/wordml.d.ts.map +1 -0
- package/dist/word/toDocx/wordml.js +114 -0
- package/dist/word/toDocx/wordml.js.map +1 -0
- package/dist/word/toDocx.d.ts +3 -25
- package/dist/word/toDocx.d.ts.map +1 -1
- package/dist/word/toDocx.js +8 -661
- package/dist/word/toDocx.js.map +1 -1
- package/dist/word/toMarkdown/converter.d.ts +57 -0
- package/dist/word/toMarkdown/converter.d.ts.map +1 -0
- package/dist/word/toMarkdown/converter.js +600 -0
- package/dist/word/toMarkdown/converter.js.map +1 -0
- package/dist/word/toMarkdown/helpers.d.ts +98 -0
- package/dist/word/toMarkdown/helpers.d.ts.map +1 -0
- package/dist/word/toMarkdown/helpers.js +153 -0
- package/dist/word/toMarkdown/helpers.js.map +1 -0
- package/dist/word/toMarkdown.d.ts +4 -64
- package/dist/word/toMarkdown.d.ts.map +1 -1
- package/dist/word/toMarkdown.js +2 -749
- package/dist/word/toMarkdown.js.map +1 -1
- package/dist/writing/bidi/chars.d.ts +61 -0
- package/dist/writing/bidi/chars.d.ts.map +1 -0
- package/dist/writing/bidi/chars.js +145 -0
- package/dist/writing/bidi/chars.js.map +1 -0
- package/dist/writing/bidi/joining.d.ts +27 -0
- package/dist/writing/bidi/joining.d.ts.map +1 -0
- package/dist/writing/bidi/joining.js +70 -0
- package/dist/writing/bidi/joining.js.map +1 -0
- package/dist/writing/bidi/paragraph.d.ts +72 -0
- package/dist/writing/bidi/paragraph.d.ts.map +1 -0
- package/dist/writing/bidi/paragraph.js +119 -0
- package/dist/writing/bidi/paragraph.js.map +1 -0
- package/dist/writing/bidi/resolve.d.ts +14 -0
- package/dist/writing/bidi/resolve.d.ts.map +1 -0
- package/dist/writing/bidi/resolve.js +413 -0
- package/dist/writing/bidi/resolve.js.map +1 -0
- package/dist/writing/bidi.d.ts +8 -147
- package/dist/writing/bidi.d.ts.map +1 -1
- package/dist/writing/bidi.js +6 -733
- package/dist/writing/bidi.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,750 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { resolveDesignSlot } from '../structure/headerFooter.js';
|
|
6
|
-
import { isCornerRadii } from '../../design/boxShape.js';
|
|
7
|
-
const EM = (value) => ({ value, unit: 'em' });
|
|
8
|
-
const PT0 = { value: 0, unit: 'pt' };
|
|
9
|
-
/** Static defaults shared by every callout style. Fields that inherit from
|
|
10
|
-
* another config section (`titleStyle.fontFamily`, `body.*`, `lists.*`)
|
|
11
|
-
* are resolved at resolve time and have no static default. */
|
|
12
|
-
export const DEFAULT_CALLOUT_STYLE_STATIC = {
|
|
13
|
-
title: '',
|
|
14
|
-
span: 'column',
|
|
15
|
-
columns: 1,
|
|
16
|
-
placement: 'here',
|
|
17
|
-
sideAtColumnEnd: 'before',
|
|
18
|
-
fixed: {
|
|
19
|
-
anchor: { to: 'container', edge: 'bottom-left' },
|
|
20
|
-
offset: { x: PT0, y: PT0 },
|
|
21
|
-
},
|
|
22
|
-
floatBarrier: false,
|
|
23
|
-
width: 'fill',
|
|
24
|
-
backgroundEnabled: true,
|
|
25
|
-
background: { hex: '#f4f4f4', model: 'hex' },
|
|
26
|
-
border: {
|
|
27
|
-
enabled: false,
|
|
28
|
-
color: { hex: '#cccccc', model: 'hex' },
|
|
29
|
-
width: { value: 0.5, unit: 'pt' },
|
|
30
|
-
},
|
|
31
|
-
borderRadius: EM(0),
|
|
32
|
-
padding: { top: EM(0.75), right: EM(0.75), bottom: EM(0.75), left: EM(0.75) },
|
|
33
|
-
stripe: {
|
|
34
|
-
enabled: false,
|
|
35
|
-
side: 'left',
|
|
36
|
-
width: EM(1.5),
|
|
37
|
-
color: { ...DEFAULT_MAIN_COLOR },
|
|
38
|
-
},
|
|
39
|
-
icon: {
|
|
40
|
-
kind: 'none',
|
|
41
|
-
glyph: '',
|
|
42
|
-
resourceId: '',
|
|
43
|
-
fontWeight: 400,
|
|
44
|
-
size: EM(1.5),
|
|
45
|
-
color: { ...DEFAULT_MAIN_COLOR },
|
|
46
|
-
align: 'top',
|
|
47
|
-
position: 'inline',
|
|
48
|
-
cornerSide: 'right',
|
|
49
|
-
},
|
|
50
|
-
label: {
|
|
51
|
-
fontWeight: 700,
|
|
52
|
-
color: { hex: '#ffffff', model: 'hex' },
|
|
53
|
-
background: { ...DEFAULT_MAIN_COLOR },
|
|
54
|
-
position: 'top-right',
|
|
55
|
-
height: EM(1.4),
|
|
56
|
-
paddingX: EM(0.6),
|
|
57
|
-
offset: PT0,
|
|
58
|
-
inset: PT0,
|
|
59
|
-
icon: { resourceId: '', width: EM(1), gap: EM(0.3), placement: 'beside', tint: false, glyph: '', scale: 1 },
|
|
60
|
-
rule: { enabled: false, color: { ...DEFAULT_MAIN_COLOR }, width: { value: 0.5, unit: 'pt' } },
|
|
61
|
-
},
|
|
62
|
-
columnGap: EM(1.5),
|
|
63
|
-
marker: {
|
|
64
|
-
kind: 'none',
|
|
65
|
-
glyph: '',
|
|
66
|
-
resourceId: '',
|
|
67
|
-
fontWeight: 400,
|
|
68
|
-
size: EM(1.5),
|
|
69
|
-
color: { ...DEFAULT_MAIN_COLOR },
|
|
70
|
-
align: 'center',
|
|
71
|
-
gap: EM(0.5),
|
|
72
|
-
rule: {
|
|
73
|
-
enabled: false,
|
|
74
|
-
color: { ...DEFAULT_MAIN_COLOR },
|
|
75
|
-
width: { value: 0.5, unit: 'pt' },
|
|
76
|
-
length: PT0,
|
|
77
|
-
},
|
|
78
|
-
},
|
|
79
|
-
titleStyle: {
|
|
80
|
-
fontWeight: 700,
|
|
81
|
-
italic: false,
|
|
82
|
-
color: { ...DEFAULT_MAIN_COLOR },
|
|
83
|
-
textTransform: 'none',
|
|
84
|
-
gap: EM(0.5),
|
|
85
|
-
lineHeight: EM(1.2),
|
|
86
|
-
},
|
|
87
|
-
marginTop: EM(0.75),
|
|
88
|
-
marginBottom: EM(0.75),
|
|
89
|
-
snapToGrid: true,
|
|
90
|
-
keepTogether: true,
|
|
91
|
-
splitMinLines: 2,
|
|
92
|
-
repeatTitle: false,
|
|
93
|
-
continuesMarkerEnabled: false,
|
|
94
|
-
continuesMarkerAlign: 'right',
|
|
95
|
-
continuesMarkerItalic: true,
|
|
96
|
-
};
|
|
97
|
-
/** A box style's border: the whole border, and each side over it when
|
|
98
|
-
* the style sets `sides` (#1059). */
|
|
99
|
-
function resolveBorder(border) {
|
|
100
|
-
const d = DEFAULT_CALLOUT_STYLE_STATIC.border;
|
|
101
|
-
const enabled = border?.enabled ?? d.enabled;
|
|
102
|
-
const color = border?.color ?? d.color;
|
|
103
|
-
const width = border?.width ?? d.width;
|
|
104
|
-
const sides = border?.sides;
|
|
105
|
-
if (!sides || typeof sides !== 'object')
|
|
106
|
-
return { enabled, color, width };
|
|
107
|
-
const side = (s) => {
|
|
108
|
-
const o = s && typeof s === 'object' ? s : undefined;
|
|
109
|
-
return { enabled: o?.enabled ?? enabled, color: o?.color ?? color, width: o?.width ?? width };
|
|
110
|
-
};
|
|
111
|
-
return { enabled, color, width, sides: { top: side(sides.top), right: side(sides.right), bottom: side(sides.bottom), left: side(sides.left) } };
|
|
112
|
-
}
|
|
113
|
-
/** What a label tab's icon is (#1054): the `kind` it names, else a
|
|
114
|
-
* picture when it names one and a glyph when it sets only a character.
|
|
115
|
-
* Any other word reads as the default (reported, `unknownConfigValue`). */
|
|
116
|
-
export function labelIconKind(icon) {
|
|
117
|
-
const kind = icon?.kind;
|
|
118
|
-
if (kind === 'glyph' || kind === 'resource' || kind === 'shape')
|
|
119
|
-
return kind;
|
|
120
|
-
return !icon?.resourceId && typeof icon?.glyph === 'string' && icon.glyph.length > 0 ? 'glyph' : 'resource';
|
|
121
|
-
}
|
|
122
|
-
/** A picture's tint as it resolves (#1120): `true` or a colour, absent
|
|
123
|
-
* for `false` and anything else. */
|
|
124
|
-
export function iconTint(tint) {
|
|
125
|
-
if (tint === true)
|
|
126
|
-
return true;
|
|
127
|
-
return tint !== null && typeof tint === 'object' && typeof tint.hex === 'string' ? tint : undefined;
|
|
128
|
-
}
|
|
129
|
-
/** The drawn icon's fields (#1120), present for `kind: 'shape'` only. */
|
|
130
|
-
function shapeFields(icon, kind) {
|
|
131
|
-
if (kind !== 'shape')
|
|
132
|
-
return {};
|
|
133
|
-
return { shape: icon?.shape === 'dot' ? 'dot' : 'ring', ...(icon?.strokeWidth ? { strokeWidth: icon.strokeWidth } : {}) };
|
|
134
|
-
}
|
|
135
|
-
/** The size of a label tab's glyph against the tab's words (#1054): a
|
|
136
|
-
* positive finite factor, else `1`. */
|
|
137
|
-
export function labelIconScale(scale) {
|
|
138
|
-
return typeof scale === 'number' && Number.isFinite(scale) && scale > 0 ? scale : DEFAULT_CALLOUT_STYLE_STATIC.label.icon.scale;
|
|
139
|
-
}
|
|
140
|
-
/** One neutral style ships by default so `:::callout` works out of the box:
|
|
141
|
-
* light grey background, no stripe, no icon, no title. */
|
|
142
|
-
export const DEFAULT_CALLOUT_STYLES = [{ id: 'note', name: 'Note' }];
|
|
143
|
-
function resolveCalloutStyleConfig(partial, bodyText, headings, unorderedLists, locale) {
|
|
144
|
-
const d = DEFAULT_CALLOUT_STYLE_STATIC;
|
|
145
|
-
// Continuation strings follow the document language, as a table's do
|
|
146
|
-
// (a blank `locale` is unset).
|
|
147
|
-
const strings = defaultTableContinuationStrings(presentTag(locale) ?? bodyText.hyphenation.tag ?? bodyText.hyphenation.locale);
|
|
148
|
-
return {
|
|
149
|
-
id: partial.id,
|
|
150
|
-
name: partial.name ?? partial.id,
|
|
151
|
-
title: partial.title ?? d.title,
|
|
152
|
-
span: partial.span ?? d.span,
|
|
153
|
-
columns: floatColumnCount(partial.columns),
|
|
154
|
-
placement: partial.placement ?? d.placement,
|
|
155
|
-
// Any other value reads as the default.
|
|
156
|
-
sideAtColumnEnd: partial.sideAtColumnEnd === 'after' ? 'after' : d.sideAtColumnEnd,
|
|
157
|
-
fixed: {
|
|
158
|
-
anchor: partial.fixed?.anchor ?? d.fixed.anchor,
|
|
159
|
-
offset: {
|
|
160
|
-
x: partial.fixed?.offset?.x ?? d.fixed.offset.x,
|
|
161
|
-
y: partial.fixed?.offset?.y ?? d.fixed.offset.y,
|
|
162
|
-
},
|
|
163
|
-
},
|
|
164
|
-
floatBarrier: partial.floatBarrier ?? d.floatBarrier,
|
|
165
|
-
width: partial.width ?? d.width,
|
|
166
|
-
backgroundEnabled: partial.backgroundEnabled ?? d.backgroundEnabled,
|
|
167
|
-
background: partial.background ?? d.background,
|
|
168
|
-
border: resolveBorder(partial.border),
|
|
169
|
-
borderRadius: partial.borderRadius ?? d.borderRadius,
|
|
170
|
-
padding: {
|
|
171
|
-
top: partial.padding?.top ?? d.padding.top,
|
|
172
|
-
right: partial.padding?.right ?? d.padding.right,
|
|
173
|
-
bottom: partial.padding?.bottom ?? d.padding.bottom,
|
|
174
|
-
left: partial.padding?.left ?? d.padding.left,
|
|
175
|
-
},
|
|
176
|
-
stripe: {
|
|
177
|
-
enabled: partial.stripe?.enabled ?? d.stripe.enabled,
|
|
178
|
-
side: partial.stripe?.side ?? d.stripe.side,
|
|
179
|
-
width: partial.stripe?.width ?? d.stripe.width,
|
|
180
|
-
color: partial.stripe?.color ?? d.stripe.color,
|
|
181
|
-
},
|
|
182
|
-
icon: {
|
|
183
|
-
kind: partial.icon?.kind ?? d.icon.kind,
|
|
184
|
-
glyph: partial.icon?.glyph ?? d.icon.glyph,
|
|
185
|
-
resourceId: partial.icon?.resourceId ?? d.icon.resourceId,
|
|
186
|
-
fontFamily: partial.icon?.fontFamily ?? headings.fontFamily,
|
|
187
|
-
fontWeight: partial.icon?.fontWeight ?? d.icon.fontWeight,
|
|
188
|
-
size: partial.icon?.size ?? d.icon.size,
|
|
189
|
-
color: partial.icon?.color ?? d.icon.color,
|
|
190
|
-
align: partial.icon?.align ?? d.icon.align,
|
|
191
|
-
position: partial.icon?.position ?? d.icon.position,
|
|
192
|
-
cornerSide: partial.icon?.cornerSide ?? d.icon.cornerSide,
|
|
193
|
-
...(partial.icon?.width ? { width: partial.icon.width } : {}),
|
|
194
|
-
...shapeFields(partial.icon, partial.icon?.kind ?? d.icon.kind),
|
|
195
|
-
...(iconTint(partial.icon?.tint) ? { tint: iconTint(partial.icon?.tint) } : {}),
|
|
196
|
-
},
|
|
197
|
-
...(partial.label
|
|
198
|
-
? {
|
|
199
|
-
label: {
|
|
200
|
-
fontFamily: partial.label.fontFamily ?? headings.fontFamily,
|
|
201
|
-
fontSize: partial.label.fontSize ?? bodyText.fontSize,
|
|
202
|
-
fontWeight: partial.label.fontWeight ?? d.label.fontWeight,
|
|
203
|
-
color: partial.label.color ?? d.label.color,
|
|
204
|
-
background: partial.label.background ?? d.label.background,
|
|
205
|
-
position: partial.label.position ?? d.label.position,
|
|
206
|
-
height: partial.label.height ?? d.label.height,
|
|
207
|
-
paddingX: partial.label.paddingX ?? d.label.paddingX,
|
|
208
|
-
offset: partial.label.offset ?? d.label.offset,
|
|
209
|
-
inset: partial.label.inset ?? d.label.inset,
|
|
210
|
-
icon: {
|
|
211
|
-
kind: labelIconKind(partial.label.icon),
|
|
212
|
-
resourceId: partial.label.icon?.resourceId ?? d.label.icon.resourceId,
|
|
213
|
-
width: partial.label.icon?.width ?? d.label.icon.width,
|
|
214
|
-
gap: partial.label.icon?.gap ?? d.label.icon.gap,
|
|
215
|
-
placement: partial.label.icon?.placement === 'inside' ? 'inside' : d.label.icon.placement,
|
|
216
|
-
tint: iconTint(partial.label.icon?.tint) ?? d.label.icon.tint,
|
|
217
|
-
...shapeFields(partial.label.icon, labelIconKind(partial.label.icon)),
|
|
218
|
-
// The glyph (#1054): in the label's face and weight unless
|
|
219
|
-
// set, its colour the label's when the tab is laid out.
|
|
220
|
-
glyph: typeof partial.label.icon?.glyph === 'string' ? partial.label.icon.glyph : d.label.icon.glyph,
|
|
221
|
-
fontFamily: partial.label.icon?.fontFamily ?? partial.label.fontFamily ?? headings.fontFamily,
|
|
222
|
-
fontWeight: partial.label.icon?.fontWeight ?? partial.label.fontWeight ?? d.label.fontWeight,
|
|
223
|
-
scale: labelIconScale(partial.label.icon?.scale),
|
|
224
|
-
...(partial.label.icon?.color ? { color: partial.label.icon.color } : {}),
|
|
225
|
-
},
|
|
226
|
-
rule: {
|
|
227
|
-
enabled: partial.label.rule?.enabled ?? d.label.rule.enabled,
|
|
228
|
-
color: partial.label.rule?.color ?? d.label.rule.color,
|
|
229
|
-
width: partial.label.rule?.width ?? d.label.rule.width,
|
|
230
|
-
},
|
|
231
|
-
joined: partial.label.joined === true,
|
|
232
|
-
...(partial.label.fillet ? { fillet: partial.label.fillet } : {}),
|
|
233
|
-
...(partial.label.borderRadius !== undefined ? { borderRadius: partial.label.borderRadius } : {}),
|
|
234
|
-
...(partial.label.ownBackground === true ? { ownBackground: true } : {}),
|
|
235
|
-
},
|
|
236
|
-
}
|
|
237
|
-
: {}),
|
|
238
|
-
columnGap: partial.columnGap ?? d.columnGap,
|
|
239
|
-
marker: {
|
|
240
|
-
kind: partial.marker?.kind ?? d.marker.kind,
|
|
241
|
-
glyph: partial.marker?.glyph ?? d.marker.glyph,
|
|
242
|
-
resourceId: partial.marker?.resourceId ?? d.marker.resourceId,
|
|
243
|
-
fontFamily: partial.marker?.fontFamily ?? headings.fontFamily,
|
|
244
|
-
fontWeight: partial.marker?.fontWeight ?? d.marker.fontWeight,
|
|
245
|
-
size: partial.marker?.size ?? d.marker.size,
|
|
246
|
-
color: partial.marker?.color ?? d.marker.color,
|
|
247
|
-
align: partial.marker?.align ?? d.marker.align,
|
|
248
|
-
gap: partial.marker?.gap ?? d.marker.gap,
|
|
249
|
-
rule: {
|
|
250
|
-
enabled: partial.marker?.rule?.enabled ?? d.marker.rule.enabled,
|
|
251
|
-
color: partial.marker?.rule?.color ?? d.marker.rule.color,
|
|
252
|
-
width: partial.marker?.rule?.width ?? d.marker.rule.width,
|
|
253
|
-
length: partial.marker?.rule?.length ?? d.marker.rule.length,
|
|
254
|
-
},
|
|
255
|
-
...shapeFields(partial.marker, partial.marker?.kind ?? d.marker.kind),
|
|
256
|
-
...(iconTint(partial.marker?.tint) ? { tint: iconTint(partial.marker?.tint) } : {}),
|
|
257
|
-
},
|
|
258
|
-
titleStyle: {
|
|
259
|
-
fontFamily: partial.titleStyle?.fontFamily ?? headings.fontFamily,
|
|
260
|
-
fontSize: partial.titleStyle?.fontSize ?? bodyText.fontSize,
|
|
261
|
-
fontWeight: partial.titleStyle?.fontWeight ?? d.titleStyle.fontWeight,
|
|
262
|
-
italic: partial.titleStyle?.italic ?? d.titleStyle.italic,
|
|
263
|
-
color: partial.titleStyle?.color ?? d.titleStyle.color,
|
|
264
|
-
textTransform: partial.titleStyle?.textTransform ?? d.titleStyle.textTransform,
|
|
265
|
-
gap: partial.titleStyle?.gap ?? d.titleStyle.gap,
|
|
266
|
-
letterSpacing: partial.titleStyle?.letterSpacing ?? PT0,
|
|
267
|
-
indent: partial.titleStyle?.indent ?? PT0,
|
|
268
|
-
lineHeight: partial.titleStyle?.lineHeight ?? d.titleStyle.lineHeight,
|
|
269
|
-
},
|
|
270
|
-
body: {
|
|
271
|
-
fontFamily: partial.body?.fontFamily ?? bodyText.fontFamily,
|
|
272
|
-
fontSize: partial.body?.fontSize ?? bodyText.fontSize,
|
|
273
|
-
lineHeight: partial.body?.lineHeight ?? bodyText.lineHeight,
|
|
274
|
-
color: partial.body?.color ?? bodyText.color,
|
|
275
|
-
...(partial.body?.boldColor ?? bodyText.boldColor ? { boldColor: partial.body?.boldColor ?? bodyText.boldColor } : {}),
|
|
276
|
-
...(partial.body?.italicColor ? { italicColor: partial.body.italicColor } : {}),
|
|
277
|
-
fontWeight: partial.body?.fontWeight ?? bodyText.fontWeight,
|
|
278
|
-
boldFontWeight: partial.body?.boldFontWeight ?? bodyText.boldFontWeight,
|
|
279
|
-
italic: partial.body?.italic ?? false,
|
|
280
|
-
smallCaps: partial.body?.smallCaps ?? false,
|
|
281
|
-
// Absent unless set to something other than zero (#974).
|
|
282
|
-
...(partial.body?.letterSpacing && partial.body.letterSpacing.value !== 0 ? { letterSpacing: partial.body.letterSpacing } : {}),
|
|
283
|
-
textAlign: partial.body?.textAlign === 'start' ? 'left' : partial.body?.textAlign ?? (bodyText.textAlign === 'justify' ? 'justify' : 'left'),
|
|
284
|
-
hyphenation: partial.body?.hyphenation ?? bodyText.hyphenation.enabled,
|
|
285
|
-
paragraphSpacing: partial.body?.paragraphSpacing ?? bodyText.paragraphSpacing,
|
|
286
|
-
firstLineIndent: partial.body?.firstLineIndent ?? bodyText.firstLineIndent,
|
|
287
|
-
// Absent unless set: the box takes the body's tab stops (#622).
|
|
288
|
-
...(Array.isArray(partial.body?.tabStops) ? { tabStops: partial.body.tabStops } : {}),
|
|
289
|
-
...(partial.body?.tabInterval ? { tabInterval: partial.body.tabInterval } : {}),
|
|
290
|
-
},
|
|
291
|
-
lists: {
|
|
292
|
-
bulletChar: partial.lists?.bulletChar ?? unorderedLists.bulletChar,
|
|
293
|
-
color: partial.lists?.color ?? unorderedLists.color,
|
|
294
|
-
indent: partial.lists?.indent ?? unorderedLists.indent,
|
|
295
|
-
gap: partial.lists?.gap ?? unorderedLists.gap,
|
|
296
|
-
itemSpacing: partial.lists?.itemSpacing ?? unorderedLists.itemSpacing,
|
|
297
|
-
...(partial.lists?.bulletFontSize ? { bulletFontSize: partial.lists.bulletFontSize } : {}),
|
|
298
|
-
...(partial.lists?.bulletFontWeight !== undefined ? { bulletFontWeight: partial.lists.bulletFontWeight } : {}),
|
|
299
|
-
...(partial.lists?.bulletFontFamily ? { bulletFontFamily: partial.lists.bulletFontFamily } : {}),
|
|
300
|
-
...(partial.lists?.marginTop ? { marginTop: partial.lists.marginTop } : {}),
|
|
301
|
-
...(partial.lists?.marginBottom ? { marginBottom: partial.lists.marginBottom } : {}),
|
|
302
|
-
// Set, not merely equal to the inherited value: the box's colour then
|
|
303
|
-
// reaches its ordered-list numbers (EF-92).
|
|
304
|
-
...(partial.lists?.color ? { colorSet: true } : {}),
|
|
305
|
-
},
|
|
306
|
-
marginTop: partial.marginTop ?? d.marginTop,
|
|
307
|
-
marginBottom: partial.marginBottom ?? d.marginBottom,
|
|
308
|
-
snapToGrid: partial.snapToGrid ?? d.snapToGrid,
|
|
309
|
-
keepTogether: partial.keepTogether ?? d.keepTogether,
|
|
310
|
-
splitMinLines: Number.isInteger(partial.splitMinLines) && partial.splitMinLines >= 1
|
|
311
|
-
? partial.splitMinLines
|
|
312
|
-
: d.splitMinLines,
|
|
313
|
-
repeatTitle: partial.repeatTitle ?? d.repeatTitle,
|
|
314
|
-
continuedSuffix: partial.continuedSuffix ?? strings.continuedSuffix,
|
|
315
|
-
continuesMarkerEnabled: partial.continuesMarkerEnabled ?? d.continuesMarkerEnabled,
|
|
316
|
-
continuesMarker: partial.continuesMarker ?? strings.continuesMarker,
|
|
317
|
-
continuesMarkerAlign: partial.continuesMarkerAlign ?? d.continuesMarkerAlign,
|
|
318
|
-
continuesMarkerItalic: partial.continuesMarkerItalic ?? d.continuesMarkerItalic,
|
|
319
|
-
...(partial.numbering ? { numbering: resolveCalloutNumbering(partial.numbering, partial.id) } : {}),
|
|
320
|
-
endMark: partial.endMark ?? '',
|
|
321
|
-
...(partial.design ? { design: resolveCalloutDesign(partial.design) } : {}),
|
|
322
|
-
};
|
|
323
|
-
}
|
|
324
|
-
/** A box style's design (#1014): on once set unless it says otherwise, its
|
|
325
|
-
* text elements wrapping as a heading design's do. */
|
|
326
|
-
function resolveCalloutDesign(raw) {
|
|
327
|
-
return {
|
|
328
|
-
enabled: raw.enabled ?? true,
|
|
329
|
-
slot: resolveDesignSlot(raw.slot ?? { elements: [] }, 'box'),
|
|
330
|
-
...(raw.minHeight ? { minHeight: raw.minHeight } : {}),
|
|
331
|
-
setsContent: raw.setsContent === true,
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
/** A style's statement numbering (#530) with its defaults: the counter
|
|
335
|
-
* named after the style, `{n}` never reset, a bold run-in label ending in
|
|
336
|
-
* a full stop. */
|
|
337
|
-
function resolveCalloutNumbering(partial, styleId) {
|
|
338
|
-
return {
|
|
339
|
-
label: partial.label ?? '',
|
|
340
|
-
counter: partial.counter === false ? '' : (partial.counter?.trim() || styleId),
|
|
341
|
-
numberingTemplate: partial.numberingTemplate ?? '{n}',
|
|
342
|
-
resetOn: partial.resetOn ?? 'never',
|
|
343
|
-
counterFormat: partial.counterFormat ?? 'decimal',
|
|
344
|
-
placement: partial.placement === 'title' ? 'title' : 'runIn',
|
|
345
|
-
bold: partial.bold ?? true,
|
|
346
|
-
italic: partial.italic ?? false,
|
|
347
|
-
suffix: partial.suffix ?? '.',
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
/** A value merged whole, never key by key: a colour (`hex`) or a length
|
|
351
|
-
* (`value` + `unit`). */
|
|
352
|
-
const isAtom = (v) => 'hex' in v || ('value' in v && 'unit' in v);
|
|
353
|
-
const isPlainObject = (v) => typeof v === 'object' && v !== null && !Array.isArray(v);
|
|
354
|
-
/** `child` over `parent`: objects merged key by key, colours, lengths,
|
|
355
|
-
* arrays and scalars replaced. */
|
|
356
|
-
function mergeOver(parent, child) {
|
|
357
|
-
const out = { ...parent };
|
|
358
|
-
for (const [key, value] of Object.entries(child)) {
|
|
359
|
-
if (value === undefined)
|
|
360
|
-
continue;
|
|
361
|
-
const below = out[key];
|
|
362
|
-
out[key] = isPlainObject(value) && isPlainObject(below) && !isAtom(value) && !isAtom(below) ? mergeOver(below, value) : value;
|
|
363
|
-
}
|
|
364
|
-
return out;
|
|
365
|
-
}
|
|
366
|
-
/** Where a style's `extends` leads (#905): the chain of style indices from
|
|
367
|
-
* `index` up, nearest first, the first style of each id; `cycle` when it
|
|
368
|
-
* comes back to a style already in it, `unknown` when a parent id names
|
|
369
|
-
* no style (the chain stops there). */
|
|
370
|
-
export function calloutStyleChain(styles, index) {
|
|
371
|
-
const byId = new Map();
|
|
372
|
-
styles.forEach((s, i) => {
|
|
373
|
-
if (s && typeof s.id === 'string' && !byId.has(s.id))
|
|
374
|
-
byId.set(s.id, i);
|
|
375
|
-
});
|
|
376
|
-
const chain = [];
|
|
377
|
-
for (let at = index; at !== undefined;) {
|
|
378
|
-
const loop = chain.indexOf(at);
|
|
379
|
-
if (loop >= 0)
|
|
380
|
-
return { chain, cycle: [...chain.slice(loop), at] };
|
|
381
|
-
chain.push(at);
|
|
382
|
-
const parent = styles[at]?.extends;
|
|
383
|
-
if (typeof parent !== 'string' || parent === '')
|
|
384
|
-
break;
|
|
385
|
-
const next = byId.get(parent);
|
|
386
|
-
if (next === undefined)
|
|
387
|
-
return { chain, unknown: parent };
|
|
388
|
-
at = next;
|
|
389
|
-
}
|
|
390
|
-
return { chain };
|
|
391
|
-
}
|
|
392
|
-
/** The styles with what each inherits through `extends` (#905) written
|
|
393
|
-
* in, `extends` left out. A style whose chain loops stands alone, and so
|
|
394
|
-
* does the rest of a chain past an id no style has. */
|
|
395
|
-
export function inheritCalloutStyles(styles) {
|
|
396
|
-
if (!styles.some((s) => s?.extends !== undefined))
|
|
397
|
-
return styles;
|
|
398
|
-
return styles.map((s, i) => {
|
|
399
|
-
if (!s || s.extends === undefined)
|
|
400
|
-
return s;
|
|
401
|
-
const { chain, cycle } = calloutStyleChain(styles, i);
|
|
402
|
-
const without = (style, keys) => Object.fromEntries(Object.entries(style).filter(([k]) => !keys.includes(k)));
|
|
403
|
-
const own = without(s, ['extends']);
|
|
404
|
-
if (cycle)
|
|
405
|
-
return own;
|
|
406
|
-
let merged = {};
|
|
407
|
-
// From the root down: each parent's look, not its id or name.
|
|
408
|
-
for (const at of chain.slice(1).reverse())
|
|
409
|
-
merged = mergeOver(merged, without(styles[at], ['id', 'name', 'extends']));
|
|
410
|
-
return mergeOver(merged, own);
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
/** Resolve the callout styles. `locale` is the document language of the
|
|
414
|
-
* continuation strings (`continuedSuffix` / `continuesMarker`) when a
|
|
415
|
-
* style leaves them unset — `PostextConfig.locale`, else the hyphenation
|
|
416
|
-
* locale. A style's `extends` (#905) is merged in first. */
|
|
417
|
-
export function resolveCalloutStylesConfig(partial, bodyText, headings, unorderedLists, locale) {
|
|
418
|
-
return inheritCalloutStyles(partial ?? DEFAULT_CALLOUT_STYLES).map((s) => resolveCalloutStyleConfig(s, bodyText, headings, unorderedLists, locale));
|
|
419
|
-
}
|
|
420
|
-
function stripObject(obj) {
|
|
421
|
-
return Object.keys(obj).length > 0 ? obj : undefined;
|
|
422
|
-
}
|
|
423
|
-
/** Drop every field equal to its static default (and `name` equal to `id`).
|
|
424
|
-
* Inherited fields (`titleStyle.fontFamily`, `titleStyle.fontSize`,
|
|
425
|
-
* `icon.fontFamily`, `marker.fontFamily`, `body.*`, `lists.*`) and the
|
|
426
|
-
* language-dependent continuation strings are kept whenever set, since
|
|
427
|
-
* their effective default depends on other config sections. Returns
|
|
428
|
-
* `undefined` when the list is the built-in default (a single bare
|
|
429
|
-
* `note` style); an empty list stays empty. */
|
|
430
|
-
export function stripCalloutStylesDefaults(styles) {
|
|
431
|
-
if (!styles)
|
|
432
|
-
return undefined;
|
|
433
|
-
// An empty list is a document with no box styles, which the built-in
|
|
434
|
-
// `note` would otherwise come back into (#694).
|
|
435
|
-
if (styles.length === 0)
|
|
436
|
-
return [];
|
|
437
|
-
const d = DEFAULT_CALLOUT_STYLE_STATIC;
|
|
438
|
-
const stripped = styles.map((s) => {
|
|
439
|
-
// A style based on another (#905) keeps every field it sets: one equal
|
|
440
|
-
// to the default may override what the parent sets.
|
|
441
|
-
if (s.extends !== undefined) {
|
|
442
|
-
return Object.fromEntries(Object.entries(s).filter(([, v]) => v !== undefined));
|
|
443
|
-
}
|
|
444
|
-
const r = { id: s.id };
|
|
445
|
-
if (s.name !== undefined && s.name !== s.id)
|
|
446
|
-
r.name = s.name;
|
|
447
|
-
if (s.title !== undefined && s.title !== d.title)
|
|
448
|
-
r.title = s.title;
|
|
449
|
-
if (s.span !== undefined && s.span !== d.span)
|
|
450
|
-
r.span = s.span;
|
|
451
|
-
if (s.columns !== undefined && s.columns !== d.columns)
|
|
452
|
-
r.columns = s.columns;
|
|
453
|
-
if (s.placement !== undefined && s.placement !== d.placement)
|
|
454
|
-
r.placement = s.placement;
|
|
455
|
-
if (s.sideAtColumnEnd !== undefined && s.sideAtColumnEnd !== d.sideAtColumnEnd)
|
|
456
|
-
r.sideAtColumnEnd = s.sideAtColumnEnd;
|
|
457
|
-
if (s.fixed) {
|
|
458
|
-
const f = {};
|
|
459
|
-
const a = s.fixed.anchor;
|
|
460
|
-
if (a && (a.to !== d.fixed.anchor.to || a.edge !== d.fixed.anchor.edge))
|
|
461
|
-
f.anchor = a;
|
|
462
|
-
if (s.fixed.offset) {
|
|
463
|
-
const o = {};
|
|
464
|
-
if (s.fixed.offset.x !== undefined && !dimensionsEqual(s.fixed.offset.x, d.fixed.offset.x))
|
|
465
|
-
o.x = s.fixed.offset.x;
|
|
466
|
-
if (s.fixed.offset.y !== undefined && !dimensionsEqual(s.fixed.offset.y, d.fixed.offset.y))
|
|
467
|
-
o.y = s.fixed.offset.y;
|
|
468
|
-
const kept = stripObject(o);
|
|
469
|
-
if (kept)
|
|
470
|
-
f.offset = kept;
|
|
471
|
-
}
|
|
472
|
-
const kept = stripObject(f);
|
|
473
|
-
if (kept)
|
|
474
|
-
r.fixed = kept;
|
|
475
|
-
}
|
|
476
|
-
if (s.floatBarrier !== undefined && s.floatBarrier !== d.floatBarrier)
|
|
477
|
-
r.floatBarrier = s.floatBarrier;
|
|
478
|
-
if (s.width !== undefined && s.width !== d.width)
|
|
479
|
-
r.width = s.width;
|
|
480
|
-
if (s.backgroundEnabled !== undefined && s.backgroundEnabled !== d.backgroundEnabled) {
|
|
481
|
-
r.backgroundEnabled = s.backgroundEnabled;
|
|
482
|
-
}
|
|
483
|
-
if (s.background !== undefined && !colorsEqual(s.background, d.background))
|
|
484
|
-
r.background = s.background;
|
|
485
|
-
if (s.border) {
|
|
486
|
-
const b = {};
|
|
487
|
-
if (s.border.enabled !== undefined && s.border.enabled !== d.border.enabled)
|
|
488
|
-
b.enabled = s.border.enabled;
|
|
489
|
-
if (s.border.color !== undefined && !colorsEqual(s.border.color, d.border.color))
|
|
490
|
-
b.color = s.border.color;
|
|
491
|
-
if (s.border.width !== undefined && !dimensionsEqual(s.border.width, d.border.width))
|
|
492
|
-
b.width = s.border.width;
|
|
493
|
-
if (s.border.sides !== undefined)
|
|
494
|
-
b.sides = s.border.sides;
|
|
495
|
-
const kept = stripObject(b);
|
|
496
|
-
if (kept)
|
|
497
|
-
r.border = kept;
|
|
498
|
-
}
|
|
499
|
-
if (s.borderRadius !== undefined && (isCornerRadii(s.borderRadius) || !dimensionsEqual(s.borderRadius, d.borderRadius)))
|
|
500
|
-
r.borderRadius = s.borderRadius;
|
|
501
|
-
if (s.padding) {
|
|
502
|
-
const p = {};
|
|
503
|
-
if (s.padding.top !== undefined && !dimensionsEqual(s.padding.top, d.padding.top))
|
|
504
|
-
p.top = s.padding.top;
|
|
505
|
-
if (s.padding.right !== undefined && !dimensionsEqual(s.padding.right, d.padding.right))
|
|
506
|
-
p.right = s.padding.right;
|
|
507
|
-
if (s.padding.bottom !== undefined && !dimensionsEqual(s.padding.bottom, d.padding.bottom))
|
|
508
|
-
p.bottom = s.padding.bottom;
|
|
509
|
-
if (s.padding.left !== undefined && !dimensionsEqual(s.padding.left, d.padding.left))
|
|
510
|
-
p.left = s.padding.left;
|
|
511
|
-
const kept = stripObject(p);
|
|
512
|
-
if (kept)
|
|
513
|
-
r.padding = kept;
|
|
514
|
-
}
|
|
515
|
-
if (s.stripe) {
|
|
516
|
-
const st = {};
|
|
517
|
-
if (s.stripe.enabled !== undefined && s.stripe.enabled !== d.stripe.enabled)
|
|
518
|
-
st.enabled = s.stripe.enabled;
|
|
519
|
-
if (s.stripe.side !== undefined && s.stripe.side !== d.stripe.side)
|
|
520
|
-
st.side = s.stripe.side;
|
|
521
|
-
if (s.stripe.width !== undefined && !dimensionsEqual(s.stripe.width, d.stripe.width))
|
|
522
|
-
st.width = s.stripe.width;
|
|
523
|
-
if (s.stripe.color !== undefined && !colorsEqual(s.stripe.color, d.stripe.color))
|
|
524
|
-
st.color = s.stripe.color;
|
|
525
|
-
const kept = stripObject(st);
|
|
526
|
-
if (kept)
|
|
527
|
-
r.stripe = kept;
|
|
528
|
-
}
|
|
529
|
-
if (s.icon) {
|
|
530
|
-
const ic = {};
|
|
531
|
-
if (s.icon.kind !== undefined && s.icon.kind !== d.icon.kind)
|
|
532
|
-
ic.kind = s.icon.kind;
|
|
533
|
-
if (s.icon.glyph !== undefined && s.icon.glyph !== d.icon.glyph)
|
|
534
|
-
ic.glyph = s.icon.glyph;
|
|
535
|
-
if (s.icon.resourceId !== undefined && s.icon.resourceId !== d.icon.resourceId)
|
|
536
|
-
ic.resourceId = s.icon.resourceId;
|
|
537
|
-
if (s.icon.fontFamily !== undefined)
|
|
538
|
-
ic.fontFamily = s.icon.fontFamily;
|
|
539
|
-
if (s.icon.fontWeight !== undefined && s.icon.fontWeight !== d.icon.fontWeight)
|
|
540
|
-
ic.fontWeight = s.icon.fontWeight;
|
|
541
|
-
if (s.icon.size !== undefined && !dimensionsEqual(s.icon.size, d.icon.size))
|
|
542
|
-
ic.size = s.icon.size;
|
|
543
|
-
if (s.icon.color !== undefined && !colorsEqual(s.icon.color, d.icon.color))
|
|
544
|
-
ic.color = s.icon.color;
|
|
545
|
-
if (s.icon.align !== undefined && s.icon.align !== d.icon.align)
|
|
546
|
-
ic.align = s.icon.align;
|
|
547
|
-
if (s.icon.position !== undefined && s.icon.position !== d.icon.position)
|
|
548
|
-
ic.position = s.icon.position;
|
|
549
|
-
if (s.icon.cornerSide !== undefined && s.icon.cornerSide !== d.icon.cornerSide)
|
|
550
|
-
ic.cornerSide = s.icon.cornerSide;
|
|
551
|
-
if (s.icon.width !== undefined)
|
|
552
|
-
ic.width = s.icon.width;
|
|
553
|
-
if (s.icon.shape !== undefined)
|
|
554
|
-
ic.shape = s.icon.shape;
|
|
555
|
-
if (s.icon.strokeWidth !== undefined)
|
|
556
|
-
ic.strokeWidth = s.icon.strokeWidth;
|
|
557
|
-
if (s.icon.tint !== undefined && s.icon.tint !== false)
|
|
558
|
-
ic.tint = s.icon.tint;
|
|
559
|
-
const kept = stripObject(ic);
|
|
560
|
-
if (kept)
|
|
561
|
-
r.icon = kept;
|
|
562
|
-
}
|
|
563
|
-
if (s.marker) {
|
|
564
|
-
const m = {};
|
|
565
|
-
const dm = d.marker;
|
|
566
|
-
if (s.marker.kind !== undefined && s.marker.kind !== dm.kind)
|
|
567
|
-
m.kind = s.marker.kind;
|
|
568
|
-
if (s.marker.glyph !== undefined && s.marker.glyph !== dm.glyph)
|
|
569
|
-
m.glyph = s.marker.glyph;
|
|
570
|
-
if (s.marker.resourceId !== undefined && s.marker.resourceId !== dm.resourceId)
|
|
571
|
-
m.resourceId = s.marker.resourceId;
|
|
572
|
-
if (s.marker.fontFamily !== undefined)
|
|
573
|
-
m.fontFamily = s.marker.fontFamily;
|
|
574
|
-
if (s.marker.fontWeight !== undefined && s.marker.fontWeight !== dm.fontWeight)
|
|
575
|
-
m.fontWeight = s.marker.fontWeight;
|
|
576
|
-
if (s.marker.size !== undefined && !dimensionsEqual(s.marker.size, dm.size))
|
|
577
|
-
m.size = s.marker.size;
|
|
578
|
-
if (s.marker.color !== undefined && !colorsEqual(s.marker.color, dm.color))
|
|
579
|
-
m.color = s.marker.color;
|
|
580
|
-
if (s.marker.align !== undefined && s.marker.align !== dm.align)
|
|
581
|
-
m.align = s.marker.align;
|
|
582
|
-
if (s.marker.gap !== undefined && !dimensionsEqual(s.marker.gap, dm.gap))
|
|
583
|
-
m.gap = s.marker.gap;
|
|
584
|
-
if (s.marker.shape !== undefined)
|
|
585
|
-
m.shape = s.marker.shape;
|
|
586
|
-
if (s.marker.strokeWidth !== undefined)
|
|
587
|
-
m.strokeWidth = s.marker.strokeWidth;
|
|
588
|
-
if (s.marker.tint !== undefined && s.marker.tint !== false)
|
|
589
|
-
m.tint = s.marker.tint;
|
|
590
|
-
if (s.marker.rule) {
|
|
591
|
-
const ru = {};
|
|
592
|
-
const r0 = s.marker.rule;
|
|
593
|
-
if (r0.enabled !== undefined && r0.enabled !== dm.rule.enabled)
|
|
594
|
-
ru.enabled = r0.enabled;
|
|
595
|
-
if (r0.color !== undefined && !colorsEqual(r0.color, dm.rule.color))
|
|
596
|
-
ru.color = r0.color;
|
|
597
|
-
if (r0.width !== undefined && !dimensionsEqual(r0.width, dm.rule.width))
|
|
598
|
-
ru.width = r0.width;
|
|
599
|
-
if (r0.length !== undefined && !dimensionsEqual(r0.length, dm.rule.length))
|
|
600
|
-
ru.length = r0.length;
|
|
601
|
-
const keptRule = stripObject(ru);
|
|
602
|
-
if (keptRule)
|
|
603
|
-
m.rule = keptRule;
|
|
604
|
-
}
|
|
605
|
-
const kept = stripObject(m);
|
|
606
|
-
if (kept)
|
|
607
|
-
r.marker = kept;
|
|
608
|
-
}
|
|
609
|
-
if (s.titleStyle) {
|
|
610
|
-
const t = {};
|
|
611
|
-
if (s.titleStyle.fontFamily !== undefined)
|
|
612
|
-
t.fontFamily = s.titleStyle.fontFamily;
|
|
613
|
-
if (s.titleStyle.fontSize !== undefined)
|
|
614
|
-
t.fontSize = s.titleStyle.fontSize;
|
|
615
|
-
if (s.titleStyle.fontWeight !== undefined && s.titleStyle.fontWeight !== d.titleStyle.fontWeight)
|
|
616
|
-
t.fontWeight = s.titleStyle.fontWeight;
|
|
617
|
-
if (s.titleStyle.italic !== undefined && s.titleStyle.italic !== d.titleStyle.italic)
|
|
618
|
-
t.italic = s.titleStyle.italic;
|
|
619
|
-
if (s.titleStyle.color !== undefined && !colorsEqual(s.titleStyle.color, d.titleStyle.color))
|
|
620
|
-
t.color = s.titleStyle.color;
|
|
621
|
-
if (s.titleStyle.textTransform !== undefined && s.titleStyle.textTransform !== d.titleStyle.textTransform)
|
|
622
|
-
t.textTransform = s.titleStyle.textTransform;
|
|
623
|
-
if (s.titleStyle.letterSpacing !== undefined && !dimensionsEqual(s.titleStyle.letterSpacing, PT0))
|
|
624
|
-
t.letterSpacing = s.titleStyle.letterSpacing;
|
|
625
|
-
if (s.titleStyle.indent !== undefined && !dimensionsEqual(s.titleStyle.indent, PT0))
|
|
626
|
-
t.indent = s.titleStyle.indent;
|
|
627
|
-
if (s.titleStyle.gap !== undefined && !dimensionsEqual(s.titleStyle.gap, d.titleStyle.gap))
|
|
628
|
-
t.gap = s.titleStyle.gap;
|
|
629
|
-
if (s.titleStyle.lineHeight !== undefined && !dimensionsEqual(s.titleStyle.lineHeight, d.titleStyle.lineHeight))
|
|
630
|
-
t.lineHeight = s.titleStyle.lineHeight;
|
|
631
|
-
const kept = stripObject(t);
|
|
632
|
-
if (kept)
|
|
633
|
-
r.titleStyle = kept;
|
|
634
|
-
}
|
|
635
|
-
if (s.body) {
|
|
636
|
-
const b = {};
|
|
637
|
-
if (s.body.fontFamily !== undefined)
|
|
638
|
-
b.fontFamily = s.body.fontFamily;
|
|
639
|
-
if (s.body.fontSize !== undefined)
|
|
640
|
-
b.fontSize = s.body.fontSize;
|
|
641
|
-
if (s.body.lineHeight !== undefined)
|
|
642
|
-
b.lineHeight = s.body.lineHeight;
|
|
643
|
-
if (s.body.color !== undefined)
|
|
644
|
-
b.color = s.body.color;
|
|
645
|
-
if (s.body.boldColor !== undefined)
|
|
646
|
-
b.boldColor = s.body.boldColor;
|
|
647
|
-
if (s.body.italicColor !== undefined)
|
|
648
|
-
b.italicColor = s.body.italicColor;
|
|
649
|
-
if (s.body.fontWeight !== undefined)
|
|
650
|
-
b.fontWeight = s.body.fontWeight;
|
|
651
|
-
if (s.body.boldFontWeight !== undefined)
|
|
652
|
-
b.boldFontWeight = s.body.boldFontWeight;
|
|
653
|
-
if (s.body.italic)
|
|
654
|
-
b.italic = true;
|
|
655
|
-
if (s.body.smallCaps)
|
|
656
|
-
b.smallCaps = true;
|
|
657
|
-
if (s.body.letterSpacing !== undefined && !dimensionsEqual(s.body.letterSpacing, PT0))
|
|
658
|
-
b.letterSpacing = s.body.letterSpacing;
|
|
659
|
-
if (s.body.textAlign !== undefined)
|
|
660
|
-
b.textAlign = s.body.textAlign;
|
|
661
|
-
if (s.body.hyphenation !== undefined)
|
|
662
|
-
b.hyphenation = s.body.hyphenation;
|
|
663
|
-
if (s.body.paragraphSpacing !== undefined)
|
|
664
|
-
b.paragraphSpacing = s.body.paragraphSpacing;
|
|
665
|
-
if (s.body.firstLineIndent !== undefined)
|
|
666
|
-
b.firstLineIndent = s.body.firstLineIndent;
|
|
667
|
-
if (Array.isArray(s.body.tabStops))
|
|
668
|
-
b.tabStops = s.body.tabStops;
|
|
669
|
-
if (s.body.tabInterval !== undefined)
|
|
670
|
-
b.tabInterval = s.body.tabInterval;
|
|
671
|
-
const kept = stripObject(b);
|
|
672
|
-
if (kept)
|
|
673
|
-
r.body = kept;
|
|
674
|
-
}
|
|
675
|
-
if (s.lists) {
|
|
676
|
-
const l = {};
|
|
677
|
-
if (s.lists.bulletChar !== undefined)
|
|
678
|
-
l.bulletChar = s.lists.bulletChar;
|
|
679
|
-
if (s.lists.color !== undefined)
|
|
680
|
-
l.color = s.lists.color;
|
|
681
|
-
if (s.lists.indent !== undefined)
|
|
682
|
-
l.indent = s.lists.indent;
|
|
683
|
-
if (s.lists.gap !== undefined)
|
|
684
|
-
l.gap = s.lists.gap;
|
|
685
|
-
if (s.lists.itemSpacing !== undefined)
|
|
686
|
-
l.itemSpacing = s.lists.itemSpacing;
|
|
687
|
-
if (s.lists.bulletFontSize !== undefined)
|
|
688
|
-
l.bulletFontSize = s.lists.bulletFontSize;
|
|
689
|
-
if (s.lists.bulletFontWeight !== undefined)
|
|
690
|
-
l.bulletFontWeight = s.lists.bulletFontWeight;
|
|
691
|
-
if (s.lists.bulletFontFamily)
|
|
692
|
-
l.bulletFontFamily = s.lists.bulletFontFamily;
|
|
693
|
-
if (s.lists.marginTop !== undefined)
|
|
694
|
-
l.marginTop = s.lists.marginTop;
|
|
695
|
-
if (s.lists.marginBottom !== undefined)
|
|
696
|
-
l.marginBottom = s.lists.marginBottom;
|
|
697
|
-
const kept = stripObject(l);
|
|
698
|
-
if (kept)
|
|
699
|
-
r.lists = kept;
|
|
700
|
-
}
|
|
701
|
-
if (s.label)
|
|
702
|
-
r.label = s.label;
|
|
703
|
-
if (s.columnGap !== undefined && !dimensionsEqual(s.columnGap, d.columnGap))
|
|
704
|
-
r.columnGap = s.columnGap;
|
|
705
|
-
if (s.marginTop !== undefined && !dimensionsEqual(s.marginTop, d.marginTop))
|
|
706
|
-
r.marginTop = s.marginTop;
|
|
707
|
-
if (s.marginBottom !== undefined && !dimensionsEqual(s.marginBottom, d.marginBottom))
|
|
708
|
-
r.marginBottom = s.marginBottom;
|
|
709
|
-
if (s.snapToGrid !== undefined && s.snapToGrid !== d.snapToGrid)
|
|
710
|
-
r.snapToGrid = s.snapToGrid;
|
|
711
|
-
if (s.keepTogether !== undefined && s.keepTogether !== d.keepTogether)
|
|
712
|
-
r.keepTogether = s.keepTogether;
|
|
713
|
-
if (s.splitMinLines !== undefined && s.splitMinLines !== d.splitMinLines)
|
|
714
|
-
r.splitMinLines = s.splitMinLines;
|
|
715
|
-
if (s.repeatTitle !== undefined && s.repeatTitle !== d.repeatTitle)
|
|
716
|
-
r.repeatTitle = s.repeatTitle;
|
|
717
|
-
// Continuation strings default per document language: kept whenever set.
|
|
718
|
-
if (s.continuedSuffix !== undefined)
|
|
719
|
-
r.continuedSuffix = s.continuedSuffix;
|
|
720
|
-
if (s.continuesMarkerEnabled !== undefined && s.continuesMarkerEnabled !== d.continuesMarkerEnabled) {
|
|
721
|
-
r.continuesMarkerEnabled = s.continuesMarkerEnabled;
|
|
722
|
-
}
|
|
723
|
-
if (s.continuesMarker !== undefined)
|
|
724
|
-
r.continuesMarker = s.continuesMarker;
|
|
725
|
-
if (s.continuesMarkerAlign !== undefined && s.continuesMarkerAlign !== d.continuesMarkerAlign) {
|
|
726
|
-
r.continuesMarkerAlign = s.continuesMarkerAlign;
|
|
727
|
-
}
|
|
728
|
-
if (s.continuesMarkerItalic !== undefined && s.continuesMarkerItalic !== d.continuesMarkerItalic) {
|
|
729
|
-
r.continuesMarkerItalic = s.continuesMarkerItalic;
|
|
730
|
-
}
|
|
731
|
-
if (s.numbering)
|
|
732
|
-
r.numbering = s.numbering;
|
|
733
|
-
if (s.endMark)
|
|
734
|
-
r.endMark = s.endMark;
|
|
735
|
-
// A design has no default to compare with: kept as written.
|
|
736
|
-
if (s.design)
|
|
737
|
-
r.design = s.design;
|
|
738
|
-
return r;
|
|
739
|
-
});
|
|
740
|
-
// The built-in default (a single bare `note` style) needs no persisting.
|
|
741
|
-
if (stripped.length === 1) {
|
|
742
|
-
const only = stripped[0];
|
|
743
|
-
const keys = Object.keys(only);
|
|
744
|
-
const bare = keys.every((k) => k === 'id' || k === 'name');
|
|
745
|
-
if (only.id === 'note' && bare && (only.name === undefined || only.name === 'Note'))
|
|
746
|
-
return undefined;
|
|
747
|
-
}
|
|
748
|
-
return stripped;
|
|
749
|
-
}
|
|
1
|
+
export { DEFAULT_CALLOUT_STYLE_STATIC, labelIconKind, iconTint, labelIconScale, DEFAULT_CALLOUT_STYLES } from './calloutStyles/statics.js';
|
|
2
|
+
export { calloutStyleChain, inheritCalloutStyles } from './calloutStyles/inherit.js';
|
|
3
|
+
export { resolveCalloutStylesConfig } from './calloutStyles/resolve.js';
|
|
4
|
+
export { stripCalloutStylesDefaults } from './calloutStyles/strip.js';
|
|
750
5
|
//# sourceMappingURL=calloutStyles.js.map
|