postext 1.46.4 → 1.48.0
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/__tests__/bundle/designOverflowPin.test.js +1 -1
- package/dist/__tests__/bundle/gridBreakRulesPin.test.js +2 -2
- package/dist/__tests__/bundle/shapingLanguagePin.test.js +3 -3
- package/dist/__tests__/bundle/taskBoxPin.test.js +1 -1
- package/dist/__tests__/bundle.test.js +1 -1
- package/dist/__tests__/codeBlocks.test.js +1 -1
- package/dist/__tests__/comics/config.test.js +20 -0
- package/dist/__tests__/comics/config.test.js.map +1 -1
- package/dist/__tests__/composed/cardShapes.test.d.ts +2 -0
- package/dist/__tests__/composed/cardShapes.test.d.ts.map +1 -0
- package/dist/__tests__/composed/cardShapes.test.js +82 -0
- package/dist/__tests__/composed/cardShapes.test.js.map +1 -0
- package/dist/__tests__/composed/connectors.test.d.ts +2 -0
- package/dist/__tests__/composed/connectors.test.d.ts.map +1 -0
- package/dist/__tests__/composed/connectors.test.js +349 -0
- package/dist/__tests__/composed/connectors.test.js.map +1 -0
- package/dist/__tests__/composed/decorationSidePoints.test.d.ts +2 -0
- package/dist/__tests__/composed/decorationSidePoints.test.d.ts.map +1 -0
- package/dist/__tests__/composed/decorationSidePoints.test.js +164 -0
- package/dist/__tests__/composed/decorationSidePoints.test.js.map +1 -0
- package/dist/__tests__/composed/fit.test.js +2 -1
- package/dist/__tests__/composed/fit.test.js.map +1 -1
- package/dist/__tests__/composed/fixtures/connectors.d.ts +33 -0
- package/dist/__tests__/composed/fixtures/connectors.d.ts.map +1 -0
- package/dist/__tests__/composed/fixtures/connectors.js +142 -0
- package/dist/__tests__/composed/fixtures/connectors.js.map +1 -0
- package/dist/__tests__/composed/fixtures/grid.d.ts +32 -0
- package/dist/__tests__/composed/fixtures/grid.d.ts.map +1 -0
- package/dist/__tests__/composed/fixtures/grid.js +53 -0
- package/dist/__tests__/composed/fixtures/grid.js.map +1 -0
- package/dist/__tests__/composed/fixtures/legendMap.d.ts +24 -0
- package/dist/__tests__/composed/fixtures/legendMap.d.ts.map +1 -0
- package/dist/__tests__/composed/fixtures/legendMap.js +117 -0
- package/dist/__tests__/composed/fixtures/legendMap.js.map +1 -0
- package/dist/__tests__/composed/fixtures/mapParts.d.ts +58 -0
- package/dist/__tests__/composed/fixtures/mapParts.d.ts.map +1 -0
- package/dist/__tests__/composed/fixtures/mapParts.js +192 -0
- package/dist/__tests__/composed/fixtures/mapParts.js.map +1 -0
- package/dist/__tests__/composed/fixtures/modules.d.ts +55 -0
- package/dist/__tests__/composed/fixtures/modules.d.ts.map +1 -0
- package/dist/__tests__/composed/fixtures/modules.js +123 -0
- package/dist/__tests__/composed/fixtures/modules.js.map +1 -0
- package/dist/__tests__/composed/grid.test.d.ts +2 -0
- package/dist/__tests__/composed/grid.test.d.ts.map +1 -0
- package/dist/__tests__/composed/grid.test.js +357 -0
- package/dist/__tests__/composed/grid.test.js.map +1 -0
- package/dist/__tests__/composed/groups.test.js +6 -3
- package/dist/__tests__/composed/groups.test.js.map +1 -1
- package/dist/__tests__/composed/labelLegend.test.d.ts +2 -0
- package/dist/__tests__/composed/labelLegend.test.d.ts.map +1 -0
- package/dist/__tests__/composed/labelLegend.test.js +268 -0
- package/dist/__tests__/composed/labelLegend.test.js.map +1 -0
- package/dist/__tests__/composed/labelsChecks.test.js.map +1 -1
- package/dist/__tests__/composed/leaders.test.d.ts +2 -0
- package/dist/__tests__/composed/leaders.test.d.ts.map +1 -0
- package/dist/__tests__/composed/leaders.test.js +372 -0
- package/dist/__tests__/composed/leaders.test.js.map +1 -0
- package/dist/__tests__/composed/modules.test.d.ts +2 -0
- package/dist/__tests__/composed/modules.test.d.ts.map +1 -0
- package/dist/__tests__/composed/modules.test.js +352 -0
- package/dist/__tests__/composed/modules.test.js.map +1 -0
- package/dist/__tests__/composed/overConnectors.test.d.ts +2 -0
- package/dist/__tests__/composed/overConnectors.test.d.ts.map +1 -0
- package/dist/__tests__/composed/overConnectors.test.js +232 -0
- package/dist/__tests__/composed/overConnectors.test.js.map +1 -0
- package/dist/__tests__/composed/overlap.test.d.ts +2 -0
- package/dist/__tests__/composed/overlap.test.d.ts.map +1 -0
- package/dist/__tests__/composed/overlap.test.js +339 -0
- package/dist/__tests__/composed/overlap.test.js.map +1 -0
- package/dist/__tests__/composed/viewerLeaf.test.d.ts +2 -0
- package/dist/__tests__/composed/viewerLeaf.test.d.ts.map +1 -0
- package/dist/__tests__/composed/viewerLeaf.test.js +106 -0
- package/dist/__tests__/composed/viewerLeaf.test.js.map +1 -0
- package/dist/__tests__/composedTemplates.test.js +1 -1
- package/dist/__tests__/design/boxShape.test.d.ts +2 -0
- package/dist/__tests__/design/boxShape.test.d.ts.map +1 -0
- package/dist/__tests__/design/boxShape.test.js +126 -0
- package/dist/__tests__/design/boxShape.test.js.map +1 -0
- package/dist/__tests__/design/boxShapePaint.test.d.ts +2 -0
- package/dist/__tests__/design/boxShapePaint.test.d.ts.map +1 -0
- package/dist/__tests__/design/boxShapePaint.test.js +130 -0
- package/dist/__tests__/design/boxShapePaint.test.js.map +1 -0
- package/dist/__tests__/design/openerBottomAnchor.test.js.map +1 -1
- package/dist/__tests__/design/pathBlock.test.d.ts +2 -0
- package/dist/__tests__/design/pathBlock.test.d.ts.map +1 -0
- package/dist/__tests__/design/pathBlock.test.js +194 -0
- package/dist/__tests__/design/pathBlock.test.js.map +1 -0
- package/dist/__tests__/design/pathElement.test.d.ts +2 -0
- package/dist/__tests__/design/pathElement.test.d.ts.map +1 -0
- package/dist/__tests__/design/pathElement.test.js +257 -0
- package/dist/__tests__/design/pathElement.test.js.map +1 -0
- package/dist/__tests__/design/svgPath.test.d.ts +2 -0
- package/dist/__tests__/design/svgPath.test.d.ts.map +1 -0
- package/dist/__tests__/design/svgPath.test.js +144 -0
- package/dist/__tests__/design/svgPath.test.js.map +1 -0
- package/dist/__tests__/exports.test.js +53 -0
- package/dist/__tests__/exports.test.js.map +1 -1
- package/dist/__tests__/fontUsage.test.js +46 -0
- package/dist/__tests__/fontUsage.test.js.map +1 -1
- package/dist/__tests__/hardBreaks.test.js +1 -1
- package/dist/__tests__/headingInlineMarks.test.js +1 -1
- package/dist/__tests__/labelGlyphPaint.test.d.ts +2 -0
- package/dist/__tests__/labelGlyphPaint.test.d.ts.map +1 -0
- package/dist/__tests__/labelGlyphPaint.test.js +86 -0
- package/dist/__tests__/labelGlyphPaint.test.js.map +1 -0
- package/dist/__tests__/mathSizeMigration.test.js +2 -2
- package/dist/__tests__/migrate/labelsOnPictures.test.js +1 -1
- package/dist/__tests__/migrate/labelsOnPictures.test.js.map +1 -1
- package/dist/__tests__/parse/containers.test.js +1 -1
- package/dist/__tests__/parse/containers.test.js.map +1 -1
- package/dist/__tests__/pipeline/calloutInlineResourceGap.test.js +1 -1
- package/dist/__tests__/pipeline/calloutLabelGlyph.test.d.ts +2 -0
- package/dist/__tests__/pipeline/calloutLabelGlyph.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline/calloutLabelGlyph.test.js +198 -0
- package/dist/__tests__/pipeline/calloutLabelGlyph.test.js.map +1 -0
- package/dist/__tests__/pipeline/calloutShapes.test.d.ts +2 -0
- package/dist/__tests__/pipeline/calloutShapes.test.d.ts.map +1 -0
- package/dist/__tests__/pipeline/calloutShapes.test.js +159 -0
- package/dist/__tests__/pipeline/calloutShapes.test.js.map +1 -0
- package/dist/__tests__/pipeline/calloutSplitMinLinesChild.test.js +1 -1
- package/dist/__tests__/pipeline/colonListRoom.test.js +1 -1
- package/dist/__tests__/pipeline/compoundBreaks.test.js +1 -1
- package/dist/__tests__/pipeline/dashBreaks.test.js +1 -1
- package/dist/__tests__/pipeline/headingSplitOrphans.test.js +1 -1
- package/dist/__tests__/pipeline/inlineFigureSpace.test.js +1 -1
- package/dist/__tests__/pipeline/paragraphContainerTail.test.js +1 -1
- package/dist/__tests__/pipeline/raggedOptimal.test.js +1 -1
- package/dist/__tests__/prepareFonts.test.js +8 -6
- package/dist/__tests__/prepareFonts.test.js.map +1 -1
- package/dist/__tests__/verseLines.test.js +1 -1
- package/dist/bundle/configVersion.d.ts +12 -3
- package/dist/bundle/configVersion.d.ts.map +1 -1
- package/dist/bundle/configVersion.js +16 -5
- package/dist/bundle/configVersion.js.map +1 -1
- package/dist/canvas-backend/blockRender.js +3 -3
- package/dist/canvas-backend/blockRender.js.map +1 -1
- package/dist/canvas-backend/composed.d.ts +4 -2
- package/dist/canvas-backend/composed.d.ts.map +1 -1
- package/dist/canvas-backend/composed.js +12 -7
- package/dist/canvas-backend/composed.js.map +1 -1
- package/dist/canvas-backend/headerFooter.d.ts +17 -1
- package/dist/canvas-backend/headerFooter.d.ts.map +1 -1
- package/dist/canvas-backend/headerFooter.js +64 -1
- package/dist/canvas-backend/headerFooter.js.map +1 -1
- package/dist/canvas-backend/index.d.ts.map +1 -1
- package/dist/canvas-backend/index.js +7 -1
- package/dist/canvas-backend/index.js.map +1 -1
- package/dist/canvas-backend/renderResourceBlock.d.ts.map +1 -1
- package/dist/canvas-backend/renderResourceBlock.js +17 -6
- package/dist/canvas-backend/renderResourceBlock.js.map +1 -1
- package/dist/canvas-backend/swatch.d.ts +20 -1
- package/dist/canvas-backend/swatch.d.ts.map +1 -1
- package/dist/canvas-backend/swatch.js +51 -1
- package/dist/canvas-backend/swatch.js.map +1 -1
- package/dist/comics/fonts.d.ts +19 -0
- package/dist/comics/fonts.d.ts.map +1 -1
- package/dist/comics/fonts.js +70 -17
- package/dist/comics/fonts.js.map +1 -1
- package/dist/comics/layoutPage.d.ts.map +1 -1
- package/dist/comics/layoutPage.js +6 -1
- package/dist/comics/layoutPage.js.map +1 -1
- package/dist/composed/continuation.d.ts +10 -2
- package/dist/composed/continuation.d.ts.map +1 -1
- package/dist/composed/continuation.js +10 -2
- package/dist/composed/continuation.js.map +1 -1
- package/dist/composed/document.d.ts +45 -1
- package/dist/composed/document.d.ts.map +1 -1
- package/dist/composed/document.js +76 -17
- package/dist/composed/document.js.map +1 -1
- package/dist/composed/labelText.d.ts +9 -1
- package/dist/composed/labelText.d.ts.map +1 -1
- package/dist/composed/labelText.js +23 -1
- package/dist/composed/labelText.js.map +1 -1
- package/dist/composed/labels.d.ts +57 -3
- package/dist/composed/labels.d.ts.map +1 -1
- package/dist/composed/labels.js +261 -12
- package/dist/composed/labels.js.map +1 -1
- package/dist/composed/modules.d.ts +30 -0
- package/dist/composed/modules.d.ts.map +1 -0
- package/dist/composed/modules.js +194 -0
- package/dist/composed/modules.js.map +1 -0
- package/dist/composed/overlap.d.ts +52 -0
- package/dist/composed/overlap.d.ts.map +1 -0
- package/dist/composed/overlap.js +611 -0
- package/dist/composed/overlap.js.map +1 -0
- package/dist/composed/paint.d.ts +28 -5
- package/dist/composed/paint.d.ts.map +1 -1
- package/dist/composed/paint.js +26 -5
- package/dist/composed/paint.js.map +1 -1
- package/dist/composed/reflowLog.d.ts +6 -1
- package/dist/composed/reflowLog.d.ts.map +1 -1
- package/dist/composed/reflowLog.js +43 -0
- package/dist/composed/reflowLog.js.map +1 -1
- package/dist/composed/repeat.d.ts +66 -0
- package/dist/composed/repeat.d.ts.map +1 -0
- package/dist/composed/repeat.js +217 -0
- package/dist/composed/repeat.js.map +1 -0
- package/dist/composed/slotChecks.d.ts +1 -1
- package/dist/composed/slotChecks.d.ts.map +1 -1
- package/dist/composed/slotChecks.js +114 -8
- package/dist/composed/slotChecks.js.map +1 -1
- package/dist/composed/sourceMap.d.ts.map +1 -1
- package/dist/composed/sourceMap.js +16 -4
- package/dist/composed/sourceMap.js.map +1 -1
- package/dist/composed/spread.d.ts.map +1 -1
- package/dist/composed/spread.js +6 -2
- package/dist/composed/spread.js.map +1 -1
- package/dist/composed/templates.d.ts +22 -2
- package/dist/composed/templates.d.ts.map +1 -1
- package/dist/composed/templates.js +159 -9
- package/dist/composed/templates.js.map +1 -1
- package/dist/composed/types.d.ts +140 -7
- package/dist/composed/types.d.ts.map +1 -1
- package/dist/composed/validate.d.ts +1 -1
- package/dist/composed/validate.d.ts.map +1 -1
- package/dist/composed/validate.js +101 -4
- package/dist/composed/validate.js.map +1 -1
- package/dist/composed/wrap.d.ts.map +1 -1
- package/dist/composed/wrap.js +95 -17
- package/dist/composed/wrap.js.map +1 -1
- package/dist/configWarnings.d.ts +7 -1
- package/dist/configWarnings.d.ts.map +1 -1
- package/dist/configWarnings.js +275 -4
- package/dist/configWarnings.js.map +1 -1
- package/dist/contrast.d.ts.map +1 -1
- package/dist/contrast.js +8 -0
- package/dist/contrast.js.map +1 -1
- package/dist/defaults/calloutStyles.d.ts +10 -1
- package/dist/defaults/calloutStyles.d.ts.map +1 -1
- package/dist/defaults/calloutStyles.js +46 -7
- package/dist/defaults/calloutStyles.js.map +1 -1
- package/dist/defaults/comics.d.ts +2 -1
- package/dist/defaults/comics.d.ts.map +1 -1
- package/dist/defaults/comics.js +18 -3
- package/dist/defaults/comics.js.map +1 -1
- package/dist/defaults/headerFooter.d.ts.map +1 -1
- package/dist/defaults/headerFooter.js +38 -0
- package/dist/defaults/headerFooter.js.map +1 -1
- package/dist/design/boxShape.d.ts +101 -0
- package/dist/design/boxShape.d.ts.map +1 -0
- package/dist/design/boxShape.js +398 -0
- package/dist/design/boxShape.js.map +1 -0
- package/dist/design/connector.d.ts +75 -0
- package/dist/design/connector.d.ts.map +1 -0
- package/dist/design/connector.js +325 -0
- package/dist/design/connector.js.map +1 -0
- package/dist/design/layout.d.ts +56 -3
- package/dist/design/layout.d.ts.map +1 -1
- package/dist/design/layout.js +214 -12
- package/dist/design/layout.js.map +1 -1
- package/dist/design/logicalEdges.d.ts +7 -0
- package/dist/design/logicalEdges.d.ts.map +1 -1
- package/dist/design/logicalEdges.js +28 -0
- package/dist/design/logicalEdges.js.map +1 -1
- package/dist/design/pathBlock.d.ts +69 -0
- package/dist/design/pathBlock.d.ts.map +1 -0
- package/dist/design/pathBlock.js +286 -0
- package/dist/design/pathBlock.js.map +1 -0
- package/dist/design/svgPath.d.ts +48 -0
- package/dist/design/svgPath.d.ts.map +1 -0
- package/dist/design/svgPath.js +402 -0
- package/dist/design/svgPath.js.map +1 -0
- package/dist/fonts/usage.d.ts +5 -0
- package/dist/fonts/usage.d.ts.map +1 -1
- package/dist/fonts/usage.js +81 -11
- package/dist/fonts/usage.js.map +1 -1
- package/dist/html-backend.d.ts.map +1 -1
- package/dist/html-backend.js +127 -22
- package/dist/html-backend.js.map +1 -1
- package/dist/index.d.ts +19 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/measure/cache.js +1 -1
- package/dist/measure/cache.js.map +1 -1
- package/dist/measure/inlineIcon.d.ts +34 -0
- package/dist/measure/inlineIcon.d.ts.map +1 -0
- package/dist/measure/inlineIcon.js +89 -0
- package/dist/measure/inlineIcon.js.map +1 -0
- package/dist/measure/rich.d.ts +2 -1
- package/dist/measure/rich.d.ts.map +1 -1
- package/dist/measure/rich.js +6 -0
- package/dist/measure/rich.js.map +1 -1
- package/dist/migrate/pageDesign.d.ts.map +1 -1
- package/dist/migrate/pageDesign.js +4 -2
- package/dist/migrate/pageDesign.js.map +1 -1
- package/dist/migrate/textToMarkdown.js +2 -0
- package/dist/migrate/textToMarkdown.js.map +1 -1
- package/dist/parse/blockParser.d.ts.map +1 -1
- package/dist/parse/blockParser.js +171 -20
- package/dist/parse/blockParser.js.map +1 -1
- package/dist/parse/index.d.ts +1 -1
- package/dist/parse/index.d.ts.map +1 -1
- package/dist/parse/index.js.map +1 -1
- package/dist/parse/inlineFormatting.d.ts +11 -3
- package/dist/parse/inlineFormatting.d.ts.map +1 -1
- package/dist/parse/inlineFormatting.js +63 -5
- package/dist/parse/inlineFormatting.js.map +1 -1
- package/dist/parse/inlineSnippet.d.ts +2 -1
- package/dist/parse/inlineSnippet.d.ts.map +1 -1
- package/dist/parse/inlineSnippet.js +3 -2
- package/dist/parse/inlineSnippet.js.map +1 -1
- package/dist/parse/sourceMapping.d.ts.map +1 -1
- package/dist/parse/sourceMapping.js +8 -1
- package/dist/parse/sourceMapping.js.map +1 -1
- package/dist/parse/types.d.ts +71 -1
- package/dist/parse/types.d.ts.map +1 -1
- package/dist/pipeline/build.d.ts.map +1 -1
- package/dist/pipeline/build.js +67 -13
- package/dist/pipeline/build.js.map +1 -1
- package/dist/pipeline/buildHelpers.d.ts +10 -0
- package/dist/pipeline/buildHelpers.d.ts.map +1 -1
- package/dist/pipeline/buildHelpers.js +17 -0
- package/dist/pipeline/buildHelpers.js.map +1 -1
- package/dist/pipeline/buildMeasurement.d.ts.map +1 -1
- package/dist/pipeline/buildMeasurement.js +23 -11
- package/dist/pipeline/buildMeasurement.js.map +1 -1
- package/dist/pipeline/calloutLayout.d.ts.map +1 -1
- package/dist/pipeline/calloutLayout.js +142 -32
- package/dist/pipeline/calloutLayout.js.map +1 -1
- package/dist/pipeline/composedLayout.d.ts +1 -33
- package/dist/pipeline/composedLayout.d.ts.map +1 -1
- package/dist/pipeline/composedLayout.js +526 -36
- package/dist/pipeline/composedLayout.js.map +1 -1
- package/dist/pipeline/config.d.ts.map +1 -1
- package/dist/pipeline/config.js +12 -0
- package/dist/pipeline/config.js.map +1 -1
- package/dist/pipeline/contentWarnings.d.ts.map +1 -1
- package/dist/pipeline/contentWarnings.js +46 -1
- package/dist/pipeline/contentWarnings.js.map +1 -1
- package/dist/pipeline/continuation.d.ts.map +1 -1
- package/dist/pipeline/continuation.js +3 -2
- package/dist/pipeline/continuation.js.map +1 -1
- package/dist/pipeline/headerFooter.d.ts +19 -1
- package/dist/pipeline/headerFooter.d.ts.map +1 -1
- package/dist/pipeline/headerFooter.js +169 -17
- package/dist/pipeline/headerFooter.js.map +1 -1
- package/dist/pipeline/partPalette.d.ts.map +1 -1
- package/dist/pipeline/partPalette.js +40 -1
- package/dist/pipeline/partPalette.js.map +1 -1
- package/dist/pipeline/resourceLayout.d.ts +1 -1
- package/dist/pipeline/resourceLayout.d.ts.map +1 -1
- package/dist/pipeline/resourceLayout.js +44 -15
- package/dist/pipeline/resourceLayout.js.map +1 -1
- package/dist/preflight.d.ts.map +1 -1
- package/dist/preflight.js +36 -1
- package/dist/preflight.js.map +1 -1
- package/dist/types.d.ts +319 -22
- package/dist/types.d.ts.map +1 -1
- package/dist/vdt.d.ts +392 -12
- package/dist/vdt.d.ts.map +1 -1
- package/dist/vdt.js.map +1 -1
- package/package.json +1 -1
package/dist/vdt.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ColorPaletteEntry, DocumentMetadata, PostextResource, Resource, ResourceSafeArea, TableCellAlign, TableCellVerticalAlign, ResolvedPageConfig, ResolvedLayoutConfig, ResolvedBodyTextConfig, ResolvedHeadingsConfig, ResolvedTableStyleConfig, ResolvedNamedTableStyleConfig, TableRules, ResolvedCaptionStyleConfig, ResolvedDiagramStyleConfig, ResolvedVideoStyleConfig, ResolvedVideoPlayerOptions, VideoSource, ResolvedParagraphStyleConfig, ResolvedCalloutStyleConfig, ResolvedChipStyleConfig, ResolvedMarkStyleConfig, CalloutSpan, CalloutPlacement, ResolvedUnorderedListsConfig, ResolvedOrderedListsConfig, ResolvedMathConfig, ResolvedPdfGenerationConfig, ResolvedPrintConfig, ResolvedContrastConfig, ResolvedChecksConfig, ResolvedFolioConfig, ResolvedDesignSlot, ResolvedPartsConfig, ResolvedHeadingStyleConfig, ResolvedTocConfig, ResolvedIndexConfig, ResolvedFootnotesConfig, ResolvedCrossRefsConfig, ResolvedCitationsConfig, ResolvedCjkConfig, CjkRegion, PageRole, PartState, PostextConfig, FolioPaperConfig, ResolvedComicsConfig, ResolvedLineNumbersConfig, ResolvedCodeStyleConfig, PageTemplate, ResolvedLabelStyle, Dimension } from './types';
|
|
1
|
+
import type { ColorPaletteEntry, DocumentMetadata, PostextResource, Resource, ResourceSafeArea, TableCellAlign, TableCellVerticalAlign, ResolvedPageConfig, ResolvedLayoutConfig, ResolvedBodyTextConfig, ResolvedHeadingsConfig, ResolvedTableStyleConfig, ResolvedNamedTableStyleConfig, TableRules, ResolvedCaptionStyleConfig, ResolvedDiagramStyleConfig, ResolvedVideoStyleConfig, ResolvedVideoPlayerOptions, VideoSource, ResolvedParagraphStyleConfig, ResolvedCalloutStyleConfig, ResolvedChipStyleConfig, ResolvedMarkStyleConfig, CalloutSpan, CalloutPlacement, ResolvedUnorderedListsConfig, ResolvedOrderedListsConfig, ResolvedMathConfig, ResolvedPdfGenerationConfig, ResolvedPrintConfig, ResolvedContrastConfig, ResolvedChecksConfig, ResolvedFolioConfig, ResolvedDesignSlot, ResolvedPartsConfig, ResolvedHeadingStyleConfig, ResolvedTocConfig, ResolvedIndexConfig, ResolvedFootnotesConfig, ResolvedCrossRefsConfig, ResolvedCitationsConfig, ResolvedCjkConfig, CjkRegion, PageRole, PartState, PostextConfig, FolioPaperConfig, ResolvedComicsConfig, ResolvedLineNumbersConfig, ResolvedCodeStyleConfig, PageTemplate, ResolvedLabelStyle, Dimension, PageMargins } from './types';
|
|
2
2
|
import type { NumeralStyle } from './numbering';
|
|
3
3
|
import type { MathRender } from './math/types';
|
|
4
4
|
import type { StoryJump } from './composed/carryTypes';
|
|
@@ -125,6 +125,13 @@ export interface ResolvedConfig {
|
|
|
125
125
|
/** Label styles (`PostextConfig.labelStyles`, #853), resolved, when the
|
|
126
126
|
* config sets any. */
|
|
127
127
|
labelStyles?: ResolvedLabelStyle[];
|
|
128
|
+
/** The leaf composed pages are laid out on (`PostextConfig.composedViewerLeaf`,
|
|
129
|
+
* #1045), when a host sets one. */
|
|
130
|
+
composedViewerLeaf?: {
|
|
131
|
+
width: Dimension;
|
|
132
|
+
height: Dimension;
|
|
133
|
+
margins: Required<PageMargins>;
|
|
134
|
+
};
|
|
128
135
|
}
|
|
129
136
|
export type VDTBlockType = 'paragraph' | 'heading' | 'resource' | 'blockquote' | 'listItem' | 'footnoteRef' | 'mathDisplay' | 'callout'
|
|
130
137
|
/** A line of a code listing (#624): one line per source line, set as
|
|
@@ -198,6 +205,38 @@ export interface VDTChip {
|
|
|
198
205
|
* small capitals is still mapped; one cut by direction is not). */
|
|
199
206
|
sourceOffsets?: number[];
|
|
200
207
|
}
|
|
208
|
+
/**
|
|
209
|
+
* An inline symbol (`:icon[alt]{…}`, #1058) as painted: carried by a
|
|
210
|
+
* `'swatch'` segment (`swatch.icon`), whose `width` is its advance. The
|
|
211
|
+
* symbol's box is `widthPx` × `heightPx`, standing on the baseline,
|
|
212
|
+
* `insetPx` in from the segment's left edge (a legend's symbol centred in
|
|
213
|
+
* its column). A painter that does not know icons paints a swatch's empty
|
|
214
|
+
* square in its place.
|
|
215
|
+
*/
|
|
216
|
+
export interface VDTInlineIcon {
|
|
217
|
+
kind: 'resource' | 'glyph' | 'line';
|
|
218
|
+
/** What it stands for (may be empty). */
|
|
219
|
+
alt: string;
|
|
220
|
+
widthPx: number;
|
|
221
|
+
heightPx: number;
|
|
222
|
+
/** From the segment's left edge to the box's; absent = 0. */
|
|
223
|
+
insetPx?: number;
|
|
224
|
+
/** Resolved colour (hex): a glyph's or a line's ink, a picture's tint.
|
|
225
|
+
* Absent: the text's colour (a picture keeps its own). */
|
|
226
|
+
color?: string;
|
|
227
|
+
/** `kind: 'resource'`: the resource and its picture. A resource that is
|
|
228
|
+
* not known has no `fileId`: an empty outline is painted. */
|
|
229
|
+
resourceId?: string;
|
|
230
|
+
fileId?: string;
|
|
231
|
+
format?: string;
|
|
232
|
+
svg?: boolean;
|
|
233
|
+
/** `kind: 'glyph'`: the characters and the CSS font they are set in. */
|
|
234
|
+
glyph?: string;
|
|
235
|
+
fontString?: string;
|
|
236
|
+
/** `kind: 'line'`: the stroke's pattern and width. */
|
|
237
|
+
line?: 'solid' | 'dashed' | 'dotted';
|
|
238
|
+
strokePx?: number;
|
|
239
|
+
}
|
|
201
240
|
export interface VDTLineSegment {
|
|
202
241
|
kind: 'text' | 'space' | 'math' | 'swatch' | 'chip';
|
|
203
242
|
text: string;
|
|
@@ -227,6 +266,7 @@ export interface VDTLineSegment {
|
|
|
227
266
|
* on the baseline and outlined in the text colour. */
|
|
228
267
|
swatch?: {
|
|
229
268
|
color?: string;
|
|
269
|
+
icon?: VDTInlineIcon;
|
|
230
270
|
};
|
|
231
271
|
/** Present when `kind === 'chip'`: an inline chip (`:chip[…]`), painted
|
|
232
272
|
* as a box with its own text runs. The segment's `text` is the one-char
|
|
@@ -1371,6 +1411,18 @@ export interface VDTFigureLabel {
|
|
|
1371
1411
|
start: number;
|
|
1372
1412
|
end: number;
|
|
1373
1413
|
};
|
|
1414
|
+
/** The inline symbols of its text (`:icon[alt]{…}`, #1058): the index
|
|
1415
|
+
* of each one's placeholder in `text` and what it stands for, so the
|
|
1416
|
+
* outputs that read a label as words read `[alt]` in its place (none
|
|
1417
|
+
* when `alt` is empty). Absent when it has none. */
|
|
1418
|
+
icons?: {
|
|
1419
|
+
at: number;
|
|
1420
|
+
alt: string;
|
|
1421
|
+
}[];
|
|
1422
|
+
/** The label's `leader` attribute (#1057): `true` for `leader` (any
|
|
1423
|
+
* value but `none`), `false` for `leader="none"`. Absent: as its anchor
|
|
1424
|
+
* and style say. */
|
|
1425
|
+
leader?: boolean;
|
|
1374
1426
|
/** Where the label is painted: the upright box round its text (and
|
|
1375
1427
|
* background), in the coordinates of the block's own frame (a page's
|
|
1376
1428
|
* flow, or the frame of a composed page its block stands in), stamped
|
|
@@ -1411,12 +1463,23 @@ export interface VDTFigureLabelLayout {
|
|
|
1411
1463
|
color: string;
|
|
1412
1464
|
widthPx: number;
|
|
1413
1465
|
};
|
|
1414
|
-
/** A
|
|
1415
|
-
* padding
|
|
1466
|
+
/** A plate behind the text: `rect` is the box grown by the style's
|
|
1467
|
+
* padding, filled with `color` and outlined by `border` (#1058), its
|
|
1468
|
+
* corners rounded by `radiusPx`. A plate has a fill, a border or both. */
|
|
1416
1469
|
background?: {
|
|
1417
|
-
color
|
|
1470
|
+
color?: string;
|
|
1418
1471
|
rect: BoundingBox;
|
|
1472
|
+
border?: {
|
|
1473
|
+
color: string;
|
|
1474
|
+
widthPx: number;
|
|
1475
|
+
};
|
|
1476
|
+
radiusPx?: number;
|
|
1419
1477
|
};
|
|
1478
|
+
/** Set in a `kind: 'legend'` label style (#1058): each line is a row of
|
|
1479
|
+
* the key, the first symbol of each row hung in a column as wide as the
|
|
1480
|
+
* widest (`VDTInlineIcon.insetPx`). Read row by row (a list in the
|
|
1481
|
+
* tagged PDF). */
|
|
1482
|
+
legend?: true;
|
|
1420
1483
|
/** The scale the label was set at to fit its width (`minScale` at
|
|
1421
1484
|
* least); absent at 1. */
|
|
1422
1485
|
scale?: number;
|
|
@@ -1439,6 +1502,30 @@ export interface VDTFigureLabelLayout {
|
|
|
1439
1502
|
* paints the layout as {@link unmirrorLabelLayout} gives it back and
|
|
1440
1503
|
* the label reads down its columns as on any page. */
|
|
1441
1504
|
mirrored?: true;
|
|
1505
|
+
/** The line from the label's box to its anchor's point (#1057): drawn
|
|
1506
|
+
* with the labels, under them, by {@link figureLabelLeaderPath}. */
|
|
1507
|
+
leader?: VDTFigureLabelLeader;
|
|
1508
|
+
}
|
|
1509
|
+
/**
|
|
1510
|
+
* A figure label's leader (#1057, DESIGN §12.4). The point is in the frame
|
|
1511
|
+
* of the label's `x` / `y` (px from the top-left corner of the picture's
|
|
1512
|
+
* body); the line leaves the label's box (its plate, else its lines' box,
|
|
1513
|
+
* `gapPx` out) from the middle of the side that faces the point, so it
|
|
1514
|
+
* never crosses the label's own words, and is laid when painted, so a label
|
|
1515
|
+
* moved off a spread's spine or mirrored keeps its leader on the point.
|
|
1516
|
+
*/
|
|
1517
|
+
export interface VDTFigureLabelLeader {
|
|
1518
|
+
x: number;
|
|
1519
|
+
y: number;
|
|
1520
|
+
routing: 'straight' | 'elbow';
|
|
1521
|
+
stroke: VDTPathStroke;
|
|
1522
|
+
/** At the label's end. Absent: none. */
|
|
1523
|
+
startCap?: 'dot' | 'arrow';
|
|
1524
|
+
/** At the point. Absent: none. */
|
|
1525
|
+
endCap?: 'dot' | 'arrow';
|
|
1526
|
+
capSizePx: number;
|
|
1527
|
+
/** Room between the label's box and the line. */
|
|
1528
|
+
gapPx: number;
|
|
1442
1529
|
}
|
|
1443
1530
|
/**
|
|
1444
1531
|
* A paragraph's drop cap (#623, {@link VDTBlock.dropCap}), in page
|
|
@@ -2101,9 +2188,23 @@ export interface VDTTextDots {
|
|
|
2101
2188
|
/** Rounded-rectangle box style resolved to absolute px / hex values. */
|
|
2102
2189
|
export interface VDTDesignBoxStyle {
|
|
2103
2190
|
backgroundColor?: string;
|
|
2191
|
+
/** The border's colour; with {@link borderSides}, the colour of the
|
|
2192
|
+
* first side that has one (read by checks that want one colour). */
|
|
2104
2193
|
borderColor?: string;
|
|
2194
|
+
/** The border's width; with {@link borderSides}, the widest side. */
|
|
2105
2195
|
borderWidthPx: number;
|
|
2196
|
+
/** The corners' radius; with {@link borderRadiiPx}, the largest. */
|
|
2106
2197
|
borderRadiusPx: number;
|
|
2198
|
+
/** One radius per corner, top-left, top-right, bottom-right,
|
|
2199
|
+
* bottom-left (#1059). Absent: `borderRadiusPx` on every corner. */
|
|
2200
|
+
borderRadiiPx?: [number, number, number, number];
|
|
2201
|
+
/** The border per side (#1059), `null` for a side without one. Absent:
|
|
2202
|
+
* `borderColor` / `borderWidthPx` on every side. The painters read it
|
|
2203
|
+
* over those two. */
|
|
2204
|
+
borderSides?: Record<'top' | 'right' | 'bottom' | 'left', {
|
|
2205
|
+
color: string;
|
|
2206
|
+
widthPx: number;
|
|
2207
|
+
} | null>;
|
|
2107
2208
|
}
|
|
2108
2209
|
/** Text block rendered inside a design slot (header / footer / heading). */
|
|
2109
2210
|
/** Where a design block comes from in the configuration (#857): the
|
|
@@ -2274,7 +2375,87 @@ export interface VDTDesignImageBlock extends VDTDesignBlockOrigin {
|
|
|
2274
2375
|
* browser. Wins over `diagramStyle.singleInk`. */
|
|
2275
2376
|
tint?: string;
|
|
2276
2377
|
}
|
|
2277
|
-
|
|
2378
|
+
/** One command of a {@link VDTDesignPathBlock}'s outline, in absolute page
|
|
2379
|
+
* px (y down): move, line, cubic (`C`, two control points) and quadratic
|
|
2380
|
+
* (`Q`, one) Bézier curves, and close. */
|
|
2381
|
+
export type VDTPathCommand = {
|
|
2382
|
+
op: 'M' | 'L';
|
|
2383
|
+
x: number;
|
|
2384
|
+
y: number;
|
|
2385
|
+
} | {
|
|
2386
|
+
op: 'C';
|
|
2387
|
+
x1: number;
|
|
2388
|
+
y1: number;
|
|
2389
|
+
x2: number;
|
|
2390
|
+
y2: number;
|
|
2391
|
+
x: number;
|
|
2392
|
+
y: number;
|
|
2393
|
+
} | {
|
|
2394
|
+
op: 'Q';
|
|
2395
|
+
x1: number;
|
|
2396
|
+
y1: number;
|
|
2397
|
+
x: number;
|
|
2398
|
+
y: number;
|
|
2399
|
+
} | {
|
|
2400
|
+
op: 'Z';
|
|
2401
|
+
};
|
|
2402
|
+
/** How a {@link VDTDesignPathBlock}'s outline is stroked: colour (`#rrggbb`
|
|
2403
|
+
* or `#rrggbbaa`), width in px, dash pattern in px (on, off, …), line
|
|
2404
|
+
* caps and joins. Absent cap: `'butt'`; absent join: `'miter'`. */
|
|
2405
|
+
export interface VDTPathStroke {
|
|
2406
|
+
color: string;
|
|
2407
|
+
widthPx: number;
|
|
2408
|
+
dash?: number[];
|
|
2409
|
+
cap?: 'butt' | 'round' | 'square';
|
|
2410
|
+
join?: 'miter' | 'round' | 'bevel';
|
|
2411
|
+
}
|
|
2412
|
+
/** A mark at a point of a path (the end of a connector): a filled dot
|
|
2413
|
+
* `sizePx` across centred on the point, or a filled arrowhead whose tip is
|
|
2414
|
+
* the point, `sizePx` long, pointing along `angle` (see
|
|
2415
|
+
* `pathMarkerOutline`). */
|
|
2416
|
+
export interface VDTPathMarker {
|
|
2417
|
+
kind: 'dot' | 'arrow';
|
|
2418
|
+
x: number;
|
|
2419
|
+
y: number;
|
|
2420
|
+
/** Radians, the direction the line arrives in (arrows point along it). */
|
|
2421
|
+
angle: number;
|
|
2422
|
+
sizePx: number;
|
|
2423
|
+
color: string;
|
|
2424
|
+
}
|
|
2425
|
+
/** A vector shape a design draws (DESIGN §12.1, #1055): lines, curves and
|
|
2426
|
+
* closed outlines, filled and/or stroked, with dots or arrowheads at
|
|
2427
|
+
* points of it. Connectors, path elements and the shapes a rounded
|
|
2428
|
+
* rectangle cannot draw paint through it. Coordinates are absolute page
|
|
2429
|
+
* px like every other design block's; `bbox` holds the whole ink (stroke
|
|
2430
|
+
* and markers included), for hit tests and clips. Decoration, never
|
|
2431
|
+
* content: a tagged PDF marks it a Layout artifact, the HTML hides it from
|
|
2432
|
+
* assistive technology, the contrast check does not read it. */
|
|
2433
|
+
export interface VDTDesignPathBlock extends VDTDesignBlockOrigin {
|
|
2434
|
+
kind: 'path';
|
|
2435
|
+
bbox: BoundingBox;
|
|
2436
|
+
subpaths: VDTPathCommand[][];
|
|
2437
|
+
/** Fill colour; absent = no fill. */
|
|
2438
|
+
fill?: string;
|
|
2439
|
+
/** Absent: `'nonzero'`. */
|
|
2440
|
+
fillRule?: 'nonzero' | 'evenodd';
|
|
2441
|
+
/** Absent = no stroke. */
|
|
2442
|
+
stroke?: VDTPathStroke;
|
|
2443
|
+
markers?: VDTPathMarker[];
|
|
2444
|
+
/** The part of a box's shape the path paints (#1059: a card joined to
|
|
2445
|
+
* its tab): `'fill'` its background, which the contrast check reads as
|
|
2446
|
+
* the ground of the text over it; `'border'` its border, drawn as a
|
|
2447
|
+
* fill {@link borderWidthPx} wide, which part palettes recolour as the
|
|
2448
|
+
* box's border and preflight checks as a rule. Absent on other paths. */
|
|
2449
|
+
boxPart?: 'fill' | 'border';
|
|
2450
|
+
/** The widest side of a `boxPart: 'border'` path. */
|
|
2451
|
+
borderWidthPx?: number;
|
|
2452
|
+
/** A connector painted over the frames (#1076, `DesignConnectorElement.over`):
|
|
2453
|
+
* the block stays in its decoration slot, but the backends paint it
|
|
2454
|
+
* after every frame of the page (`composedPaintOrder`'s `'over'` item),
|
|
2455
|
+
* not with the slot's other blocks. Absent: painted with the slot. */
|
|
2456
|
+
over?: true;
|
|
2457
|
+
}
|
|
2458
|
+
export type VDTDesignBlock = VDTDesignTextBlock | VDTDesignRuleBlock | VDTDesignBoxBlock | VDTDesignImageBlock | VDTDesignPathBlock;
|
|
2278
2459
|
export interface VDTDesignSlot {
|
|
2279
2460
|
bbox: BoundingBox;
|
|
2280
2461
|
blocks: VDTDesignBlock[];
|
|
@@ -2446,8 +2627,11 @@ export interface VDTComicBalloon {
|
|
|
2446
2627
|
/** What happened to a frame while its page was composed (DESIGN §5.5),
|
|
2447
2628
|
* against the box its template declares (`VDTFrame.declaredRect`):
|
|
2448
2629
|
* `grew` / `resized` (smaller) and `moved` from groups and anchors (#856),
|
|
2449
|
-
* `overflow` (#855); the reflow ladder (#858) adds the rest.
|
|
2450
|
-
|
|
2630
|
+
* `overflow` (#855); the reflow ladder (#858) adds the rest.
|
|
2631
|
+
* `connectorDropped` (#1056, information): a connector of the decoration
|
|
2632
|
+
* (`cause`, its id) left out its end on `frame`, a box the page does not
|
|
2633
|
+
* show (collapsed, empty and optional, or missing). */
|
|
2634
|
+
export type ReflowEventKind = 'grew' | 'moved' | 'resized' | 'imageScaled' | 'textScaled' | 'continued' | 'overflow' | 'covered' | 'outside' | 'connectorDropped';
|
|
2451
2635
|
export interface ReflowEvent {
|
|
2452
2636
|
/** The frame's name in its template. */
|
|
2453
2637
|
frame: string;
|
|
@@ -2473,6 +2657,13 @@ export interface ReflowEvent {
|
|
|
2473
2657
|
* position in the book. `toPage` and `toFrame` are there once the host
|
|
2474
2658
|
* has both chapters. */
|
|
2475
2659
|
toChapter?: number;
|
|
2660
|
+
/** `covered` (#1053): how much of the frame's ink lies under `cause`, the
|
|
2661
|
+
* frame painted over it, in mm². */
|
|
2662
|
+
areaMm2?: number;
|
|
2663
|
+
/** `outside` (#1053): what the frame runs past, `toMm` being by how much
|
|
2664
|
+
* (its largest side): the trim, the bleed, or the frame or group it is
|
|
2665
|
+
* anchored inside (`'#name'`). */
|
|
2666
|
+
past?: 'trim' | 'bleed' | `#${string}`;
|
|
2476
2667
|
}
|
|
2477
2668
|
/** One frame of a composed page, in sheet coordinates. Its box and its
|
|
2478
2669
|
* content are ordinary callout blocks in `page.floats` (and
|
|
@@ -2487,8 +2678,15 @@ export interface VDTFrame {
|
|
|
2487
2678
|
* the page before is named by the frame of the fence's own page that
|
|
2488
2679
|
* first sent it on (`cp0:dinero~1`). */
|
|
2489
2680
|
id: string;
|
|
2490
|
-
/** The frame's name in its template (the slot it receives)
|
|
2681
|
+
/** The frame's name in its template (the slot it receives); for an
|
|
2682
|
+
* instance of a frame a grid repeats (#1061), `<frame>[n]`. */
|
|
2491
2683
|
name: string;
|
|
2684
|
+
/** An instance of a frame a grid repeats (#1061): the template's frame
|
|
2685
|
+
* (`configPath` is its entry) and the item, 1-based. */
|
|
2686
|
+
repeat?: {
|
|
2687
|
+
frame: string;
|
|
2688
|
+
item: number;
|
|
2689
|
+
};
|
|
2492
2690
|
/** The frame's box, label tab included, before any turn. */
|
|
2493
2691
|
rect: {
|
|
2494
2692
|
x: number;
|
|
@@ -2657,12 +2855,30 @@ export interface VDTComposedPage {
|
|
|
2657
2855
|
/** In template order. */
|
|
2658
2856
|
frames: VDTFrame[];
|
|
2659
2857
|
/** The template's decoration, laid with the frames' final boxes
|
|
2660
|
-
* (`buildHeadersAndFooters`); painted at layer 0
|
|
2858
|
+
* (`buildHeadersAndFooters`); painted at layer 0, its path blocks marked
|
|
2859
|
+
* `over` after every frame (#1076). */
|
|
2661
2860
|
decoration?: VDTDesignSlot;
|
|
2662
2861
|
/** What the layout changed (DESIGN §5.5). */
|
|
2663
2862
|
log: ReflowEvent[];
|
|
2664
2863
|
/** JSON pointer of the template (`/pageTemplates/3`). */
|
|
2665
2864
|
configPath: string;
|
|
2865
|
+
/** The modules the page lays in its modules group (#1062), in order:
|
|
2866
|
+
* the instance name its frames are scoped by (`<name>.<frame>`), the
|
|
2867
|
+
* module template and its pointer, and the module's box (page px, in
|
|
2868
|
+
* the frame the frames are in) when it was laid here (one that went on
|
|
2869
|
+
* whole has none). `resolvePageTemplate(config, template, { modules })`
|
|
2870
|
+
* gives the template the page was laid with. */
|
|
2871
|
+
modules?: {
|
|
2872
|
+
name: string;
|
|
2873
|
+
template: string;
|
|
2874
|
+
configPath: string;
|
|
2875
|
+
rect?: {
|
|
2876
|
+
x: number;
|
|
2877
|
+
y: number;
|
|
2878
|
+
width: number;
|
|
2879
|
+
height: number;
|
|
2880
|
+
};
|
|
2881
|
+
}[];
|
|
2666
2882
|
/** The page fence, opening line to closing fence (absolute offsets). */
|
|
2667
2883
|
sourceStart: number;
|
|
2668
2884
|
sourceEnd: number;
|
|
@@ -2903,8 +3119,11 @@ export interface ConfigWarning {
|
|
|
2903
3119
|
* lettering's `writingMode`, `textTransform`, `dropFinalStop` and
|
|
2904
3120
|
* `joinSameSpeaker`, a balloon style's `shape`, `tail`, `target`,
|
|
2905
3121
|
* `position`, `align` and `textTransform` — the value it resolved to:
|
|
2906
|
-
* the default, or that of the style it is laid over
|
|
2907
|
-
*
|
|
3122
|
+
* the default, or that of the style it is laid over; a box style's
|
|
3123
|
+
* `label.icon.kind`, `placement` and `scale`, #1054 — the kind, `beside`,
|
|
3124
|
+
* `1`), and `suggestion` the word it is closest to, when one is close.
|
|
3125
|
+
* A key a box style's `label.icon` does not have is an
|
|
3126
|
+
* `unknownConfigKey` too.
|
|
2908
3127
|
* `unknownNumerals`: a `numerals` value that is not `'auto'`,
|
|
2909
3128
|
* `'latn'`, `'arab'` or `'arabext'`; the digits follow the document
|
|
2910
3129
|
* language, and `used` is the digit system that gives.
|
|
@@ -3039,6 +3258,53 @@ export type FrameOverflowProposal = {
|
|
|
3039
3258
|
sourceStart?: number;
|
|
3040
3259
|
sourceEnd?: number;
|
|
3041
3260
|
};
|
|
3261
|
+
/** A change that would uncover a frame's ink (#1053, `frameCovered`):
|
|
3262
|
+
* data, as {@link FrameOverflowProposal}. `layer` paints the covering
|
|
3263
|
+
* frame (`coveredBy`) under the covered one; `exclude` makes the covering
|
|
3264
|
+
* frame push the covered frame's text round it; `move` is the smallest
|
|
3265
|
+
* shift of the covering frame along one axis that clears what it covers,
|
|
3266
|
+
* in mm (data only: no config path says where the frame is). */
|
|
3267
|
+
export type FrameCoverProposal = {
|
|
3268
|
+
kind: 'layer';
|
|
3269
|
+
path: string;
|
|
3270
|
+
value: number;
|
|
3271
|
+
} | {
|
|
3272
|
+
kind: 'exclude';
|
|
3273
|
+
path: string;
|
|
3274
|
+
value: 'push';
|
|
3275
|
+
} | {
|
|
3276
|
+
kind: 'move';
|
|
3277
|
+
frame: string;
|
|
3278
|
+
dxMm: number;
|
|
3279
|
+
dyMm: number;
|
|
3280
|
+
};
|
|
3281
|
+
/** A change that would bring a frame back inside what it runs past
|
|
3282
|
+
* (#1053, `frameOutsideArea`): `maxHeight` of the frame itself (the room
|
|
3283
|
+
* it has there, in whole millimetres; not for a frame its placement holds
|
|
3284
|
+
* by its foot), `minHeight` of the frame it is anchored inside (`frame`),
|
|
3285
|
+
* for a frame of text held to a smaller height `overflow.continueIn:
|
|
3286
|
+
* 'next-page'`, so what no longer fits goes on instead of shrinking, and
|
|
3287
|
+
* `move`, the shift that brings it in when it runs past one side of an
|
|
3288
|
+
* axis (data only). */
|
|
3289
|
+
export type FrameOutsideProposal = {
|
|
3290
|
+
kind: 'maxHeight';
|
|
3291
|
+
path: string;
|
|
3292
|
+
value: Dimension;
|
|
3293
|
+
} | {
|
|
3294
|
+
kind: 'minHeight';
|
|
3295
|
+
path: string;
|
|
3296
|
+
value: Dimension;
|
|
3297
|
+
frame: string;
|
|
3298
|
+
} | {
|
|
3299
|
+
kind: 'continueNextPage';
|
|
3300
|
+
path: string;
|
|
3301
|
+
value: 'next-page';
|
|
3302
|
+
} | {
|
|
3303
|
+
kind: 'move';
|
|
3304
|
+
frame: string;
|
|
3305
|
+
dxMm: number;
|
|
3306
|
+
dyMm: number;
|
|
3307
|
+
};
|
|
3042
3308
|
/** The kinds of {@link ConfigWarning} a page template gives (#853). */
|
|
3043
3309
|
export type PageTemplateWarningKind = 'templateDuplicate' | 'templateExtendsCycle' | 'templateExtendsUnknown' | 'frameDuplicate' | 'frameStyleUnknown' | 'frameAnchorUnknown' | 'frameMinMax' | 'groupFrameUnknown' | 'groupFrameTwice' | 'frameChainLoop' | 'overflowTargetUnknown' | 'labelStyleUnknown';
|
|
3044
3310
|
/** Where a content warning points: the source range of the construct in
|
|
@@ -3159,6 +3425,62 @@ export type ContentWarning = ContentWarningBase & (
|
|
|
3159
3425
|
frame: string;
|
|
3160
3426
|
fenceIndex: number;
|
|
3161
3427
|
}
|
|
3428
|
+
/** A grid that repeats a frame set (#1061) holds `max` items, and the
|
|
3429
|
+
* page gives it more: item `item` (and every one after it) goes to the
|
|
3430
|
+
* flow frame (`flowFrame`, when the template has one), or after the
|
|
3431
|
+
* page. Points at the item's `slot="…"`. */
|
|
3432
|
+
| {
|
|
3433
|
+
kind: 'repeatOverflow';
|
|
3434
|
+
template: string;
|
|
3435
|
+
group: string;
|
|
3436
|
+
frame: string;
|
|
3437
|
+
item: number;
|
|
3438
|
+
max: number;
|
|
3439
|
+
flowFrame?: string;
|
|
3440
|
+
fenceIndex: number;
|
|
3441
|
+
}
|
|
3442
|
+
/** A `:::module{template="…"}` of a composed page (#1062) that the page
|
|
3443
|
+
* does not lay: `module` names no template (`'unknown'`), a template
|
|
3444
|
+
* whose `role` is not `'module'` (`'notModule'`), or the page's template
|
|
3445
|
+
* has no modules group (`'noGroup'`). Its content goes to the flow
|
|
3446
|
+
* frame. Points at its `template="…"`. */
|
|
3447
|
+
| {
|
|
3448
|
+
kind: 'moduleUnknown';
|
|
3449
|
+
template: string;
|
|
3450
|
+
module: string;
|
|
3451
|
+
name: string;
|
|
3452
|
+
reason: 'unknown' | 'notModule' | 'noGroup';
|
|
3453
|
+
fenceIndex: number;
|
|
3454
|
+
}
|
|
3455
|
+
/** A page fence names a module template (#1062): a module is laid in a
|
|
3456
|
+
* page's modules group, never as a page. The fence's content is set in
|
|
3457
|
+
* the flow. Points at its `template="…"`. */
|
|
3458
|
+
| {
|
|
3459
|
+
kind: 'moduleAsPage';
|
|
3460
|
+
template: string;
|
|
3461
|
+
fenceIndex: number;
|
|
3462
|
+
}
|
|
3463
|
+
/** A `:::module` inside another module (#1062): not supported; its
|
|
3464
|
+
* blocks are the outer module's. Points at its `template="…"`. */
|
|
3465
|
+
| {
|
|
3466
|
+
kind: 'moduleNested';
|
|
3467
|
+
template: string;
|
|
3468
|
+
module: string;
|
|
3469
|
+
fenceIndex: number;
|
|
3470
|
+
}
|
|
3471
|
+
/** A module's `name="…"` (#1062) that another module of the page took
|
|
3472
|
+
* (`'taken'`), or that holds a space, `.`, `#`, `[` or `]`
|
|
3473
|
+
* (`'invalid'`): the module is named `used` (`<template>[n]`). Its
|
|
3474
|
+
* slots are addressed under that name. */
|
|
3475
|
+
| {
|
|
3476
|
+
kind: 'moduleNameRejected';
|
|
3477
|
+
template: string;
|
|
3478
|
+
module: string;
|
|
3479
|
+
name: string;
|
|
3480
|
+
used: string;
|
|
3481
|
+
reason: 'taken' | 'invalid';
|
|
3482
|
+
fenceIndex: number;
|
|
3483
|
+
}
|
|
3162
3484
|
/** A three-colon `:::page` carries `template=`: a composed page needs
|
|
3163
3485
|
* four colons (`::::page{template=…}` … `::::`). It is read as a comic
|
|
3164
3486
|
* page, as before. */
|
|
@@ -3192,6 +3514,58 @@ export type ContentWarning = ContentWarningBase & (
|
|
|
3192
3514
|
* out from the shortfall (each tried on the page where it can be). */
|
|
3193
3515
|
proposals: FrameOverflowProposal[];
|
|
3194
3516
|
}
|
|
3517
|
+
/** Ink of a frame lies under another frame painted over it (#1053): a
|
|
3518
|
+
* later `layer`, or the same layer later in template order. A frame
|
|
3519
|
+
* covers where it is opaque: its fill (the callout style's background,
|
|
3520
|
+
* `look.background`, a label tab, a stripe), its pictures and its text;
|
|
3521
|
+
* a frame with no fill covers nothing between its pictures and lines. What
|
|
3522
|
+
* is covered: the frame's lines (their boxes), its tab and title, its
|
|
3523
|
+
* pictures (by a fill or a picture: words over a picture hide a hairline
|
|
3524
|
+
* of it). `text` is the first words covered (40 characters), `picture`
|
|
3525
|
+
* the resource id of the first picture covered, `overlapMm2` the area
|
|
3526
|
+
* covered. One warning per pair of frames; `overlap: 'allow'` on either
|
|
3527
|
+
* frame leaves the pair out. The source range is the covered frame's
|
|
3528
|
+
* content. */
|
|
3529
|
+
| {
|
|
3530
|
+
kind: 'frameCovered';
|
|
3531
|
+
template: string;
|
|
3532
|
+
frame: string;
|
|
3533
|
+
coveredBy: string;
|
|
3534
|
+
fenceIndex: number;
|
|
3535
|
+
configPath: string;
|
|
3536
|
+
/** The covering frame's config path. */
|
|
3537
|
+
coveredByPath: string;
|
|
3538
|
+
overlapMm2: number;
|
|
3539
|
+
text?: string;
|
|
3540
|
+
picture?: string;
|
|
3541
|
+
locale?: string;
|
|
3542
|
+
proposals: FrameCoverProposal[];
|
|
3543
|
+
}
|
|
3544
|
+
/** A frame's ink runs past what holds it (#1053): its text past the trim,
|
|
3545
|
+
* its fill or pictures past the bleed (`past: 'trim' | 'bleed'`), or
|
|
3546
|
+
* any of it past the frame or group it is anchored inside (a nine-point
|
|
3547
|
+
* anchor on `'#name'` whose point lies in that box: `past: 'frame' |
|
|
3548
|
+
* 'group'`, `target` its name). What runs past is cut at the trim, and
|
|
3549
|
+
* reads as escaping its card. `excessMm` is the largest overrun, `sides`
|
|
3550
|
+
* each side's. `overlap: 'allow'` on the frame leaves it out. */
|
|
3551
|
+
| {
|
|
3552
|
+
kind: 'frameOutsideArea';
|
|
3553
|
+
template: string;
|
|
3554
|
+
frame: string;
|
|
3555
|
+
fenceIndex: number;
|
|
3556
|
+
configPath: string;
|
|
3557
|
+
past: 'trim' | 'bleed' | 'frame' | 'group';
|
|
3558
|
+
target?: string;
|
|
3559
|
+
excessMm: number;
|
|
3560
|
+
sides: {
|
|
3561
|
+
top?: number;
|
|
3562
|
+
right?: number;
|
|
3563
|
+
bottom?: number;
|
|
3564
|
+
left?: number;
|
|
3565
|
+
};
|
|
3566
|
+
locale?: string;
|
|
3567
|
+
proposals: FrameOutsideProposal[];
|
|
3568
|
+
}
|
|
3195
3569
|
/** A frame's content went on to other pages (#859) as many times as a
|
|
3196
3570
|
* composed page may add (`pages`, 16) and still does not fit: what is
|
|
3197
3571
|
* left is cut at the foot of the frame on the last page added
|
|
@@ -3238,7 +3612,11 @@ export type ContentWarning = ContentWarningBase & (
|
|
|
3238
3612
|
/** A `::label[…]{at="…"}` of a `:::figure` (#860) names an anchor its
|
|
3239
3613
|
* resource does not have: the label is not drawn (the reflowable
|
|
3240
3614
|
* output still lists it). `known` lists the resource's anchor ids. The
|
|
3241
|
-
* source range is the label's text.
|
|
3615
|
+
* source range is the label's text. With `connector` (#1057), a
|
|
3616
|
+
* connector of a composed page's decoration ends at that anchor of the
|
|
3617
|
+
* picture of `frame`, which lacks it: that end is left out; there is no
|
|
3618
|
+
* source range, `resourceId` is the frame's first picture (empty when
|
|
3619
|
+
* it holds none). */
|
|
3242
3620
|
| {
|
|
3243
3621
|
kind: 'labelAnchorUnknown';
|
|
3244
3622
|
resourceId: string;
|
|
@@ -3246,6 +3624,8 @@ export type ContentWarning = ContentWarningBase & (
|
|
|
3246
3624
|
known: string[];
|
|
3247
3625
|
locale?: string;
|
|
3248
3626
|
labelId?: string;
|
|
3627
|
+
connector?: string;
|
|
3628
|
+
frame?: string;
|
|
3249
3629
|
}
|
|
3250
3630
|
/** An anchor of a figure's resource names a label `style` but no
|
|
3251
3631
|
* `::label` of the figure stands at it in this locale (#860): a note,
|