@tiqian/engine 0.0.0-stage.1 → 0.1.0-alpha.9
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/org/tiqian/clreq/AdjustmentStylePolicy.d.ts +11 -0
- package/dist/org/tiqian/clreq/AdjustmentStylePolicy.js +21 -0
- package/dist/org/tiqian/clreq/AutoSpaceMode.d.ts +16 -0
- package/dist/org/tiqian/clreq/AutoSpaceMode.js +17 -0
- package/dist/org/tiqian/clreq/AutoSpacePolicy.d.ts +13 -0
- package/dist/org/tiqian/clreq/AutoSpacePolicy.js +23 -0
- package/dist/org/tiqian/clreq/BopomofoParser.d.ts +10 -0
- package/dist/org/tiqian/clreq/BopomofoParser.js +46 -0
- package/dist/org/tiqian/clreq/BopomofoReading.d.ts +12 -0
- package/dist/org/tiqian/clreq/BopomofoReading.js +86 -0
- package/dist/org/tiqian/clreq/BopomofoTone.d.ts +28 -0
- package/dist/org/tiqian/clreq/BopomofoTone.js +26 -0
- package/dist/org/tiqian/clreq/CjkPunctuationGlyphPolicy.d.ts +16 -0
- package/dist/org/tiqian/clreq/CjkPunctuationGlyphPolicy.js +17 -0
- package/dist/org/tiqian/clreq/CjkPunctuationGlyphSubstitution.d.ts +8 -0
- package/dist/org/tiqian/clreq/CjkPunctuationGlyphSubstitution.js +25 -0
- package/dist/org/tiqian/clreq/ClreqProfile.d.ts +27 -0
- package/dist/org/tiqian/clreq/ClreqProfile.js +58 -0
- package/dist/org/tiqian/clreq/ClreqProfileResolver.d.ts +10 -0
- package/dist/org/tiqian/clreq/ClreqProfileResolver.js +13 -0
- package/dist/org/tiqian/clreq/ClreqPunctuationAdvancePolicy.d.ts +7 -0
- package/dist/org/tiqian/clreq/ClreqPunctuationAdvancePolicy.js +40 -0
- package/dist/org/tiqian/clreq/ClreqPunctuationGlyphSubstitutor.d.ts +19 -0
- package/dist/org/tiqian/clreq/ClreqPunctuationGlyphSubstitutor.js +93 -0
- package/dist/org/tiqian/clreq/ClreqPunctuationPolicies.d.ts +26 -0
- package/dist/org/tiqian/clreq/ClreqPunctuationPolicies.js +137 -0
- package/dist/org/tiqian/clreq/ClreqRegion.d.ts +20 -0
- package/dist/org/tiqian/clreq/ClreqRegion.js +20 -0
- package/dist/org/tiqian/clreq/ClreqStrictness.d.ts +16 -0
- package/dist/org/tiqian/clreq/ClreqStrictness.js +17 -0
- package/dist/org/tiqian/clreq/GlueSide.d.ts +16 -0
- package/dist/org/tiqian/clreq/GlueSide.js +17 -0
- package/dist/org/tiqian/clreq/HangingPunctuationStyle.d.ts +12 -0
- package/dist/org/tiqian/clreq/HangingPunctuationStyle.js +14 -0
- package/dist/org/tiqian/clreq/InteriorPunctuationStyle.d.ts +12 -0
- package/dist/org/tiqian/clreq/InteriorPunctuationStyle.js +14 -0
- package/dist/org/tiqian/clreq/KinsokuLevel.d.ts +20 -0
- package/dist/org/tiqian/clreq/KinsokuLevel.js +20 -0
- package/dist/org/tiqian/clreq/KinsokuMode.d.ts +14 -0
- package/dist/org/tiqian/clreq/KinsokuMode.js +2 -0
- package/dist/org/tiqian/clreq/KinsokuModes.d.ts +11 -0
- package/dist/org/tiqian/clreq/KinsokuModes.js +71 -0
- package/dist/org/tiqian/clreq/LineAdjustmentStrategy.d.ts +16 -0
- package/dist/org/tiqian/clreq/LineAdjustmentStrategy.js +17 -0
- package/dist/org/tiqian/clreq/LineEndPunctuationStyle.d.ts +12 -0
- package/dist/org/tiqian/clreq/LineEndPunctuationStyle.js +14 -0
- package/dist/org/tiqian/clreq/NumberSymbolCohesion.d.ts +8 -0
- package/dist/org/tiqian/clreq/NumberSymbolCohesion.js +56 -0
- package/dist/org/tiqian/clreq/PunctuationClass.d.ts +44 -0
- package/dist/org/tiqian/clreq/PunctuationClass.js +38 -0
- package/dist/org/tiqian/clreq/PunctuationGluePlacement.d.ts +12 -0
- package/dist/org/tiqian/clreq/PunctuationGluePlacement.js +14 -0
- package/dist/org/tiqian/clreq/PunctuationGluePlacements.d.ts +9 -0
- package/dist/org/tiqian/clreq/PunctuationGluePlacements.js +49 -0
- package/dist/org/tiqian/clreq/PunctuationPolicy.d.ts +10 -0
- package/dist/org/tiqian/clreq/PunctuationPolicy.js +18 -0
- package/dist/org/tiqian/clreq/PunctuationWidthPolicy.d.ts +8 -0
- package/dist/org/tiqian/clreq/PunctuationWidthPolicy.js +16 -0
- package/dist/org/tiqian/clreq/ResolvedKinsoku.d.ts +12 -0
- package/dist/org/tiqian/clreq/ResolvedKinsoku.js +43 -0
- package/dist/org/tiqian/core/AccurateSum.d.ts +3 -0
- package/dist/org/tiqian/core/AccurateSum.js +9 -0
- package/dist/org/tiqian/core/AutoSpaceDecisionInfo.d.ts +13 -0
- package/dist/org/tiqian/core/AutoSpaceDecisionInfo.js +24 -0
- package/dist/org/tiqian/core/BopomofoDecisionInfo.d.ts +13 -0
- package/dist/org/tiqian/core/BopomofoDecisionInfo.js +32 -0
- package/dist/org/tiqian/core/BopomofoGlyphPlacement.d.ts +16 -0
- package/dist/org/tiqian/core/BopomofoGlyphPlacement.js +33 -0
- package/dist/org/tiqian/core/BopomofoGlyphRole.d.ts +16 -0
- package/dist/org/tiqian/core/BopomofoGlyphRole.js +17 -0
- package/dist/org/tiqian/core/BreakOpportunityDecisionInfo.d.ts +11 -0
- package/dist/org/tiqian/core/BreakOpportunityDecisionInfo.js +52 -0
- package/dist/org/tiqian/core/BuiltInLayoutProfiles.d.ts +4 -0
- package/dist/org/tiqian/core/BuiltInLayoutProfiles.js +5 -0
- package/dist/org/tiqian/core/Cluster.d.ts +13 -0
- package/dist/org/tiqian/core/Cluster.js +24 -0
- package/dist/org/tiqian/core/ClusterGeometryDecisionInfo.d.ts +21 -0
- package/dist/org/tiqian/core/ClusterGeometryDecisionInfo.js +40 -0
- package/dist/org/tiqian/core/ColorSpan.d.ts +8 -0
- package/dist/org/tiqian/core/ColorSpan.js +25 -0
- package/dist/org/tiqian/core/ContextualKinsokuDecisionInfo.d.ts +12 -0
- package/dist/org/tiqian/core/ContextualKinsokuDecisionInfo.js +47 -0
- package/dist/org/tiqian/core/DecorationDecisionInfo.d.ts +13 -0
- package/dist/org/tiqian/core/DecorationDecisionInfo.js +24 -0
- package/dist/org/tiqian/core/DecorationKind.d.ts +20 -0
- package/dist/org/tiqian/core/DecorationKind.js +20 -0
- package/dist/org/tiqian/core/DecorationSegmentInfo.d.ts +15 -0
- package/dist/org/tiqian/core/DecorationSegmentInfo.js +28 -0
- package/dist/org/tiqian/core/DecorationSpan.d.ts +10 -0
- package/dist/org/tiqian/core/DecorationSpan.js +36 -0
- package/dist/org/tiqian/core/EastAsianSpacingData.d.ts +4 -0
- package/dist/org/tiqian/core/EastAsianSpacingData.js +399 -0
- package/dist/org/tiqian/core/EastAsianSpacingEdges.d.ts +8 -0
- package/dist/org/tiqian/core/EastAsianSpacingEdges.js +14 -0
- package/dist/org/tiqian/core/EastAsianSpacingValue.d.ts +20 -0
- package/dist/org/tiqian/core/EastAsianSpacingValue.js +20 -0
- package/dist/org/tiqian/core/EmergencyTrackingEligibilityDecisionInfo.d.ts +9 -0
- package/dist/org/tiqian/core/EmergencyTrackingEligibilityDecisionInfo.js +29 -0
- package/dist/org/tiqian/core/FirstLineIndentDecisionInfo.d.ts +8 -0
- package/dist/org/tiqian/core/FirstLineIndentDecisionInfo.js +16 -0
- package/dist/org/tiqian/core/FittedLinePatternGeometry.d.ts +2 -0
- package/dist/org/tiqian/core/FittedLinePatternGeometry.js +84 -0
- package/dist/org/tiqian/core/FontDecisionInfo.d.ts +13 -0
- package/dist/org/tiqian/core/FontDecisionInfo.js +45 -0
- package/dist/org/tiqian/core/Glyph.d.ts +15 -0
- package/dist/org/tiqian/core/Glyph.js +30 -0
- package/dist/org/tiqian/core/GlyphRun.d.ts +11 -0
- package/dist/org/tiqian/core/GlyphRun.js +28 -0
- package/dist/org/tiqian/core/Ic.d.ts +7 -0
- package/dist/org/tiqian/core/Ic.js +17 -0
- package/dist/org/tiqian/core/IllegalStateException.d.ts +4 -0
- package/dist/org/tiqian/core/IllegalStateException.js +8 -0
- package/dist/org/tiqian/core/InlineAttachment.d.ts +12 -0
- package/dist/org/tiqian/core/InlineAttachment.js +14 -0
- package/dist/org/tiqian/core/InlineBoxDecisionInfo.d.ts +12 -0
- package/dist/org/tiqian/core/InlineBoxDecisionInfo.js +22 -0
- package/dist/org/tiqian/core/InlineBoxOuterSpacing.d.ts +12 -0
- package/dist/org/tiqian/core/InlineBoxOuterSpacing.js +14 -0
- package/dist/org/tiqian/core/InlineBoxSpan.d.ts +10 -0
- package/dist/org/tiqian/core/InlineBoxSpan.js +17 -0
- package/dist/org/tiqian/core/InlineObjectBoundaryAdjustment.d.ts +12 -0
- package/dist/org/tiqian/core/InlineObjectBoundaryAdjustment.js +31 -0
- package/dist/org/tiqian/core/InlineObjectDecisionInfo.d.ts +28 -0
- package/dist/org/tiqian/core/InlineObjectDecisionInfo.js +54 -0
- package/dist/org/tiqian/core/InlineObjectLineHeightDecisionInfo.d.ts +16 -0
- package/dist/org/tiqian/core/InlineObjectLineHeightDecisionInfo.js +57 -0
- package/dist/org/tiqian/core/InlineObjectPreferredStretch.d.ts +11 -0
- package/dist/org/tiqian/core/InlineObjectPreferredStretch.js +30 -0
- package/dist/org/tiqian/core/InlineObjectPreferredStretchKind.d.ts +16 -0
- package/dist/org/tiqian/core/InlineObjectPreferredStretchKind.js +17 -0
- package/dist/org/tiqian/core/InlineObjectPunctuationAttachmentDecisionInfo.d.ts +12 -0
- package/dist/org/tiqian/core/InlineObjectPunctuationAttachmentDecisionInfo.js +22 -0
- package/dist/org/tiqian/core/InlineObjectSpan.d.ts +13 -0
- package/dist/org/tiqian/core/InlineObjectSpan.js +22 -0
- package/dist/org/tiqian/core/IntRange.d.ts +12 -0
- package/dist/org/tiqian/core/IntRange.js +30 -0
- package/dist/org/tiqian/core/IntRangeFns.d.ts +2 -0
- package/dist/org/tiqian/core/IntRangeFns.js +4 -0
- package/dist/org/tiqian/core/JustificationAllocationInfo.d.ts +10 -0
- package/dist/org/tiqian/core/JustificationAllocationInfo.js +18 -0
- package/dist/org/tiqian/core/JustificationDecisionInfo.d.ts +10 -0
- package/dist/org/tiqian/core/JustificationDecisionInfo.js +21 -0
- package/dist/org/tiqian/core/KinsokuDecisionInfo.d.ts +8 -0
- package/dist/org/tiqian/core/KinsokuDecisionInfo.js +16 -0
- package/dist/org/tiqian/core/LastLineAlignment.d.ts +16 -0
- package/dist/org/tiqian/core/LastLineAlignment.js +17 -0
- package/dist/org/tiqian/core/LayoutConstraints.d.ts +7 -0
- package/dist/org/tiqian/core/LayoutConstraints.js +24 -0
- package/dist/org/tiqian/core/LayoutDebugInfo.d.ts +70 -0
- package/dist/org/tiqian/core/LayoutDebugInfo.js +205 -0
- package/dist/org/tiqian/core/LayoutInput.d.ts +22 -0
- package/dist/org/tiqian/core/LayoutInput.js +56 -0
- package/dist/org/tiqian/core/LayoutPaintBounds.d.ts +18 -0
- package/dist/org/tiqian/core/LayoutPaintBounds.js +131 -0
- package/dist/org/tiqian/core/LayoutProfileId.d.ts +6 -0
- package/dist/org/tiqian/core/LayoutProfileId.js +17 -0
- package/dist/org/tiqian/core/LayoutQueries.d.ts +121 -0
- package/dist/org/tiqian/core/LayoutQueries.js +1297 -0
- package/dist/org/tiqian/core/LayoutQueryFns.d.ts +27 -0
- package/dist/org/tiqian/core/LayoutQueryFns.js +65 -0
- package/dist/org/tiqian/core/LayoutResult.d.ts +16 -0
- package/dist/org/tiqian/core/LayoutResult.js +36 -0
- package/dist/org/tiqian/core/LayoutResultFns.d.ts +3 -0
- package/dist/org/tiqian/core/LayoutResultFns.js +5 -0
- package/dist/org/tiqian/core/LayoutResultLineFns.d.ts +4 -0
- package/dist/org/tiqian/core/LayoutResultLineFns.js +5 -0
- package/dist/org/tiqian/core/LayoutResultReplayIndex.d.ts +37 -0
- package/dist/org/tiqian/core/LayoutResultReplayIndex.js +379 -0
- package/dist/org/tiqian/core/LineBox.d.ts +23 -0
- package/dist/org/tiqian/core/LineBox.js +43 -0
- package/dist/org/tiqian/core/LineBreakPolicy.d.ts +8 -0
- package/dist/org/tiqian/core/LineBreakPolicy.js +11 -0
- package/dist/org/tiqian/core/LineBreakSpan.d.ts +10 -0
- package/dist/org/tiqian/core/LineBreakSpan.js +30 -0
- package/dist/org/tiqian/core/LineDebugInfo.d.ts +7 -0
- package/dist/org/tiqian/core/LineDebugInfo.js +18 -0
- package/dist/org/tiqian/core/LineDecisionInfo.d.ts +14 -0
- package/dist/org/tiqian/core/LineDecisionInfo.js +32 -0
- package/dist/org/tiqian/core/LineEdgeTrimDecisionInfo.d.ts +12 -0
- package/dist/org/tiqian/core/LineEdgeTrimDecisionInfo.js +22 -0
- package/dist/org/tiqian/core/LineEndReason.d.ts +16 -0
- package/dist/org/tiqian/core/LineEndReason.js +17 -0
- package/dist/org/tiqian/core/LineLengthGrid.d.ts +7 -0
- package/dist/org/tiqian/core/LineLengthGrid.js +12 -0
- package/dist/org/tiqian/core/LineLengthGridDecisionInfo.d.ts +13 -0
- package/dist/org/tiqian/core/LineLengthGridDecisionInfo.js +26 -0
- package/dist/org/tiqian/core/LineRepairAllocationInfo.d.ts +8 -0
- package/dist/org/tiqian/core/LineRepairAllocationInfo.js +14 -0
- package/dist/org/tiqian/core/LineRepairCandidateInfo.d.ts +16 -0
- package/dist/org/tiqian/core/LineRepairCandidateInfo.js +30 -0
- package/dist/org/tiqian/core/LineRepairDecisionInfo.d.ts +15 -0
- package/dist/org/tiqian/core/LineRepairDecisionInfo.js +31 -0
- package/dist/org/tiqian/core/LineSpacingDecisionInfo.d.ts +10 -0
- package/dist/org/tiqian/core/LineSpacingDecisionInfo.js +20 -0
- package/dist/org/tiqian/core/LinkAddressDisplay.d.ts +3 -0
- package/dist/org/tiqian/core/LinkAddressDisplay.js +12 -0
- package/dist/org/tiqian/core/MandatoryBreakDecisionInfo.d.ts +10 -0
- package/dist/org/tiqian/core/MandatoryBreakDecisionInfo.js +33 -0
- package/dist/org/tiqian/core/MaxLinesDecisionInfo.d.ts +8 -0
- package/dist/org/tiqian/core/MaxLinesDecisionInfo.js +25 -0
- package/dist/org/tiqian/core/MeasureAdaptiveFirstLineIndent.d.ts +8 -0
- package/dist/org/tiqian/core/MeasureAdaptiveFirstLineIndent.js +17 -0
- package/dist/org/tiqian/core/MetricDecisionInfo.d.ts +19 -0
- package/dist/org/tiqian/core/MetricDecisionInfo.js +36 -0
- package/dist/org/tiqian/core/ParagraphStyle.d.ts +22 -0
- package/dist/org/tiqian/core/ParagraphStyle.js +36 -0
- package/dist/org/tiqian/core/PositionedCluster.d.ts +22 -0
- package/dist/org/tiqian/core/PositionedCluster.js +52 -0
- package/dist/org/tiqian/core/PunctuationDecisionInfo.d.ts +29 -0
- package/dist/org/tiqian/core/PunctuationDecisionInfo.js +54 -0
- package/dist/org/tiqian/core/Rect.d.ts +12 -0
- package/dist/org/tiqian/core/Rect.js +28 -0
- package/dist/org/tiqian/core/RichTextBackgroundDrawStyle.d.ts +15 -0
- package/dist/org/tiqian/core/RichTextBackgroundDrawStyle.js +25 -0
- package/dist/org/tiqian/core/RichTextBackgroundMetricPolicy.d.ts +16 -0
- package/dist/org/tiqian/core/RichTextBackgroundMetricPolicy.js +17 -0
- package/dist/org/tiqian/core/RichTextBackgroundPaint.d.ts +19 -0
- package/dist/org/tiqian/core/RichTextBackgroundPaint.js +51 -0
- package/dist/org/tiqian/core/RichTextCornerRadii.d.ts +12 -0
- package/dist/org/tiqian/core/RichTextCornerRadii.js +28 -0
- package/dist/org/tiqian/core/RichTextLayoutProjection.d.ts +6 -0
- package/dist/org/tiqian/core/RichTextLayoutProjection.js +62 -0
- package/dist/org/tiqian/core/RichTextLinePattern.d.ts +24 -0
- package/dist/org/tiqian/core/RichTextLinePattern.js +46 -0
- package/dist/org/tiqian/core/RichTextLineSegment.d.ts +25 -0
- package/dist/org/tiqian/core/RichTextLineSegment.js +55 -0
- package/dist/org/tiqian/core/RichTextPaint.d.ts +17 -0
- package/dist/org/tiqian/core/RichTextPaint.js +64 -0
- package/dist/org/tiqian/core/RichTextProjectionFns.d.ts +7 -0
- package/dist/org/tiqian/core/RichTextProjectionFns.js +102 -0
- package/dist/org/tiqian/core/RichTextRole.d.ts +35 -0
- package/dist/org/tiqian/core/RichTextRole.js +57 -0
- package/dist/org/tiqian/core/RichTextSpan.d.ts +11 -0
- package/dist/org/tiqian/core/RichTextSpan.js +34 -0
- package/dist/org/tiqian/core/RoleOverrideInfo.d.ts +12 -0
- package/dist/org/tiqian/core/RoleOverrideInfo.js +41 -0
- package/dist/org/tiqian/core/RubyDecisionInfo.d.ts +20 -0
- package/dist/org/tiqian/core/RubyDecisionInfo.js +46 -0
- package/dist/org/tiqian/core/RubyKind.d.ts +12 -0
- package/dist/org/tiqian/core/RubyKind.js +14 -0
- package/dist/org/tiqian/core/RubyLineHeightDecisionInfo.d.ts +13 -0
- package/dist/org/tiqian/core/RubyLineHeightDecisionInfo.js +36 -0
- package/dist/org/tiqian/core/RubyLineHeightMode.d.ts +12 -0
- package/dist/org/tiqian/core/RubyLineHeightMode.js +14 -0
- package/dist/org/tiqian/core/RubySpan.d.ts +13 -0
- package/dist/org/tiqian/core/RubySpan.js +60 -0
- package/dist/org/tiqian/core/ShapingDecisionInfo.d.ts +21 -0
- package/dist/org/tiqian/core/ShapingDecisionInfo.js +40 -0
- package/dist/org/tiqian/core/Size.d.ts +6 -0
- package/dist/org/tiqian/core/Size.js +12 -0
- package/dist/org/tiqian/core/SourceBoundaryBias.d.ts +16 -0
- package/dist/org/tiqian/core/SourceBoundaryBias.js +17 -0
- package/dist/org/tiqian/core/SourceInteractionBoundaries.d.ts +29 -0
- package/dist/org/tiqian/core/SourceInteractionBoundaries.js +193 -0
- package/dist/org/tiqian/core/SpacingDecisionInfo.d.ts +13 -0
- package/dist/org/tiqian/core/SpacingDecisionInfo.js +24 -0
- package/dist/org/tiqian/core/TextRange.d.ts +11 -0
- package/dist/org/tiqian/core/TextRange.js +40 -0
- package/dist/org/tiqian/core/TextRangeError.d.ts +11 -0
- package/dist/org/tiqian/core/TextRangeError.js +2 -0
- package/dist/org/tiqian/core/TextSpan.d.ts +8 -0
- package/dist/org/tiqian/core/TextSpan.js +12 -0
- package/dist/org/tiqian/core/TextStyle.d.ts +12 -0
- package/dist/org/tiqian/core/TextStyle.js +28 -0
- package/dist/org/tiqian/core/TiqianIllegalArgumentException.d.ts +6 -0
- package/dist/org/tiqian/core/TiqianIllegalArgumentException.js +21 -0
- package/dist/org/tiqian/core/TiqianNoSuchElementException.d.ts +10 -0
- package/dist/org/tiqian/core/TiqianNoSuchElementException.js +16 -0
- package/dist/org/tiqian/core/TiqianTextContent.d.ts +12 -0
- package/dist/org/tiqian/core/TiqianTextContent.js +38 -0
- package/dist/org/tiqian/core/UnicodeCombiningMarkData.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeCombiningMarkData.js +109 -0
- package/dist/org/tiqian/core/UnicodeEastAsianSpacing.d.ts +16 -0
- package/dist/org/tiqian/core/UnicodeEastAsianSpacing.js +88 -0
- package/dist/org/tiqian/core/UnicodeEmojiModifierBaseData.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeEmojiModifierBaseData.js +35 -0
- package/dist/org/tiqian/core/UnicodeExtendedPictographicData.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeExtendedPictographicData.js +64 -0
- package/dist/org/tiqian/core/UnicodeNumber.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeNumber.js +14 -0
- package/dist/org/tiqian/core/UnicodeNumberData.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeNumberData.js +64 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidence.d.ts +16 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidence.js +17 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidenceClassifier.d.ts +7 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidenceClassifier.js +17 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidenceData.d.ts +4 -0
- package/dist/org/tiqian/core/UnicodeScriptEvidenceData.js +295 -0
- package/dist/org/tiqian/core/UnicodeWordCharacter.d.ts +6 -0
- package/dist/org/tiqian/core/UnicodeWordCharacter.js +17 -0
- package/dist/org/tiqian/core/UnicodeWordCharacterData.d.ts +3 -0
- package/dist/org/tiqian/core/UnicodeWordCharacterData.js +234 -0
- package/dist/org/tiqian/core/Units.d.ts +7 -0
- package/dist/org/tiqian/core/Units.js +11 -0
- package/dist/org/tiqian/core/WritingMode.d.ts +12 -0
- package/dist/org/tiqian/core/WritingMode.js +14 -0
- package/dist/org/tiqian/core/ZeroWidthBreakDecisionInfo.d.ts +10 -0
- package/dist/org/tiqian/core/ZeroWidthBreakDecisionInfo.js +33 -0
- package/dist/org/tiqian/font/BaselineClass.d.ts +24 -0
- package/dist/org/tiqian/font/BaselineClass.js +23 -0
- package/dist/org/tiqian/font/BaselinePolicy.d.ts +17 -0
- package/dist/org/tiqian/font/BaselinePolicy.js +18 -0
- package/dist/org/tiqian/font/CjkDashCapabilityPolicy.d.ts +4 -0
- package/dist/org/tiqian/font/CjkDashCapabilityPolicy.js +9 -0
- package/dist/org/tiqian/font/CjkFontRoleClassifier.d.ts +8 -0
- package/dist/org/tiqian/font/CjkFontRoleClassifier.js +43 -0
- package/dist/org/tiqian/font/FontMetricSource.d.ts +24 -0
- package/dist/org/tiqian/font/FontMetricSource.js +23 -0
- package/dist/org/tiqian/font/FontMetrics.d.ts +39 -0
- package/dist/org/tiqian/font/FontMetrics.js +106 -0
- package/dist/org/tiqian/font/FontMetricsPolicy.d.ts +21 -0
- package/dist/org/tiqian/font/FontMetricsPolicy.js +21 -0
- package/dist/org/tiqian/font/FontPolicy.d.ts +36 -0
- package/dist/org/tiqian/font/FontPolicy.js +157 -0
- package/dist/org/tiqian/font/FontRole.d.ts +29 -0
- package/dist/org/tiqian/font/FontRole.js +27 -0
- package/dist/org/tiqian/font/FontRoleContext.d.ts +13 -0
- package/dist/org/tiqian/font/FontRoleContext.js +28 -0
- package/dist/org/tiqian/font/InlineShapingStylePolicy.d.ts +4 -0
- package/dist/org/tiqian/font/InlineShapingStylePolicy.js +18 -0
- package/dist/org/tiqian/font/LayoutFontMetrics.d.ts +18 -0
- package/dist/org/tiqian/font/LayoutFontMetrics.js +29 -0
- package/dist/org/tiqian/font/MetricBox.d.ts +20 -0
- package/dist/org/tiqian/font/MetricBox.js +20 -0
- package/dist/org/tiqian/font/PreferCjkForAmbiguousPunctuationResolver.d.ts +10 -0
- package/dist/org/tiqian/font/PreferCjkForAmbiguousPunctuationResolver.js +30 -0
- package/dist/org/tiqian/font/PunctuationFontPolicy.d.ts +21 -0
- package/dist/org/tiqian/font/PunctuationFontPolicy.js +21 -0
- package/dist/org/tiqian/font/RawFontMetrics.d.ts +11 -0
- package/dist/org/tiqian/font/RawFontMetrics.js +23 -0
- package/dist/org/tiqian/font/UnicodeEmojiData.d.ts +3 -0
- package/dist/org/tiqian/font/UnicodeEmojiData.js +63 -0
- package/dist/org/tiqian/font/UnicodeEmojiPresentationData.d.ts +3 -0
- package/dist/org/tiqian/font/UnicodeEmojiPresentationData.js +46 -0
- package/dist/org/tiqian/font/UnicodeEmojiStyleVariationData.d.ts +3 -0
- package/dist/org/tiqian/font/UnicodeEmojiStyleVariationData.js +71 -0
- package/dist/org/tiqian/font/UnicodeSymbolData.d.ts +3 -0
- package/dist/org/tiqian/font/UnicodeSymbolData.js +88 -0
- package/dist/org/tiqian/layout/AnnotationGeometryStage.d.ts +57 -0
- package/dist/org/tiqian/layout/AnnotationGeometryStage.js +622 -0
- package/dist/org/tiqian/layout/AsciiPointMarkKinsokuTestSupport.d.ts +52 -0
- package/dist/org/tiqian/layout/AsciiPointMarkKinsokuTestSupport.js +209 -0
- package/dist/org/tiqian/layout/ClusterRoleResolution.d.ts +30 -0
- package/dist/org/tiqian/layout/ClusterRoleResolution.js +215 -0
- package/dist/org/tiqian/layout/ContextualDashEllipsisRoleResolver.d.ts +54 -0
- package/dist/org/tiqian/layout/ContextualDashEllipsisRoleResolver.js +326 -0
- package/dist/org/tiqian/layout/ContextualPunctuationDisplaySubstitution.d.ts +6 -0
- package/dist/org/tiqian/layout/ContextualPunctuationDisplaySubstitution.js +8 -0
- package/dist/org/tiqian/layout/ContextualQuoteRoleResolver.d.ts +51 -0
- package/dist/org/tiqian/layout/ContextualQuoteRoleResolver.js +305 -0
- package/dist/org/tiqian/layout/DefaultHyphenator.d.ts +4 -0
- package/dist/org/tiqian/layout/DefaultHyphenator.js +7 -0
- package/dist/org/tiqian/layout/Justifier.d.ts +64 -0
- package/dist/org/tiqian/layout/Justifier.js +474 -0
- package/dist/org/tiqian/layout/KinsokuRule.d.ts +15 -0
- package/dist/org/tiqian/layout/KinsokuRule.js +24 -0
- package/dist/org/tiqian/layout/LayoutDebugAssembly.d.ts +87 -0
- package/dist/org/tiqian/layout/LayoutDebugAssembly.js +371 -0
- package/dist/org/tiqian/layout/LineAdjustmentStage.d.ts +29 -0
- package/dist/org/tiqian/layout/LineAdjustmentStage.js +797 -0
- package/dist/org/tiqian/layout/LineBreakPlanningStage.d.ts +149 -0
- package/dist/org/tiqian/layout/LineBreakPlanningStage.js +769 -0
- package/dist/org/tiqian/layout/LineBreaker.d.ts +54 -0
- package/dist/org/tiqian/layout/LineBreaker.js +457 -0
- package/dist/org/tiqian/layout/LineGeometryStage.d.ts +63 -0
- package/dist/org/tiqian/layout/LineGeometryStage.js +344 -0
- package/dist/org/tiqian/layout/LineOptimization.d.ts +125 -0
- package/dist/org/tiqian/layout/LineOptimization.js +299 -0
- package/dist/org/tiqian/layout/LineRepair.d.ts +30 -0
- package/dist/org/tiqian/layout/LineRepair.js +471 -0
- package/dist/org/tiqian/layout/ParagraphDpLineBreaker.d.ts +80 -0
- package/dist/org/tiqian/layout/ParagraphDpLineBreaker.js +556 -0
- package/dist/org/tiqian/layout/ParagraphDpLineBreakerTestSupport.d.ts +23 -0
- package/dist/org/tiqian/layout/ParagraphDpLineBreakerTestSupport.js +135 -0
- package/dist/org/tiqian/layout/ParagraphLayoutEngine.d.ts +48 -0
- package/dist/org/tiqian/layout/ParagraphLayoutEngine.js +199 -0
- package/dist/org/tiqian/layout/ParagraphShapingStage.d.ts +63 -0
- package/dist/org/tiqian/layout/ParagraphShapingStage.js +1471 -0
- package/dist/org/tiqian/layout/PlanLowering.d.ts +10 -0
- package/dist/org/tiqian/layout/PlanLowering.js +329 -0
- package/dist/org/tiqian/layout/PreparedParagraph.d.ts +32 -0
- package/dist/org/tiqian/layout/PreparedParagraph.js +114 -0
- package/dist/org/tiqian/layout/ProgressiveBreakDecisions.d.ts +86 -0
- package/dist/org/tiqian/layout/ProgressiveBreakDecisions.js +415 -0
- package/dist/org/tiqian/layout/ProgressiveBreakTierPriority.d.ts +5 -0
- package/dist/org/tiqian/layout/ProgressiveBreakTierPriority.js +33 -0
- package/dist/org/tiqian/layout/PunctuationGeometryLedger.d.ts +92 -0
- package/dist/org/tiqian/layout/PunctuationGeometryLedger.js +617 -0
- package/dist/org/tiqian/layout/PunctuationGeometryStage.d.ts +73 -0
- package/dist/org/tiqian/layout/PunctuationGeometryStage.js +631 -0
- package/dist/org/tiqian/layout/PunctuationModel.d.ts +181 -0
- package/dist/org/tiqian/layout/PunctuationModel.js +414 -0
- package/dist/org/tiqian/layout/QuotePairAnalyzer.d.ts +63 -0
- package/dist/org/tiqian/layout/QuotePairAnalyzer.js +251 -0
- package/dist/org/tiqian/layout/UnicodePunctuationBoundaryResolver.d.ts +88 -0
- package/dist/org/tiqian/layout/UnicodePunctuationBoundaryResolver.js +495 -0
- package/dist/org/tiqian/layout/WidthIndependentAnnotationCache.d.ts +102 -0
- package/dist/org/tiqian/layout/WidthIndependentAnnotationCache.js +1207 -0
- package/dist/org/tiqian/linebreak/BreakKind.d.ts +20 -0
- package/dist/org/tiqian/linebreak/BreakKind.js +20 -0
- package/dist/org/tiqian/linebreak/BreakOpportunity.d.ts +19 -0
- package/dist/org/tiqian/linebreak/BreakOpportunity.js +64 -0
- package/dist/org/tiqian/linebreak/EnglishHyphenation.d.ts +5 -0
- package/dist/org/tiqian/linebreak/EnglishHyphenation.js +14 -0
- package/dist/org/tiqian/linebreak/EnglishHyphenationPatterns.d.ts +4 -0
- package/dist/org/tiqian/linebreak/EnglishHyphenationPatterns.js +4294 -0
- package/dist/org/tiqian/linebreak/Hyphenator.d.ts +17 -0
- package/dist/org/tiqian/linebreak/Hyphenator.js +24 -0
- package/dist/org/tiqian/linebreak/LiangHyphenator.d.ts +10 -0
- package/dist/org/tiqian/linebreak/LiangHyphenator.js +67 -0
- package/dist/org/tiqian/linebreak/LineBreakAnalyzer.d.ts +9 -0
- package/dist/org/tiqian/linebreak/LineBreakAnalyzer.js +23 -0
- package/dist/org/tiqian/linebreak/LineBreakFns.d.ts +2 -0
- package/dist/org/tiqian/linebreak/LineBreakFns.js +7 -0
- package/dist/org/tiqian/linebreak/ParseTexHyphenationPatterns.d.ts +7 -0
- package/dist/org/tiqian/linebreak/ParseTexHyphenationPatterns.js +108 -0
- package/dist/org/tiqian/linebreak/ParsedTexHyphenation.d.ts +6 -0
- package/dist/org/tiqian/linebreak/ParsedTexHyphenation.js +9 -0
- package/dist/org/tiqian/linebreak/UnicodePunctuationLineBreak.d.ts +63 -0
- package/dist/org/tiqian/linebreak/UnicodePunctuationLineBreak.js +103 -0
- package/dist/org/tiqian/linebreak/UnicodePunctuationLineBreakData.d.ts +3 -0
- package/dist/org/tiqian/linebreak/UnicodePunctuationLineBreakData.js +164 -0
- package/dist/org/tiqian/protocol/NamedError.d.ts +88 -0
- package/dist/org/tiqian/protocol/NamedError.js +71 -0
- package/dist/org/tiqian/protocol/NamedErrorNames.d.ts +5 -0
- package/dist/org/tiqian/protocol/NamedErrorNames.js +53 -0
- package/dist/org/tiqian/protocol/Plan.d.ts +101 -0
- package/dist/org/tiqian/protocol/Plan.js +10 -0
- package/dist/org/tiqian/protocol/PlanEndReason.d.ts +16 -0
- package/dist/org/tiqian/protocol/PlanEndReason.js +17 -0
- package/dist/org/tiqian/protocol/PlanJson.d.ts +10 -0
- package/dist/org/tiqian/protocol/PlanJson.js +442 -0
- package/dist/org/tiqian/protocol/PlanJsonNumber.d.ts +43 -0
- package/dist/org/tiqian/protocol/PlanJsonNumber.js +362 -0
- package/dist/org/tiqian/protocol/PlanPacked.d.ts +34 -0
- package/dist/org/tiqian/protocol/PlanPacked.js +1166 -0
- package/dist/org/tiqian/protocol/PlanSchema.d.ts +4 -0
- package/dist/org/tiqian/protocol/PlanSchema.js +5 -0
- package/dist/org/tiqian/protocol/PlanStyleDelta.d.ts +5 -0
- package/dist/org/tiqian/protocol/PlanStyleDelta.js +2 -0
- package/dist/org/tiqian/shaping/ReplayableFontBackend.d.ts +48 -0
- package/dist/org/tiqian/shaping/ReplayableFontBackend.js +97 -0
- package/dist/org/tiqian/shaping/TextShaper.d.ts +71 -0
- package/dist/org/tiqian/shaping/TextShaper.js +176 -0
- package/dist/org/tiqian/test/TestHelpers.d.ts +5 -0
- package/dist/org/tiqian/test/TestHelpers.js +27 -0
- package/dist/org/tiqian/test/trace/TestTrace.d.ts +6 -0
- package/dist/org/tiqian/test/trace/TestTrace.js +8 -0
- package/dist/org/tiqian/test/trace/TestTracePlatform.d.ts +6 -0
- package/dist/org/tiqian/test/trace/TestTracePlatform.js +78 -0
- package/dist/org/tiqian/test/trace/TestTraceRecorder.d.ts +9 -0
- package/dist/org/tiqian/test/trace/TestTraceRecorder.js +36 -0
- package/dist/org/tiqian/test/trace/TestTraceRender.d.ts +47 -0
- package/dist/org/tiqian/test/trace/TestTraceRender.js +690 -0
- package/dist/org/tiqian/test/trace/TestTraceStore.d.ts +18 -0
- package/dist/org/tiqian/test/trace/TestTraceStore.js +149 -0
- package/dist/org/tiqian/test/trace/TraceAssertionError.d.ts +5 -0
- package/dist/org/tiqian/test/trace/TraceAssertionError.js +2 -0
- package/dist/org/tiqian/test/trace/TraceAssertionException.d.ts +6 -0
- package/dist/org/tiqian/test/trace/TraceAssertionException.js +16 -0
- package/dist/org/tiqian/test/trace/TraceField.d.ts +5 -0
- package/dist/org/tiqian/test/trace/TraceField.js +10 -0
- package/dist/org/tiqian/test/trace/TraceFormat.d.ts +21 -0
- package/dist/org/tiqian/test/trace/TraceFormat.js +184 -0
- package/dist/org/tiqian/test/trace/TracedAssertions.d.ts +78 -0
- package/dist/org/tiqian/test/trace/TracedAssertions.js +749 -0
- package/dist/runtime.d.ts +96 -0
- package/dist/runtime.js +1612 -0
- package/dist/std/FsError.d.ts +48 -0
- package/dist/std/FsError.js +2 -0
- package/dist/std/FsException.d.ts +6 -0
- package/dist/std/FsException.js +45 -0
- package/dist/std/UStringException.d.ts +6 -0
- package/dist/std/UStringException.js +21 -0
- package/dist/std/UStringFault.d.ts +9 -0
- package/dist/std/UStringFault.js +2 -0
- package/package.json +22 -4
- package/README.md +0 -3
|
@@ -0,0 +1,344 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { InlineObjectLineHeightDecisionInfo } from "./../core/InlineObjectLineHeightDecisionInfo.js";
|
|
3
|
+
import { RubyLineHeightDecisionInfo } from "./../core/RubyLineHeightDecisionInfo.js";
|
|
4
|
+
import { PunctuationGeometryLedger } from "./PunctuationGeometryLedger.js";
|
|
5
|
+
import { SortedTable, dictKey, floatToI32, i32ToFloat } from "../../../runtime.js";
|
|
6
|
+
export class LineBoxStageResult {
|
|
7
|
+
laidOutLines;
|
|
8
|
+
visibleLines;
|
|
9
|
+
maxLinesDecision;
|
|
10
|
+
visibleLineRanges;
|
|
11
|
+
constructor(laidOutLines, visibleLines, maxLinesDecision, visibleLineRanges) {
|
|
12
|
+
this.laidOutLines = laidOutLines;
|
|
13
|
+
this.visibleLines = visibleLines;
|
|
14
|
+
this.maxLinesDecision = maxLinesDecision;
|
|
15
|
+
this.visibleLineRanges = visibleLineRanges;
|
|
16
|
+
}
|
|
17
|
+
toString() {
|
|
18
|
+
return `LineBoxStageResult(laidOutLines=${(() => { let out = "["; const n = this.laidOutLines.length; for (let i = 0; i < n; i += 1) {
|
|
19
|
+
if (i > 0) {
|
|
20
|
+
out += ", ";
|
|
21
|
+
}
|
|
22
|
+
out += this.laidOutLines[i].toString();
|
|
23
|
+
} out += "]"; return out; })()}, visibleLines=${(() => { let out = "["; const n = this.visibleLines.length; for (let i = 0; i < n; i += 1) {
|
|
24
|
+
if (i > 0) {
|
|
25
|
+
out += ", ";
|
|
26
|
+
}
|
|
27
|
+
out += this.visibleLines[i].toString();
|
|
28
|
+
} out += "]"; return out; })()}, maxLinesDecision=${(this.maxLinesDecision === null ? "null" : this.maxLinesDecision.toString())}, visibleLineRanges=${(() => { let out = "["; const n = this.visibleLineRanges.length; for (let i = 0; i < n; i += 1) {
|
|
29
|
+
if (i > 0) {
|
|
30
|
+
out += ", ";
|
|
31
|
+
}
|
|
32
|
+
out += this.visibleLineRanges[i].toString();
|
|
33
|
+
} out += "]"; return out; })()})`;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
export class LineVerticalGeometryStageResult {
|
|
37
|
+
rubyLineHeightDecision;
|
|
38
|
+
inlineObjectLineHeightDecision;
|
|
39
|
+
lineBaseline;
|
|
40
|
+
lineTop;
|
|
41
|
+
lineBottom;
|
|
42
|
+
constructor(rubyLineHeightDecision, inlineObjectLineHeightDecision, lineBaseline, lineTop, lineBottom) {
|
|
43
|
+
this.rubyLineHeightDecision = rubyLineHeightDecision;
|
|
44
|
+
this.inlineObjectLineHeightDecision = inlineObjectLineHeightDecision;
|
|
45
|
+
this.lineBaseline = lineBaseline;
|
|
46
|
+
this.lineTop = lineTop;
|
|
47
|
+
this.lineBottom = lineBottom;
|
|
48
|
+
}
|
|
49
|
+
toString() {
|
|
50
|
+
return `LineVerticalGeometryStageResult(rubyLineHeightDecision=${(this.rubyLineHeightDecision === null ? "null" : this.rubyLineHeightDecision.toString())}, inlineObjectLineHeightDecision=${(this.inlineObjectLineHeightDecision === null ? "null" : this.inlineObjectLineHeightDecision.toString())}, lineBaseline=${(() => { let out = "["; const n = this.lineBaseline.length; for (let i = 0; i < n; i += 1) {
|
|
51
|
+
if (i > 0) {
|
|
52
|
+
out += ", ";
|
|
53
|
+
}
|
|
54
|
+
out += this.lineBaseline[i];
|
|
55
|
+
} out += "]"; return out; })()}, lineTop=${(() => { let out = "["; const n = this.lineTop.length; for (let i = 0; i < n; i += 1) {
|
|
56
|
+
if (i > 0) {
|
|
57
|
+
out += ", ";
|
|
58
|
+
}
|
|
59
|
+
out += this.lineTop[i];
|
|
60
|
+
} out += "]"; return out; })()}, lineBottom=${(() => { let out = "["; const n = this.lineBottom.length; for (let i = 0; i < n; i += 1) {
|
|
61
|
+
if (i > 0) {
|
|
62
|
+
out += ", ";
|
|
63
|
+
}
|
|
64
|
+
out += this.lineBottom[i];
|
|
65
|
+
} out += "]"; return out; })()})`;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
export class ClusterMetricDecision {
|
|
69
|
+
range;
|
|
70
|
+
sourceText;
|
|
71
|
+
request;
|
|
72
|
+
rawMetrics;
|
|
73
|
+
layoutMetrics;
|
|
74
|
+
constructor(range, sourceText, request, rawMetrics, layoutMetrics) {
|
|
75
|
+
this.range = range;
|
|
76
|
+
this.sourceText = sourceText;
|
|
77
|
+
this.request = request;
|
|
78
|
+
this.rawMetrics = rawMetrics;
|
|
79
|
+
this.layoutMetrics = layoutMetrics;
|
|
80
|
+
}
|
|
81
|
+
toString() {
|
|
82
|
+
return `ClusterMetricDecision(range=${this.range.toString()}, sourceText=${this.sourceText}, request=${this.request.toString()}, rawMetrics=${this.rawMetrics.toString()}, layoutMetrics=${this.layoutMetrics.toString()})`;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
export class ResolvedLineMetrics {
|
|
86
|
+
baseline;
|
|
87
|
+
height;
|
|
88
|
+
extraLeading;
|
|
89
|
+
constructor(baseline, height, extraLeading = null) {
|
|
90
|
+
this.baseline = baseline;
|
|
91
|
+
this.height = height;
|
|
92
|
+
this.extraLeading = extraLeading ?? 0;
|
|
93
|
+
}
|
|
94
|
+
toString() {
|
|
95
|
+
return `ResolvedLineMetrics(baseline=${this.baseline}, height=${this.height}, extraLeading=${this.extraLeading})`;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
export class RubyClusterRange {
|
|
99
|
+
ruby;
|
|
100
|
+
range;
|
|
101
|
+
constructor(ruby, range) {
|
|
102
|
+
this.ruby = ruby;
|
|
103
|
+
this.range = range;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
export class LineGeometryStageFns {
|
|
107
|
+
static resolveLineVerticalGeometry(input, fontSize, pinyinSpans, naturalClusters, lineSolution, rubyFontGeometryBySpan, existingInterlineSpace, baseLineMetrics, baseFaceHeight, rubyExtent, inlineObjectByClusterIndex, baseAscent, baseDescent) {
|
|
108
|
+
return LineGeometryStageFns.resolveLineVerticalGeometrySorted(input, fontSize, pinyinSpans, naturalClusters, lineSolution, rubyFontGeometryBySpan, existingInterlineSpace, baseLineMetrics, baseFaceHeight, rubyExtent, LineGeometryStageFns.sortedInlineObjectByClusterIndex(inlineObjectByClusterIndex, naturalClusters), baseAscent, baseDescent);
|
|
109
|
+
}
|
|
110
|
+
static sortedInlineObjectByClusterIndex(inlineObjectByClusterIndex, naturalClusters) {
|
|
111
|
+
const builder = SortedTable.mapBuilder(SortedTable.compareInts);
|
|
112
|
+
if (inlineObjectByClusterIndex !== null) {
|
|
113
|
+
for (let index = 0, count = naturalClusters.length; index < count; index += 1) {
|
|
114
|
+
const inlineObject = (inlineObjectByClusterIndex.get(dictKey(index)) ?? null);
|
|
115
|
+
if (inlineObject !== null) {
|
|
116
|
+
builder.put(index, (inlineObject));
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
return builder.build();
|
|
121
|
+
}
|
|
122
|
+
static resolveLineVerticalGeometrySorted(input, fontSize, pinyinSpans, naturalClusters, lineSolution, rubyFontGeometryBySpan, existingInterlineSpace, baseLineMetrics, baseFaceHeight, rubyExtent, inlineObjectByClusterIndex, baseAscent, baseDescent) {
|
|
123
|
+
const pinyinClusterRanges = [];
|
|
124
|
+
for (let _g_index = 0, count2 = pinyinSpans.length; _g_index < count2; _g_index += 1) {
|
|
125
|
+
const ruby = pinyinSpans[_g_index];
|
|
126
|
+
const range = LineGeometryStageFns.clusterIndexRangeFor(naturalClusters, ruby.baseRange);
|
|
127
|
+
if (range !== null) {
|
|
128
|
+
pinyinClusterRanges.push(new RubyClusterRange(ruby, (range)));
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
const perLineRubyExtent = [];
|
|
132
|
+
{
|
|
133
|
+
const _g1 = lineSolution.lines;
|
|
134
|
+
for (let _g_index1 = 0, count10 = _g1.length; _g_index1 < count10; _g_index1 += 1) {
|
|
135
|
+
const line = _g1[_g_index1];
|
|
136
|
+
let required = 0.0;
|
|
137
|
+
{
|
|
138
|
+
let _g = 0;
|
|
139
|
+
while (_g < pinyinClusterRanges.length) {
|
|
140
|
+
const pair = pinyinClusterRanges[_g];
|
|
141
|
+
_g++;
|
|
142
|
+
if (pair.range.start <= line.clusterRange.end && pair.range.end >= line.clusterRange.start && rubyFontGeometryBySpan.has(pair.ruby)) {
|
|
143
|
+
required = Math.max(required, rubyFontGeometryBySpan.get(pair.ruby).requiredExtent);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
perLineRubyExtent.push(required);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
const count3 = perLineRubyExtent.length;
|
|
151
|
+
const pipeline_result = new Array(count3);
|
|
152
|
+
for (let pipeline_index = 0; pipeline_index < count3; pipeline_index += 1) {
|
|
153
|
+
const v = perLineRubyExtent[pipeline_index];
|
|
154
|
+
pipeline_result[pipeline_index] = Math.max(0, v - existingInterlineSpace);
|
|
155
|
+
}
|
|
156
|
+
const perLineRubyDeficit = pipeline_result;
|
|
157
|
+
let paragraphRubyDeficit = 0.0;
|
|
158
|
+
for (let _g_index3 = 0, count4 = perLineRubyDeficit.length; _g_index3 < count4; _g_index3 += 1) {
|
|
159
|
+
const x = perLineRubyDeficit[_g_index3];
|
|
160
|
+
paragraphRubyDeficit = Math.max(paragraphRubyDeficit, x);
|
|
161
|
+
}
|
|
162
|
+
const uniform = input.paragraphStyle.rubyLineHeightMode.kind === "UniformParagraph";
|
|
163
|
+
let paragraphRubyExtent = 0.0;
|
|
164
|
+
for (let _g_index4 = 0, count11 = perLineRubyExtent.length; _g_index4 < count11; _g_index4 += 1) {
|
|
165
|
+
const x2 = perLineRubyExtent[_g_index4];
|
|
166
|
+
paragraphRubyExtent = Math.max(paragraphRubyExtent, x2);
|
|
167
|
+
}
|
|
168
|
+
const lineRubyTopExtra = [];
|
|
169
|
+
const lineRubyInterlineDemand = [];
|
|
170
|
+
for (let i = 0, count12 = lineSolution.lines.length; i < count12; i += 1) {
|
|
171
|
+
lineRubyTopExtra.push((uniform ? paragraphRubyDeficit : perLineRubyDeficit[i]));
|
|
172
|
+
lineRubyInterlineDemand.push((uniform ? paragraphRubyExtent : perLineRubyExtent[i]));
|
|
173
|
+
}
|
|
174
|
+
let maxExtra = 0.0;
|
|
175
|
+
const expandedRuby = [];
|
|
176
|
+
for (let i2 = 0, count5 = lineRubyTopExtra.length; i2 < count5; i2 += 1) {
|
|
177
|
+
maxExtra = Math.max(maxExtra, lineRubyTopExtra[i2]);
|
|
178
|
+
if (lineRubyTopExtra[i2] > 0) {
|
|
179
|
+
expandedRuby.push(i2);
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
const hasRubyExtra = expandedRuby.length > 0;
|
|
183
|
+
const rubyReason = (hasRubyExtra ? "ConditionalRubyLineHeight" : "ExistingInterlineSpaceFitsRuby");
|
|
184
|
+
const rd = (pinyinSpans.length === 0 ? null : new RubyLineHeightDecisionInfo(input.paragraphStyle.rubyLineHeightMode.kind, baseLineMetrics.height, baseFaceHeight, rubyExtent, existingInterlineSpace, maxExtra, lineRubyTopExtra, expandedRuby, rubyReason));
|
|
185
|
+
const baseBaseline = LineGeometryStageFns.f32(baseLineMetrics.baseline);
|
|
186
|
+
const baseHeight = LineGeometryStageFns.f32(baseLineMetrics.height);
|
|
187
|
+
const baseTopExtent = baseBaseline;
|
|
188
|
+
const baseBottomExtent = LineGeometryStageFns.f32(baseHeight - baseBaseline);
|
|
189
|
+
const fBaseAscent = LineGeometryStageFns.f32(baseAscent);
|
|
190
|
+
const fBaseDescent = LineGeometryStageFns.f32(baseDescent);
|
|
191
|
+
const lineObjectAscent = [];
|
|
192
|
+
const lineObjectDescent = [];
|
|
193
|
+
{
|
|
194
|
+
const _g14 = lineSolution.lines;
|
|
195
|
+
for (let _g_index5 = 0, count13 = _g14.length; _g_index5 < count13; _g_index5 += 1) {
|
|
196
|
+
const line2 = _g14[_g_index5];
|
|
197
|
+
let ascent = 0.0;
|
|
198
|
+
let descent = 0.0;
|
|
199
|
+
let idx = line2.clusterRange.start;
|
|
200
|
+
while (idx <= line2.clusterRange.end) {
|
|
201
|
+
if (inlineObjectByClusterIndex !== null && inlineObjectByClusterIndex.has(idx)) {
|
|
202
|
+
const obj = inlineObjectByClusterIndex.get(idx);
|
|
203
|
+
ascent = Math.max(ascent, LineGeometryStageFns.f32(obj.ascent));
|
|
204
|
+
descent = Math.max(descent, LineGeometryStageFns.f32(obj.descent));
|
|
205
|
+
}
|
|
206
|
+
idx++;
|
|
207
|
+
}
|
|
208
|
+
lineObjectAscent.push(ascent);
|
|
209
|
+
lineObjectDescent.push(descent);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
const count6 = lineObjectAscent.length;
|
|
213
|
+
const pipeline_result1 = new Array(count6);
|
|
214
|
+
for (let pipeline_index1 = 0; pipeline_index1 < count6; pipeline_index1 += 1) {
|
|
215
|
+
const v2 = lineObjectAscent[pipeline_index1];
|
|
216
|
+
pipeline_result1[pipeline_index1] = Math.max(0, LineGeometryStageFns.f32(v2 - fBaseAscent));
|
|
217
|
+
}
|
|
218
|
+
const lineObjectTopIntrusion = pipeline_result1;
|
|
219
|
+
const count7 = lineObjectDescent.length;
|
|
220
|
+
const pipeline_result2 = new Array(count7);
|
|
221
|
+
for (let pipeline_index2 = 0; pipeline_index2 < count7; pipeline_index2 += 1) {
|
|
222
|
+
const v3 = lineObjectDescent[pipeline_index2];
|
|
223
|
+
pipeline_result2[pipeline_index2] = Math.max(0, LineGeometryStageFns.f32(v3 - fBaseDescent));
|
|
224
|
+
}
|
|
225
|
+
const lineObjectBottomIntrusion = pipeline_result2;
|
|
226
|
+
const minimumClearance = LineGeometryStageFns.f32(LineGeometryStageFns.f32(input.paragraphStyle.inlineObjectMinimumClearanceEm) * LineGeometryStageFns.f32(fontSize));
|
|
227
|
+
const combinedLineExtra = [];
|
|
228
|
+
for (let i3 = 0, count14 = lineSolution.lines.length; i3 < count14; i3 += 1) {
|
|
229
|
+
if (i3 === 0) {
|
|
230
|
+
combinedLineExtra.push(Math.max(LineGeometryStageFns.f32(lineRubyTopExtra[i3]), Math.max(0, LineGeometryStageFns.f32(lineObjectAscent[i3] - baseTopExtent))));
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
const topDemand = Math.max(LineGeometryStageFns.f32(lineRubyInterlineDemand[i3]), lineObjectTopIntrusion[i3]);
|
|
234
|
+
const intrudes = lineObjectBottomIntrusion[i3 - 1] > 0 || lineObjectTopIntrusion[i3] > 0 && lineObjectTopIntrusion[i3] >= lineRubyInterlineDemand[i3];
|
|
235
|
+
const clearance = (intrudes ? minimumClearance : 0.0);
|
|
236
|
+
combinedLineExtra.push(Math.max(0, LineGeometryStageFns.f32(LineGeometryStageFns.f32(LineGeometryStageFns.f32(lineObjectBottomIntrusion[i3 - 1] + topDemand) + clearance) - LineGeometryStageFns.f32(existingInterlineSpace))));
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
const objectLineExtra = [];
|
|
240
|
+
for (let i4 = 0, count8 = combinedLineExtra.length; i4 < count8; i4 += 1) {
|
|
241
|
+
objectLineExtra.push(Math.max(0, LineGeometryStageFns.f32(combinedLineExtra[i4] - LineGeometryStageFns.f32(lineRubyTopExtra[i4]))));
|
|
242
|
+
}
|
|
243
|
+
const baselines = [];
|
|
244
|
+
if (lineSolution.lines.length > 0) {
|
|
245
|
+
baselines.push(LineGeometryStageFns.f32(baseBaseline + combinedLineExtra[0]));
|
|
246
|
+
for (let i5 = 1, count15 = lineSolution.lines.length; i5 < count15; i5 += 1) {
|
|
247
|
+
baselines.push(LineGeometryStageFns.f32(LineGeometryStageFns.f32(baselines[i5 - 1] + baseHeight) + combinedLineExtra[i5]));
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
const _g7 = [];
|
|
251
|
+
for (let i6 = 0, count16 = lineSolution.lines.length; i6 < count16; i6 += 1) {
|
|
252
|
+
_g7.push(0.0);
|
|
253
|
+
}
|
|
254
|
+
const tops = _g7;
|
|
255
|
+
const _g8 = [];
|
|
256
|
+
for (let i7 = 0, count17 = lineSolution.lines.length; i7 < count17; i7 += 1) {
|
|
257
|
+
_g8.push(0.0);
|
|
258
|
+
}
|
|
259
|
+
const bottoms = _g8;
|
|
260
|
+
const boundaryCount = (lineSolution.lines.length > 1 ? lineSolution.lines.length - 1 : 0);
|
|
261
|
+
const _g9 = [];
|
|
262
|
+
for (let i8 = 0; i8 < boundaryCount; i8 += 1) {
|
|
263
|
+
_g9.push(0.0);
|
|
264
|
+
}
|
|
265
|
+
const boundaryShifts = _g9;
|
|
266
|
+
for (let i9 = 0; i9 < boundaryCount; i9 += 1) {
|
|
267
|
+
const current = Math.max(fBaseDescent, lineObjectDescent[i9]);
|
|
268
|
+
const boundaryExtent = LineGeometryStageFns.resolveInlineObjectLineBoundaryExtent(baseBottomExtent, current, LineGeometryStageFns.f32(baselines[i9 + 1] - baselines[i9]), Math.max(fBaseAscent, lineObjectAscent[i9 + 1]));
|
|
269
|
+
const nominal = LineGeometryStageFns.f32(baselines[i9] + baseBottomExtent);
|
|
270
|
+
const boundary = LineGeometryStageFns.f32(baselines[i9] + boundaryExtent);
|
|
271
|
+
bottoms[i9] = boundary;
|
|
272
|
+
tops[i9 + 1] = boundary;
|
|
273
|
+
boundaryShifts[i9] = LineGeometryStageFns.f32(boundary - nominal);
|
|
274
|
+
}
|
|
275
|
+
const trailing = (lineSolution.lines.length === 0 ? 0.0 : Math.max(0, LineGeometryStageFns.f32(lineObjectDescent[lineObjectDescent.length - 1] - baseBottomExtent)));
|
|
276
|
+
if (lineSolution.lines.length > 0) {
|
|
277
|
+
bottoms[bottoms.length - 1] = LineGeometryStageFns.f32(LineGeometryStageFns.f32(baselines[baselines.length - 1] + baseBottomExtent) + trailing);
|
|
278
|
+
}
|
|
279
|
+
const objectIndices = [];
|
|
280
|
+
for (let i10 = 0, count9 = objectLineExtra.length; i10 < count9; i10 += 1) {
|
|
281
|
+
if (objectLineExtra[i10] > 0) {
|
|
282
|
+
objectIndices.push(i10);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
let hasInlineObjects = false;
|
|
286
|
+
if (inlineObjectByClusterIndex !== null) {
|
|
287
|
+
hasInlineObjects = inlineObjectByClusterIndex.size() > 0;
|
|
288
|
+
}
|
|
289
|
+
const iod = (hasInlineObjects ? new InlineObjectLineHeightDecisionInfo(baseLineMetrics.height, baseAscent, baseDescent, existingInterlineSpace, minimumClearance, lineObjectAscent, lineObjectDescent, objectLineExtra, boundaryShifts, trailing, objectIndices, (objectIndices.length === 0 && trailing === 0 ? "ExistingInterlineSpaceFitsInlineObjects" : "InlineObjectInterlineCollision")) : null);
|
|
290
|
+
return new LineVerticalGeometryStageResult(rd, iod, baselines, tops, bottoms);
|
|
291
|
+
}
|
|
292
|
+
static lineMetrics(self, explicitLineHeight, defaultLineHeight, spacingFloor) {
|
|
293
|
+
spacingFloor = spacingFloor ?? null;
|
|
294
|
+
let floorValue = 0.0;
|
|
295
|
+
if (spacingFloor !== null) {
|
|
296
|
+
floorValue = spacingFloor;
|
|
297
|
+
}
|
|
298
|
+
const floor = floorValue;
|
|
299
|
+
const count18 = self.length;
|
|
300
|
+
if (count18 === 0) {
|
|
301
|
+
let hValue = defaultLineHeight;
|
|
302
|
+
if (explicitLineHeight !== null) {
|
|
303
|
+
hValue = explicitLineHeight;
|
|
304
|
+
}
|
|
305
|
+
const h = hValue;
|
|
306
|
+
return new ResolvedLineMetrics(h * .75, h);
|
|
307
|
+
}
|
|
308
|
+
const pipeline_result = new Array();
|
|
309
|
+
for (let pipeline_index = 0; pipeline_index < count18; pipeline_index += 1) {
|
|
310
|
+
const v = self[pipeline_index];
|
|
311
|
+
if (v.layoutMetrics.metricBox.kind === "IdeographicEmBox") {
|
|
312
|
+
pipeline_result.push(v);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
let src = pipeline_result;
|
|
316
|
+
if (src.length === 0) {
|
|
317
|
+
src = self;
|
|
318
|
+
}
|
|
319
|
+
let a = src[0].layoutMetrics.ascent;
|
|
320
|
+
let d = src[0].layoutMetrics.descent;
|
|
321
|
+
for (let _g_index1 = 0, count19 = src.length; _g_index1 < count19; _g_index1 += 1) {
|
|
322
|
+
const x = src[_g_index1];
|
|
323
|
+
a = Math.max(a, x.layoutMetrics.ascent);
|
|
324
|
+
d = Math.max(d, x.layoutMetrics.descent);
|
|
325
|
+
}
|
|
326
|
+
const natural = a + d;
|
|
327
|
+
let requestedValue = defaultLineHeight;
|
|
328
|
+
if (explicitLineHeight !== null) {
|
|
329
|
+
requestedValue = explicitLineHeight;
|
|
330
|
+
}
|
|
331
|
+
const requested = requestedValue;
|
|
332
|
+
const h2 = Math.max(requested, natural + floor);
|
|
333
|
+
return new ResolvedLineMetrics(a + (h2 - natural) / 2, h2, h2 - natural);
|
|
334
|
+
}
|
|
335
|
+
static f32(v) {
|
|
336
|
+
return i32ToFloat(floatToI32(v));
|
|
337
|
+
}
|
|
338
|
+
static resolveInlineObjectLineBoundaryExtent(nominalBoundaryExtent, currentContentBottomExtent, baselineDistance, nextContentTopExtent) {
|
|
339
|
+
return Math.max(currentContentBottomExtent, Math.min(nominalBoundaryExtent, Math.max(currentContentBottomExtent, LineGeometryStageFns.f32(baselineDistance - nextContentTopExtent))));
|
|
340
|
+
}
|
|
341
|
+
static clusterIndexRangeFor(self, r) {
|
|
342
|
+
return PunctuationGeometryLedger.clusterIndexRangeFor(self, r);
|
|
343
|
+
}
|
|
344
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { IntRange } from "./../core/IntRange.js";
|
|
2
|
+
import { LineEndReason } from "./../core/LineEndReason.js";
|
|
3
|
+
import { type TextRange } from "./../core/TextRange.js";
|
|
4
|
+
import { ShrinkChannel } from "./ProgressiveBreakDecisions.js";
|
|
5
|
+
import { type BreakKind } from "./../linebreak/BreakKind.js";
|
|
6
|
+
import { SortedSetTable } from "../../../runtime.js";
|
|
7
|
+
export declare class BreakCandidate {
|
|
8
|
+
readonly index: number;
|
|
9
|
+
readonly kind: BreakKind;
|
|
10
|
+
readonly naturalWidth: number;
|
|
11
|
+
readonly compressedWidth: number;
|
|
12
|
+
readonly expandedWidth: number;
|
|
13
|
+
readonly forbiddenReason: string | null;
|
|
14
|
+
readonly repairOptions: RepairOption[];
|
|
15
|
+
constructor(index: number, kind: BreakKind, naturalWidth: number, compressedWidth: number, expandedWidth: number, forbiddenReason?: string | null, repairOptions?: RepairOption[] | null);
|
|
16
|
+
toString(): string;
|
|
17
|
+
}
|
|
18
|
+
export declare class RepairOptions {
|
|
19
|
+
static penalty(o: RepairOption): number;
|
|
20
|
+
static reason(o: RepairOption): string;
|
|
21
|
+
static hangOffender(o: RepairOption): number | null;
|
|
22
|
+
static pushInReasonOf(o: RepairOption): string | null;
|
|
23
|
+
static pushInAllocations(o: RepairOption): PushInAllocation[] | null;
|
|
24
|
+
}
|
|
25
|
+
export declare class PushInAllocation {
|
|
26
|
+
readonly clusterIndex: number;
|
|
27
|
+
readonly shrink: number;
|
|
28
|
+
readonly availableCapacity: number;
|
|
29
|
+
readonly channel: ShrinkChannel;
|
|
30
|
+
constructor(clusterIndex: number, shrink: number, availableCapacity: number, channel?: ShrinkChannel | null);
|
|
31
|
+
toString(): string;
|
|
32
|
+
}
|
|
33
|
+
export declare class LineCandidate {
|
|
34
|
+
readonly clusterRange: IntRange;
|
|
35
|
+
readonly sourceRange: TextRange;
|
|
36
|
+
readonly naturalWidth: number;
|
|
37
|
+
readonly adjustedWidth: number;
|
|
38
|
+
readonly endReason: LineEndReason;
|
|
39
|
+
readonly repair: RepairOption | null;
|
|
40
|
+
readonly repairCandidates: RepairCandidate[];
|
|
41
|
+
readonly hangingClusterIndices: SortedSetTable<number>;
|
|
42
|
+
constructor(clusterRange: IntRange, sourceRange: TextRange, naturalWidth: number, adjustedWidth: number, endReason?: LineEndReason | null, repair?: RepairOption | null, repairCandidates?: RepairCandidate[] | null, hangingClusterIndices?: SortedSetTable<number> | null);
|
|
43
|
+
get hangingClusterIndex(): number | null;
|
|
44
|
+
get_hangingClusterIndex(): number | null;
|
|
45
|
+
get inMeasureClusterRange(): IntRange;
|
|
46
|
+
get_inMeasureClusterRange(): IntRange;
|
|
47
|
+
toString(): string;
|
|
48
|
+
static emptyHanging(): SortedSetTable<number>;
|
|
49
|
+
}
|
|
50
|
+
export declare class LineCandidates {
|
|
51
|
+
static renderRange(r: IntRange): string;
|
|
52
|
+
}
|
|
53
|
+
export declare class RepairCandidate {
|
|
54
|
+
readonly kind: string;
|
|
55
|
+
readonly reasonCode: string;
|
|
56
|
+
readonly offenderClusterIndex: number;
|
|
57
|
+
readonly penalty: number;
|
|
58
|
+
readonly accepted: boolean;
|
|
59
|
+
readonly rejectionReason: string | null;
|
|
60
|
+
readonly targetClusterIndex: number | null;
|
|
61
|
+
readonly carriedClusterIndex: number | null;
|
|
62
|
+
readonly shrink: number;
|
|
63
|
+
readonly requiredShrink: number;
|
|
64
|
+
readonly availableCapacity: number;
|
|
65
|
+
constructor(kind: string, reasonCode: string, offenderClusterIndex: number, penalty: number, accepted: boolean, rejectionReason?: string | null, targetClusterIndex?: number | null, carriedClusterIndex?: number | null, shrink?: number | null, requiredShrink?: number | null, availableCapacity?: number | null);
|
|
66
|
+
toString(): string;
|
|
67
|
+
}
|
|
68
|
+
export declare class LineSolution {
|
|
69
|
+
readonly lines: LineCandidate[];
|
|
70
|
+
readonly totalBadness: number;
|
|
71
|
+
constructor(lines?: LineCandidate[] | null, totalBadness?: number | null);
|
|
72
|
+
toString(): string;
|
|
73
|
+
}
|
|
74
|
+
export interface PushIn {
|
|
75
|
+
readonly kind: "PushIn";
|
|
76
|
+
readonly penalty: number;
|
|
77
|
+
readonly reason: string;
|
|
78
|
+
readonly offenderClusterIndex: number;
|
|
79
|
+
readonly allocations: PushInAllocation[];
|
|
80
|
+
readonly totalShrink: number;
|
|
81
|
+
readonly totalAvailableCapacity: number;
|
|
82
|
+
}
|
|
83
|
+
export interface Hang {
|
|
84
|
+
readonly kind: "Hang";
|
|
85
|
+
readonly penalty: number;
|
|
86
|
+
readonly reason: string;
|
|
87
|
+
readonly offenderClusterIndex: number;
|
|
88
|
+
}
|
|
89
|
+
export interface CarryPrevious {
|
|
90
|
+
readonly kind: "CarryPrevious";
|
|
91
|
+
readonly penalty: number;
|
|
92
|
+
readonly reason: string;
|
|
93
|
+
readonly offenderClusterIndex: number;
|
|
94
|
+
readonly carriedClusterIndex: number;
|
|
95
|
+
}
|
|
96
|
+
export interface CarryNext {
|
|
97
|
+
readonly kind: "CarryNext";
|
|
98
|
+
readonly penalty: number;
|
|
99
|
+
readonly reason: string;
|
|
100
|
+
readonly movedClusterIndex: number;
|
|
101
|
+
}
|
|
102
|
+
export interface LeaveRagged {
|
|
103
|
+
readonly kind: "LeaveRagged";
|
|
104
|
+
readonly penalty: number;
|
|
105
|
+
readonly reason: string;
|
|
106
|
+
readonly offenderClusterIndex: number;
|
|
107
|
+
}
|
|
108
|
+
export type RepairOption = PushIn | Hang | CarryPrevious | CarryNext | LeaveRagged;
|
|
109
|
+
export interface Greedy {
|
|
110
|
+
readonly kind: "Greedy";
|
|
111
|
+
}
|
|
112
|
+
export interface Lookahead {
|
|
113
|
+
readonly kind: "Lookahead";
|
|
114
|
+
}
|
|
115
|
+
export interface ParagraphDynamicProgramming {
|
|
116
|
+
readonly kind: "ParagraphDynamicProgramming";
|
|
117
|
+
}
|
|
118
|
+
export type LineOptimizationStrategy = Greedy | Lookahead | ParagraphDynamicProgramming;
|
|
119
|
+
export declare const LineOptimizationStrategy: Readonly<{
|
|
120
|
+
Greedy: Readonly<Greedy>;
|
|
121
|
+
Lookahead: Readonly<Lookahead>;
|
|
122
|
+
ParagraphDynamicProgramming: Readonly<ParagraphDynamicProgramming>;
|
|
123
|
+
}>;
|
|
124
|
+
export declare function compareLineOptimizationStrategy(a: LineOptimizationStrategy, b: LineOptimizationStrategy): number;
|
|
125
|
+
export declare const LINE_OPTIMIZATION_STRATEGY_ALL: readonly (Readonly<Greedy> | Readonly<Lookahead> | Readonly<ParagraphDynamicProgramming>)[];
|