@tiqian/engine 0.0.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,415 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { ProgressiveBreakTierPriority } from "./ProgressiveBreakTierPriority.js";
|
|
3
|
+
import { SortedTable } from "../../../runtime.js";
|
|
4
|
+
export class ProgressiveBreakOpportunity {
|
|
5
|
+
tier;
|
|
6
|
+
spanRange;
|
|
7
|
+
precedingWhitespaceStretchCapacity;
|
|
8
|
+
constructor(tier, spanRange, precedingWhitespaceStretchCapacity = null) {
|
|
9
|
+
this.tier = tier;
|
|
10
|
+
this.spanRange = spanRange;
|
|
11
|
+
this.precedingWhitespaceStretchCapacity = precedingWhitespaceStretchCapacity ?? 0.0;
|
|
12
|
+
}
|
|
13
|
+
toString() {
|
|
14
|
+
return `ProgressiveBreakOpportunity(tier=${this.tier.kind}, spanRange=${this.spanRange.toString()}, precedingWhitespaceStretchCapacity=${this.precedingWhitespaceStretchCapacity})`;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export function lineLimit(maxWidth, firstLineIndent, lineStartCluster) {
|
|
18
|
+
return (lineStartCluster === 0 ? maxWidth - firstLineIndent : maxWidth);
|
|
19
|
+
}
|
|
20
|
+
export class ProgressiveBreakDecisions {
|
|
21
|
+
static decideProgressiveBreak(lineStart, overflowAt, opportunities, adjustedClusters, lineLimit, cjkInterCharBoundaries, maxCjkStretchPerGap, sinoWesternBoundaries, sinoWesternStretchCap) {
|
|
22
|
+
adjustedClusters = adjustedClusters ?? null;
|
|
23
|
+
lineLimit = lineLimit ?? null;
|
|
24
|
+
cjkInterCharBoundaries = cjkInterCharBoundaries ?? null;
|
|
25
|
+
maxCjkStretchPerGap = maxCjkStretchPerGap ?? null;
|
|
26
|
+
sinoWesternBoundaries = sinoWesternBoundaries ?? null;
|
|
27
|
+
sinoWesternStretchCap = sinoWesternStretchCap ?? null;
|
|
28
|
+
const limit = lineLimit ?? Infinity;
|
|
29
|
+
const cjk = cjkInterCharBoundaries ?? SortedTable.setBuilder(SortedTable.compareInts).build();
|
|
30
|
+
const max = maxCjkStretchPerGap ?? Infinity;
|
|
31
|
+
const sino = sinoWesternBoundaries ?? SortedTable.setBuilder(SortedTable.compareInts).build();
|
|
32
|
+
const cap = sinoWesternStretchCap ?? 0.0;
|
|
33
|
+
const active = opportunities.get(overflowAt);
|
|
34
|
+
if (active === null) {
|
|
35
|
+
return overflowAt;
|
|
36
|
+
}
|
|
37
|
+
const bestPriority = ProgressiveBreakDecisions.progressiveBreakPriorityForLine(lineStart, overflowAt, (active), opportunities, adjustedClusters, (limit), (cjk), (max), (sino), (cap));
|
|
38
|
+
let best = null;
|
|
39
|
+
let boundary = lineStart + 1;
|
|
40
|
+
while (boundary <= overflowAt) {
|
|
41
|
+
const o = opportunities.get(boundary);
|
|
42
|
+
if (o !== null && o.spanRange.start === active.spanRange.start && o.spanRange.end === active.spanRange.end && ProgressiveBreakTierPriority.priority(o.tier) === bestPriority && (best === null || boundary > best)) {
|
|
43
|
+
best = boundary;
|
|
44
|
+
}
|
|
45
|
+
boundary++;
|
|
46
|
+
}
|
|
47
|
+
return (best === null ? overflowAt : best);
|
|
48
|
+
}
|
|
49
|
+
static progressiveCandidateAllowed(lineStart, rawGreedy, candidateEnd, opportunities, adjustedClusters, lineLimit, cjkInterCharBoundaries, maxCjkStretchPerGap, sinoWesternBoundaries, sinoWesternStretchCap) {
|
|
50
|
+
adjustedClusters = adjustedClusters ?? null;
|
|
51
|
+
lineLimit = lineLimit ?? null;
|
|
52
|
+
cjkInterCharBoundaries = cjkInterCharBoundaries ?? null;
|
|
53
|
+
maxCjkStretchPerGap = maxCjkStretchPerGap ?? null;
|
|
54
|
+
sinoWesternBoundaries = sinoWesternBoundaries ?? null;
|
|
55
|
+
sinoWesternStretchCap = sinoWesternStretchCap ?? null;
|
|
56
|
+
const limit = lineLimit ?? Infinity;
|
|
57
|
+
const cjk = cjkInterCharBoundaries ?? SortedTable.setBuilder(SortedTable.compareInts).build();
|
|
58
|
+
const max = maxCjkStretchPerGap ?? Infinity;
|
|
59
|
+
const sino = sinoWesternBoundaries ?? SortedTable.setBuilder(SortedTable.compareInts).build();
|
|
60
|
+
const cap = sinoWesternStretchCap ?? 0.0;
|
|
61
|
+
const active = opportunities.get(rawGreedy);
|
|
62
|
+
if (active === null) {
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
const candidate = opportunities.get(candidateEnd);
|
|
66
|
+
if (candidate === null) {
|
|
67
|
+
if (adjustedClusters === null || candidateEnd < 0 || candidateEnd >= adjustedClusters.length) {
|
|
68
|
+
return true;
|
|
69
|
+
}
|
|
70
|
+
const source = adjustedClusters[candidateEnd].range.start;
|
|
71
|
+
return source <= active.spanRange.start || source >= active.spanRange.end;
|
|
72
|
+
}
|
|
73
|
+
if (candidate.spanRange.start !== active.spanRange.start || candidate.spanRange.end !== active.spanRange.end) {
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
if (candidateEnd > rawGreedy) {
|
|
77
|
+
return ProgressiveBreakTierPriority.priority(candidate.tier) <= ProgressiveBreakTierPriority.priority(active.tier);
|
|
78
|
+
}
|
|
79
|
+
const selected = ProgressiveBreakDecisions.decideProgressiveBreak(lineStart, rawGreedy, opportunities, adjustedClusters, limit, cjk, max, sino, cap);
|
|
80
|
+
return candidateEnd === selected;
|
|
81
|
+
}
|
|
82
|
+
static progressiveBreakPriorityForLine(lineStart, overflowAt, active, opportunities, adjustedClusters, lineLimit, cjkInterCharBoundaries, maxCjkStretchPerGap, sinoWesternBoundaries, sinoWesternStretchCap) {
|
|
83
|
+
const prioritiesBuilder = SortedTable.setBuilder(SortedTable.compareInts);
|
|
84
|
+
let i = lineStart + 1;
|
|
85
|
+
while (i <= overflowAt) {
|
|
86
|
+
const o = opportunities.get(i);
|
|
87
|
+
if (o !== null && o.spanRange.start === active.spanRange.start && o.spanRange.end === active.spanRange.end) {
|
|
88
|
+
prioritiesBuilder.put(ProgressiveBreakTierPriority.priority(o.tier));
|
|
89
|
+
}
|
|
90
|
+
i++;
|
|
91
|
+
}
|
|
92
|
+
const priorities = prioritiesBuilder.build();
|
|
93
|
+
if (priorities.size() === 0) {
|
|
94
|
+
return ProgressiveBreakTierPriority.priority(active.tier);
|
|
95
|
+
}
|
|
96
|
+
if (adjustedClusters === null || !Number.isFinite(lineLimit) || !Number.isFinite(maxCjkStretchPerGap)) {
|
|
97
|
+
return priorities.at(0);
|
|
98
|
+
}
|
|
99
|
+
const stretch = maxCjkStretchPerGap * 0.0;
|
|
100
|
+
let least = priorities.at(0);
|
|
101
|
+
let density = Infinity;
|
|
102
|
+
let leastBoundary = lineStart + 1;
|
|
103
|
+
let pi = 0;
|
|
104
|
+
while (pi < priorities.size()) {
|
|
105
|
+
const priority = priorities.at(pi);
|
|
106
|
+
let b = 0;
|
|
107
|
+
i = lineStart + 1;
|
|
108
|
+
while (i <= overflowAt) {
|
|
109
|
+
const o2 = opportunities.get(i);
|
|
110
|
+
if (o2 !== null && o2.spanRange.start === active.spanRange.start && o2.spanRange.end === active.spanRange.end && ProgressiveBreakTierPriority.priority(o2.tier) === priority) {
|
|
111
|
+
b = i;
|
|
112
|
+
}
|
|
113
|
+
i++;
|
|
114
|
+
}
|
|
115
|
+
if (b === 0) {
|
|
116
|
+
pi++;
|
|
117
|
+
continue;
|
|
118
|
+
}
|
|
119
|
+
const d = ProgressiveBreakDecisions.progressiveCandidateStretchDensity(lineStart, b, opportunities, (adjustedClusters), lineLimit, cjkInterCharBoundaries, sinoWesternBoundaries, sinoWesternStretchCap);
|
|
120
|
+
if (d < density) {
|
|
121
|
+
density = d;
|
|
122
|
+
least = priority;
|
|
123
|
+
leastBoundary = b;
|
|
124
|
+
}
|
|
125
|
+
if (d <= stretch) {
|
|
126
|
+
return priority;
|
|
127
|
+
}
|
|
128
|
+
pi++;
|
|
129
|
+
}
|
|
130
|
+
let emergency = 0;
|
|
131
|
+
i = lineStart + 1;
|
|
132
|
+
while (i <= overflowAt) {
|
|
133
|
+
const o3 = opportunities.get(i);
|
|
134
|
+
if (o3 !== null && o3.spanRange.start === active.spanRange.start && o3.spanRange.end === active.spanRange.end && o3.tier.kind === "Emergency") {
|
|
135
|
+
emergency = i;
|
|
136
|
+
}
|
|
137
|
+
i++;
|
|
138
|
+
}
|
|
139
|
+
return (emergency !== 0 && emergency >= leastBoundary ? ProgressiveBreakTierPriority.priority(ProgressiveBreakTier.Emergency) : least);
|
|
140
|
+
}
|
|
141
|
+
static progressiveCandidateStretchDensity(lineStart, boundary, opportunities, adjustedClusters, lineLimit, cjkInterCharBoundaries, sinoWesternBoundaries, sinoWesternStretchCap) {
|
|
142
|
+
let width = 0.0;
|
|
143
|
+
let i = lineStart;
|
|
144
|
+
while (i < boundary) {
|
|
145
|
+
width += adjustedClusters[i].advance;
|
|
146
|
+
i++;
|
|
147
|
+
}
|
|
148
|
+
const deficit = Math.max(lineLimit - width, 0);
|
|
149
|
+
let technical = 0.0;
|
|
150
|
+
i = lineStart + 1;
|
|
151
|
+
while (i < boundary) {
|
|
152
|
+
const o = opportunities.get(i);
|
|
153
|
+
if (o !== null && o.tier.kind === "Whitespace") {
|
|
154
|
+
technical += o.precedingWhitespaceStretchCapacity;
|
|
155
|
+
}
|
|
156
|
+
i++;
|
|
157
|
+
}
|
|
158
|
+
let sino = 0;
|
|
159
|
+
i = lineStart + 1;
|
|
160
|
+
while (i < boundary) {
|
|
161
|
+
if (sinoWesternBoundaries.has(i)) {
|
|
162
|
+
sino++;
|
|
163
|
+
}
|
|
164
|
+
i++;
|
|
165
|
+
}
|
|
166
|
+
const cjkDeficit = Math.max(deficit - technical - sino * sinoWesternStretchCap, 0);
|
|
167
|
+
const active = opportunities.get(boundary);
|
|
168
|
+
let units = 0;
|
|
169
|
+
if (active !== null) {
|
|
170
|
+
i = lineStart;
|
|
171
|
+
while (i < boundary) {
|
|
172
|
+
const c = adjustedClusters[i];
|
|
173
|
+
if (c.range.start >= active.spanRange.start && c.range.end <= active.spanRange.end && !ProgressiveBreakDecisions.hasWhitespaceUnit(c.text)) {
|
|
174
|
+
units += c.text.length;
|
|
175
|
+
}
|
|
176
|
+
i++;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
const technicalGaps = Math.max(units - 1, 0);
|
|
180
|
+
if (technicalGaps > 0) {
|
|
181
|
+
return cjkDeficit / technicalGaps;
|
|
182
|
+
}
|
|
183
|
+
let gaps = 0;
|
|
184
|
+
i = lineStart + 1;
|
|
185
|
+
while (i < boundary) {
|
|
186
|
+
if (cjkInterCharBoundaries.has(i)) {
|
|
187
|
+
gaps++;
|
|
188
|
+
}
|
|
189
|
+
i++;
|
|
190
|
+
}
|
|
191
|
+
return (gaps === 0 ? cjkDeficit : cjkDeficit / gaps);
|
|
192
|
+
}
|
|
193
|
+
static hasWhitespaceUnit(s) {
|
|
194
|
+
let i = 0;
|
|
195
|
+
while (i < s.length) {
|
|
196
|
+
const c = (Number.isNaN(s.charCodeAt(i)) ? null : s.charCodeAt(i));
|
|
197
|
+
if (c >= 9 && c <= 13 || c >= 28 && c <= 32 || c === 160 || c === 5760 || c >= 8192 && c <= 8202 || c === 8232 || c === 8233 || c === 8239 || c === 8287 || c === 12288) {
|
|
198
|
+
return true;
|
|
199
|
+
}
|
|
200
|
+
i++;
|
|
201
|
+
}
|
|
202
|
+
return false;
|
|
203
|
+
}
|
|
204
|
+
static decideHyphenBreak(lineStart, overflowAt, adjustedClusters, lineLimit, hyphenBreakClusters, cjkInterCharBoundaries, maxCjkStretchPerGap, sinoWesternBoundaries, sinoWesternStretchCap) {
|
|
205
|
+
sinoWesternBoundaries = sinoWesternBoundaries ?? null;
|
|
206
|
+
sinoWesternStretchCap = sinoWesternStretchCap ?? null;
|
|
207
|
+
const sino = sinoWesternBoundaries ?? SortedTable.setBuilder(SortedTable.compareInts).build();
|
|
208
|
+
const cap = sinoWesternStretchCap ?? 0.0;
|
|
209
|
+
if (!hyphenBreakClusters.has(overflowAt)) {
|
|
210
|
+
return overflowAt;
|
|
211
|
+
}
|
|
212
|
+
let whole = overflowAt;
|
|
213
|
+
while (whole > lineStart && hyphenBreakClusters.has(whole)) {
|
|
214
|
+
whole--;
|
|
215
|
+
}
|
|
216
|
+
if (whole <= lineStart) {
|
|
217
|
+
return overflowAt;
|
|
218
|
+
}
|
|
219
|
+
let width = 0.0;
|
|
220
|
+
let k = lineStart;
|
|
221
|
+
while (k < whole) {
|
|
222
|
+
width += adjustedClusters[k].advance;
|
|
223
|
+
k++;
|
|
224
|
+
}
|
|
225
|
+
const deficit = lineLimit - width;
|
|
226
|
+
if (deficit <= 0) {
|
|
227
|
+
return whole;
|
|
228
|
+
}
|
|
229
|
+
let sw = 0;
|
|
230
|
+
k = lineStart + 1;
|
|
231
|
+
while (k < whole) {
|
|
232
|
+
if (sino.has(k)) {
|
|
233
|
+
sw++;
|
|
234
|
+
}
|
|
235
|
+
k++;
|
|
236
|
+
}
|
|
237
|
+
const cjk = Math.max(deficit - sw * cap, 0);
|
|
238
|
+
let gaps = 0;
|
|
239
|
+
k = lineStart + 1;
|
|
240
|
+
while (k < whole) {
|
|
241
|
+
if (cjkInterCharBoundaries.has(k)) {
|
|
242
|
+
gaps++;
|
|
243
|
+
}
|
|
244
|
+
k++;
|
|
245
|
+
}
|
|
246
|
+
return (gaps === 0 || cjk / gaps > maxCjkStretchPerGap ? overflowAt : whole);
|
|
247
|
+
}
|
|
248
|
+
static adjustBreakForLineEnd(breakAt, lineStart, forbiddenLineEndClusters) {
|
|
249
|
+
let b = breakAt;
|
|
250
|
+
while (b - 1 > lineStart && forbiddenLineEndClusters.has(b - 1)) {
|
|
251
|
+
b--;
|
|
252
|
+
}
|
|
253
|
+
return b;
|
|
254
|
+
}
|
|
255
|
+
static adjustBreakForUnbreakables(breakAt, lineStart, unbreakableRanges) {
|
|
256
|
+
let candidate = breakAt;
|
|
257
|
+
while (true) {
|
|
258
|
+
const containing = unbreakableRanges.containingOrNull(candidate);
|
|
259
|
+
if (containing === null) {
|
|
260
|
+
return candidate;
|
|
261
|
+
}
|
|
262
|
+
if (containing.start <= lineStart) {
|
|
263
|
+
return breakAt;
|
|
264
|
+
}
|
|
265
|
+
candidate = containing.start;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
export class ShrinkOpportunity {
|
|
270
|
+
clusterIndex;
|
|
271
|
+
tier;
|
|
272
|
+
capacity;
|
|
273
|
+
channel;
|
|
274
|
+
lineEndOnly;
|
|
275
|
+
constructor(clusterIndex, tier, capacity, channel, lineEndOnly = null) {
|
|
276
|
+
this.clusterIndex = clusterIndex;
|
|
277
|
+
this.tier = tier;
|
|
278
|
+
this.capacity = capacity;
|
|
279
|
+
this.channel = channel;
|
|
280
|
+
this.lineEndOnly = lineEndOnly ?? false;
|
|
281
|
+
}
|
|
282
|
+
toString() {
|
|
283
|
+
return `ShrinkOpportunity(clusterIndex=${this.clusterIndex}, tier=${this.tier}, capacity=${this.capacity}, channel=${this.channel.kind}, lineEndOnly=${this.lineEndOnly})`;
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
export class UnbreakableRanges {
|
|
287
|
+
ranges;
|
|
288
|
+
byStart;
|
|
289
|
+
startsSorted;
|
|
290
|
+
prefixMaxLast;
|
|
291
|
+
static Empty = new UnbreakableRanges([]);
|
|
292
|
+
constructor(ranges) {
|
|
293
|
+
this.ranges = ranges;
|
|
294
|
+
this.byStart = ranges.slice();
|
|
295
|
+
let s0 = 1;
|
|
296
|
+
while (s0 < this.byStart.length) {
|
|
297
|
+
const key = this.byStart[s0];
|
|
298
|
+
let s1 = s0;
|
|
299
|
+
while (s1 > 0 && this.byStart[s1 - 1].start > key.start) {
|
|
300
|
+
this.byStart[s1] = this.byStart[s1 - 1];
|
|
301
|
+
s1--;
|
|
302
|
+
}
|
|
303
|
+
this.byStart[s1] = key;
|
|
304
|
+
s0++;
|
|
305
|
+
}
|
|
306
|
+
this.startsSorted = [];
|
|
307
|
+
let si = 0;
|
|
308
|
+
while (si < this.byStart.length) {
|
|
309
|
+
this.startsSorted.push(this.byStart[si].start);
|
|
310
|
+
si++;
|
|
311
|
+
}
|
|
312
|
+
this.prefixMaxLast = [];
|
|
313
|
+
let running = -2147483648;
|
|
314
|
+
let sj = 0;
|
|
315
|
+
while (sj < this.byStart.length) {
|
|
316
|
+
running = Math.trunc(Math.max(running, this.byStart[sj].end));
|
|
317
|
+
this.prefixMaxLast.push(running);
|
|
318
|
+
sj++;
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
containsBoundary(candidate) {
|
|
322
|
+
let low = 0;
|
|
323
|
+
let high = this.startsSorted.length;
|
|
324
|
+
while (low < high) {
|
|
325
|
+
const mid = low + high >> 1;
|
|
326
|
+
if (this.startsSorted[mid] < candidate) {
|
|
327
|
+
low = mid + 1;
|
|
328
|
+
}
|
|
329
|
+
else {
|
|
330
|
+
high = mid;
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
return low > 0 && this.prefixMaxLast[low - 1] >= candidate;
|
|
334
|
+
}
|
|
335
|
+
containingOrNull(candidate) {
|
|
336
|
+
if (!this.containsBoundary(candidate)) {
|
|
337
|
+
return null;
|
|
338
|
+
}
|
|
339
|
+
let ri = 0;
|
|
340
|
+
while (ri < this.ranges.length) {
|
|
341
|
+
const r = this.ranges[ri];
|
|
342
|
+
if (candidate > r.start && candidate <= r.end) {
|
|
343
|
+
return r;
|
|
344
|
+
}
|
|
345
|
+
ri++;
|
|
346
|
+
}
|
|
347
|
+
return null;
|
|
348
|
+
}
|
|
349
|
+
containingFromClosedStartOrNull(index) {
|
|
350
|
+
let low = 0;
|
|
351
|
+
let high = this.startsSorted.length;
|
|
352
|
+
while (low < high) {
|
|
353
|
+
const mid = low + high >> 1;
|
|
354
|
+
if (this.startsSorted[mid] <= index) {
|
|
355
|
+
low = mid + 1;
|
|
356
|
+
}
|
|
357
|
+
else {
|
|
358
|
+
high = mid;
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
if (low === 0 || this.prefixMaxLast[low - 1] <= index) {
|
|
362
|
+
return null;
|
|
363
|
+
}
|
|
364
|
+
let rj = 0;
|
|
365
|
+
while (rj < this.ranges.length) {
|
|
366
|
+
const r = this.ranges[rj];
|
|
367
|
+
if (index >= r.start && index <= r.end && r.end > index) {
|
|
368
|
+
return r;
|
|
369
|
+
}
|
|
370
|
+
rj++;
|
|
371
|
+
}
|
|
372
|
+
return null;
|
|
373
|
+
}
|
|
374
|
+
}
|
|
375
|
+
export const ProgressiveBreakTier = Object.freeze({
|
|
376
|
+
Whitespace: Object.freeze({ kind: "Whitespace" }),
|
|
377
|
+
Structural: Object.freeze({ kind: "Structural" }),
|
|
378
|
+
Syllable: Object.freeze({ kind: "Syllable" }),
|
|
379
|
+
WholeToken: Object.freeze({ kind: "WholeToken" }),
|
|
380
|
+
Emergency: Object.freeze({ kind: "Emergency" })
|
|
381
|
+
});
|
|
382
|
+
export function compareProgressiveBreakTier(a, b) {
|
|
383
|
+
if (a === b)
|
|
384
|
+
return 0;
|
|
385
|
+
if (a.kind === "Whitespace")
|
|
386
|
+
return 0 - (b.kind === "Whitespace" ? 0 : 0);
|
|
387
|
+
if (a.kind === "Structural")
|
|
388
|
+
return 1 - (b.kind === "Structural" ? 1 : 0);
|
|
389
|
+
if (a.kind === "Syllable")
|
|
390
|
+
return 2 - (b.kind === "Syllable" ? 2 : 0);
|
|
391
|
+
if (a.kind === "WholeToken")
|
|
392
|
+
return 3 - (b.kind === "WholeToken" ? 3 : 0);
|
|
393
|
+
if (a.kind === "Emergency")
|
|
394
|
+
return 4 - (b.kind === "Emergency" ? 4 : 0);
|
|
395
|
+
return 0;
|
|
396
|
+
}
|
|
397
|
+
export const ShrinkChannel = Object.freeze({
|
|
398
|
+
TrailingGlue: Object.freeze({ kind: "TrailingGlue" }),
|
|
399
|
+
LeadingGlue: Object.freeze({ kind: "LeadingGlue" }),
|
|
400
|
+
LeadingAndTrailingGlue: Object.freeze({ kind: "LeadingAndTrailingGlue" }),
|
|
401
|
+
RawAdvance: Object.freeze({ kind: "RawAdvance" })
|
|
402
|
+
});
|
|
403
|
+
export function compareShrinkChannel(a, b) {
|
|
404
|
+
if (a === b)
|
|
405
|
+
return 0;
|
|
406
|
+
if (a.kind === "TrailingGlue")
|
|
407
|
+
return 0 - (b.kind === "TrailingGlue" ? 0 : 0);
|
|
408
|
+
if (a.kind === "LeadingGlue")
|
|
409
|
+
return 1 - (b.kind === "LeadingGlue" ? 1 : 0);
|
|
410
|
+
if (a.kind === "LeadingAndTrailingGlue")
|
|
411
|
+
return 2 - (b.kind === "LeadingAndTrailingGlue" ? 2 : 0);
|
|
412
|
+
if (a.kind === "RawAdvance")
|
|
413
|
+
return 3 - (b.kind === "RawAdvance" ? 3 : 0);
|
|
414
|
+
return 0;
|
|
415
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { ProgressiveBreakTier } from "./ProgressiveBreakDecisions.js";
|
|
3
|
+
export class ProgressiveBreakTierPriority {
|
|
4
|
+
static priority(tier) {
|
|
5
|
+
switch (tier.kind) {
|
|
6
|
+
case "Whitespace":
|
|
7
|
+
return 0;
|
|
8
|
+
case "Structural":
|
|
9
|
+
return 1;
|
|
10
|
+
case "Syllable":
|
|
11
|
+
return 2;
|
|
12
|
+
case "WholeToken":
|
|
13
|
+
return 3;
|
|
14
|
+
case "Emergency":
|
|
15
|
+
return 4;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
static fromPriority(value) {
|
|
19
|
+
if (value === 0) {
|
|
20
|
+
return ProgressiveBreakTier.Whitespace;
|
|
21
|
+
}
|
|
22
|
+
if (value === 1) {
|
|
23
|
+
return ProgressiveBreakTier.Structural;
|
|
24
|
+
}
|
|
25
|
+
if (value === 2) {
|
|
26
|
+
return ProgressiveBreakTier.Syllable;
|
|
27
|
+
}
|
|
28
|
+
if (value === 3) {
|
|
29
|
+
return ProgressiveBreakTier.WholeToken;
|
|
30
|
+
}
|
|
31
|
+
return ProgressiveBreakTier.Emergency;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { Cluster } from "./../core/Cluster.js";
|
|
2
|
+
import { ClusterGeometryDecisionInfo } from "./../core/ClusterGeometryDecisionInfo.js";
|
|
3
|
+
import { type InlineAttachment } from "./../core/InlineAttachment.js";
|
|
4
|
+
import { IntRange } from "./../core/IntRange.js";
|
|
5
|
+
import { LineEdgeTrimDecisionInfo } from "./../core/LineEdgeTrimDecisionInfo.js";
|
|
6
|
+
import { SpacingDecisionInfo } from "./../core/SpacingDecisionInfo.js";
|
|
7
|
+
import { TextRange } from "./../core/TextRange.js";
|
|
8
|
+
import { type LineCandidate } from "./LineOptimization.js";
|
|
9
|
+
import { type PunctuationAnchor, type PunctuationAtom, type PunctuationSpacingCompressionResult } from "./PunctuationModel.js";
|
|
10
|
+
import { SortedMapTable } from "../../../runtime.js";
|
|
11
|
+
export declare class PunctuationGeometryLedger {
|
|
12
|
+
readonly naturalClusters: Cluster[];
|
|
13
|
+
readonly geometries: SortedMapTable<number, PunctuationClusterGeometry>;
|
|
14
|
+
readonly budgets: SortedMapTable<number, GlueBudget>;
|
|
15
|
+
readonly justificationDeltaByCluster: SortedMapTable<number, number>;
|
|
16
|
+
readonly rawEdgeTrimByCluster: SortedMapTable<number, number>;
|
|
17
|
+
readonly rubySpreadByCluster: SortedMapTable<number, number>;
|
|
18
|
+
readonly inlineBoxAdvanceByCluster: SortedMapTable<number, number>;
|
|
19
|
+
readonly attachedInlineTrailingGlueByCluster: SortedMapTable<number, number>;
|
|
20
|
+
constructor(naturalClusters: Cluster[], geometries: SortedMapTable<number, PunctuationClusterGeometry>, budgets: SortedMapTable<number, GlueBudget>, justificationDeltaByCluster?: SortedMapTable<number, number> | null, rawEdgeTrimByCluster?: SortedMapTable<number, number> | null, rubySpreadByCluster?: SortedMapTable<number, number> | null, inlineBoxAdvanceByCluster?: SortedMapTable<number, number> | null, attachedInlineTrailingGlueByCluster?: SortedMapTable<number, number> | null);
|
|
21
|
+
resolveClusters(): Cluster[];
|
|
22
|
+
private resolvedAdvance;
|
|
23
|
+
withInlineBoxAdvances(advanceByCluster: SortedMapTable<number, number>): PunctuationGeometryLedger;
|
|
24
|
+
withRubySpread(spreadByCluster: SortedMapTable<number, number>): PunctuationGeometryLedger;
|
|
25
|
+
withRawEdgeTrims(trimByCluster: SortedMapTable<number, number>): PunctuationGeometryLedger;
|
|
26
|
+
addJustificationDeltas(deltaByCluster: SortedMapTable<number, number>): PunctuationGeometryLedger;
|
|
27
|
+
private consumeSide;
|
|
28
|
+
consumeLeadingByCluster(consumptionByCluster: SortedMapTable<number, number>): PunctuationGeometryLedger;
|
|
29
|
+
consumeTrailingByCluster(consumptionByCluster: SortedMapTable<number, number>): PunctuationGeometryLedger;
|
|
30
|
+
glueCapacities(): SortedMapTable<number, GlueCapacity>;
|
|
31
|
+
toDecisionInfo(): ClusterGeometryDecisionInfo[];
|
|
32
|
+
private consumeSpacing;
|
|
33
|
+
consumeLineEdgeGlue(lines: LineCandidate[], forceLineEndHalfWidth?: boolean | null): LineEdgeTrimResult;
|
|
34
|
+
resolveAttachedInlinePunctuationBoundaries(inlineAttachments: InlineAttachment[], punctuationAtoms: PunctuationAtom[], em: number): AttachedInlinePunctuationBoundaryResult;
|
|
35
|
+
toString(): string;
|
|
36
|
+
static emptyF(): SortedMapTable<number, number>;
|
|
37
|
+
private static cloneF;
|
|
38
|
+
private static cloneB;
|
|
39
|
+
private static replace;
|
|
40
|
+
static from(naturalClusters: Cluster[], punctuationAtoms: PunctuationAtom[], spacingPlan: PunctuationSpacingCompressionResult): PunctuationGeometryLedger;
|
|
41
|
+
private static putB;
|
|
42
|
+
private static putF;
|
|
43
|
+
static isInside(self: TextRange, other: TextRange): boolean;
|
|
44
|
+
static clusterIndexRangeFor(self: Cluster[], r: TextRange): IntRange | null;
|
|
45
|
+
}
|
|
46
|
+
export declare class AttachedInlinePunctuationBoundaryResult {
|
|
47
|
+
readonly geometry: PunctuationGeometryLedger;
|
|
48
|
+
readonly trailingGlueByCluster: SortedMapTable<number, number>;
|
|
49
|
+
readonly decisions: SpacingDecisionInfo[];
|
|
50
|
+
constructor(geometry: PunctuationGeometryLedger, trailingGlueByCluster: SortedMapTable<number, number>, decisions: SpacingDecisionInfo[]);
|
|
51
|
+
toString(): string;
|
|
52
|
+
}
|
|
53
|
+
export declare class PunctuationClusterGeometry {
|
|
54
|
+
readonly range: TextRange;
|
|
55
|
+
readonly sourceText: string;
|
|
56
|
+
readonly displayText: string;
|
|
57
|
+
readonly baseAdvance: number;
|
|
58
|
+
readonly bodyWidth: number;
|
|
59
|
+
readonly leadingGlueNatural: number;
|
|
60
|
+
readonly trailingGlueNatural: number;
|
|
61
|
+
readonly leadingGlueInitiallyConsumed: number;
|
|
62
|
+
readonly trailingGlueInitiallyConsumed: number;
|
|
63
|
+
readonly glyphInlineShift: number;
|
|
64
|
+
readonly glyphPlacementReason: string | null;
|
|
65
|
+
readonly anchor: PunctuationAnchor | null;
|
|
66
|
+
readonly reason: string;
|
|
67
|
+
constructor(range: TextRange, sourceText: string, displayText: string, baseAdvance: number, bodyWidth: number, leadingGlueNatural: number, trailingGlueNatural: number, leadingGlueInitiallyConsumed: number, trailingGlueInitiallyConsumed: number, glyphInlineShift: number, glyphPlacementReason: string | null, anchor: PunctuationAnchor | null, reason: string);
|
|
68
|
+
toString(): string;
|
|
69
|
+
}
|
|
70
|
+
export declare class GlueBudget {
|
|
71
|
+
readonly leadingNatural: number;
|
|
72
|
+
readonly leadingConsumed: number;
|
|
73
|
+
readonly trailingNatural: number;
|
|
74
|
+
readonly trailingConsumed: number;
|
|
75
|
+
constructor(leadingNatural: number, leadingConsumed: number, trailingNatural: number, trailingConsumed: number);
|
|
76
|
+
get leadingRemaining(): number;
|
|
77
|
+
get_leadingRemaining(): number;
|
|
78
|
+
get trailingRemaining(): number;
|
|
79
|
+
get_trailingRemaining(): number;
|
|
80
|
+
toString(): string;
|
|
81
|
+
}
|
|
82
|
+
export declare class LineEdgeTrimResult {
|
|
83
|
+
readonly geometry: PunctuationGeometryLedger;
|
|
84
|
+
readonly decisions: LineEdgeTrimDecisionInfo[];
|
|
85
|
+
constructor(g: PunctuationGeometryLedger, d: LineEdgeTrimDecisionInfo[]);
|
|
86
|
+
}
|
|
87
|
+
export declare class GlueCapacity {
|
|
88
|
+
readonly leading: number;
|
|
89
|
+
readonly trailing: number;
|
|
90
|
+
readonly paired: boolean;
|
|
91
|
+
constructor(l: number, t: number, p: boolean);
|
|
92
|
+
}
|