@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,11 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export const LineBreakPolicy = Object.freeze({
|
|
3
|
+
ProgressiveTechnical: Object.freeze({ kind: "ProgressiveTechnical" })
|
|
4
|
+
});
|
|
5
|
+
export function compareLineBreakPolicy(a, b) {
|
|
6
|
+
if (a === b)
|
|
7
|
+
return 0;
|
|
8
|
+
if (a.kind === "ProgressiveTechnical")
|
|
9
|
+
return 0 - (b.kind === "ProgressiveTechnical" ? 0 : 0);
|
|
10
|
+
return 0;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type LineBreakPolicy } from "./LineBreakPolicy.js";
|
|
2
|
+
import { type TextRange } from "./TextRange.js";
|
|
3
|
+
export declare class LineBreakSpan {
|
|
4
|
+
readonly range: TextRange;
|
|
5
|
+
readonly policy: LineBreakPolicy;
|
|
6
|
+
constructor(range: TextRange, policy: LineBreakPolicy);
|
|
7
|
+
toString(): string;
|
|
8
|
+
}
|
|
9
|
+
export declare function LineBreakSpanpolicyOrder(v: LineBreakPolicy): number;
|
|
10
|
+
export declare function compareLineBreakSpan(a: LineBreakSpan, b: LineBreakSpan): number;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { compareTextRange } from "./TextRange.js";
|
|
3
|
+
export class LineBreakSpan {
|
|
4
|
+
range;
|
|
5
|
+
policy;
|
|
6
|
+
constructor(range, policy) {
|
|
7
|
+
this.range = range;
|
|
8
|
+
this.policy = policy;
|
|
9
|
+
}
|
|
10
|
+
toString() {
|
|
11
|
+
return `LineBreakSpan(range=${this.range.toString()}, policy=${this.policy.kind})`;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export function LineBreakSpanpolicyOrder(v) {
|
|
15
|
+
if (v.kind === "ProgressiveTechnical")
|
|
16
|
+
return 0;
|
|
17
|
+
return 0;
|
|
18
|
+
}
|
|
19
|
+
export function compareLineBreakSpan(a, b) {
|
|
20
|
+
if (a === b)
|
|
21
|
+
return 0;
|
|
22
|
+
{
|
|
23
|
+
const cmp = compareTextRange(a.range, b.range);
|
|
24
|
+
if (cmp !== 0)
|
|
25
|
+
return cmp;
|
|
26
|
+
}
|
|
27
|
+
if (LineBreakSpanpolicyOrder(a.policy) !== LineBreakSpanpolicyOrder(b.policy))
|
|
28
|
+
return LineBreakSpanpolicyOrder(a.policy) - LineBreakSpanpolicyOrder(b.policy);
|
|
29
|
+
return 0;
|
|
30
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class LineDebugInfo {
|
|
3
|
+
repair;
|
|
4
|
+
notes;
|
|
5
|
+
static Default = new LineDebugInfo(null);
|
|
6
|
+
constructor(repair, notes = null) {
|
|
7
|
+
this.repair = repair;
|
|
8
|
+
this.notes = notes ?? [];
|
|
9
|
+
}
|
|
10
|
+
toString() {
|
|
11
|
+
return `LineDebugInfo(repair=${this.repair}, notes=${(() => { let out = "["; const n = this.notes.length; for (let i = 0; i < n; i += 1) {
|
|
12
|
+
if (i > 0) {
|
|
13
|
+
out += ", ";
|
|
14
|
+
}
|
|
15
|
+
out += this.notes[i];
|
|
16
|
+
} out += "]"; return out; })()})`;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type LineRepairCandidateInfo } from "./LineRepairCandidateInfo.js";
|
|
2
|
+
import { type LineRepairDecisionInfo } from "./LineRepairDecisionInfo.js";
|
|
3
|
+
import { type TextRange } from "./TextRange.js";
|
|
4
|
+
export declare class LineDecisionInfo {
|
|
5
|
+
readonly range: TextRange;
|
|
6
|
+
readonly kind: string;
|
|
7
|
+
readonly repair: string | null;
|
|
8
|
+
readonly repairPenalty: number;
|
|
9
|
+
readonly repairDecision: LineRepairDecisionInfo | null;
|
|
10
|
+
readonly repairCandidates: readonly LineRepairCandidateInfo[];
|
|
11
|
+
readonly notes: readonly string[];
|
|
12
|
+
constructor(range: TextRange, kind: string, repair?: string | null, repairPenalty?: number | null, repairDecision?: LineRepairDecisionInfo | null, repairCandidates?: LineRepairCandidateInfo[] | null, notes?: string[] | null);
|
|
13
|
+
toString(): string;
|
|
14
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class LineDecisionInfo {
|
|
3
|
+
range;
|
|
4
|
+
kind;
|
|
5
|
+
repair;
|
|
6
|
+
repairPenalty;
|
|
7
|
+
repairDecision;
|
|
8
|
+
repairCandidates;
|
|
9
|
+
notes;
|
|
10
|
+
constructor(range, kind, repair = null, repairPenalty = null, repairDecision = null, repairCandidates = null, notes = null) {
|
|
11
|
+
this.range = range;
|
|
12
|
+
this.kind = kind;
|
|
13
|
+
this.repair = repair ?? null;
|
|
14
|
+
this.repairPenalty = repairPenalty ?? 0;
|
|
15
|
+
this.repairDecision = repairDecision ?? null;
|
|
16
|
+
this.repairCandidates = repairCandidates ?? [];
|
|
17
|
+
this.notes = notes ?? [];
|
|
18
|
+
}
|
|
19
|
+
toString() {
|
|
20
|
+
return `LineDecisionInfo(range=${this.range.toString()}, kind=${this.kind}, repair=${this.repair}, repairPenalty=${this.repairPenalty}, repairDecision=${(this.repairDecision === null ? "null" : this.repairDecision.toString())}, repairCandidates=${(() => { let out = "["; const n = this.repairCandidates.length; for (let i = 0; i < n; i += 1) {
|
|
21
|
+
if (i > 0) {
|
|
22
|
+
out += ", ";
|
|
23
|
+
}
|
|
24
|
+
out += this.repairCandidates[i].toString();
|
|
25
|
+
} out += "]"; return out; })()}, notes=${(() => { let out = "["; const n = this.notes.length; for (let i = 0; i < n; i += 1) {
|
|
26
|
+
if (i > 0) {
|
|
27
|
+
out += ", ";
|
|
28
|
+
}
|
|
29
|
+
out += this.notes[i];
|
|
30
|
+
} out += "]"; return out; })()})`;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type TextRange } from "./TextRange.js";
|
|
2
|
+
export declare class LineEdgeTrimDecisionInfo {
|
|
3
|
+
readonly lineRange: TextRange;
|
|
4
|
+
readonly clusterRange: TextRange;
|
|
5
|
+
readonly side: string;
|
|
6
|
+
readonly trimAmount: number;
|
|
7
|
+
readonly consumedBefore: number;
|
|
8
|
+
readonly naturalGlue: number;
|
|
9
|
+
readonly reason: string;
|
|
10
|
+
constructor(lineRange: TextRange, clusterRange: TextRange, side: string, trimAmount: number, consumedBefore: number, naturalGlue: number, reason: string);
|
|
11
|
+
toString(): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class LineEdgeTrimDecisionInfo {
|
|
3
|
+
lineRange;
|
|
4
|
+
clusterRange;
|
|
5
|
+
side;
|
|
6
|
+
trimAmount;
|
|
7
|
+
consumedBefore;
|
|
8
|
+
naturalGlue;
|
|
9
|
+
reason;
|
|
10
|
+
constructor(lineRange, clusterRange, side, trimAmount, consumedBefore, naturalGlue, reason) {
|
|
11
|
+
this.lineRange = lineRange;
|
|
12
|
+
this.clusterRange = clusterRange;
|
|
13
|
+
this.side = side;
|
|
14
|
+
this.trimAmount = trimAmount;
|
|
15
|
+
this.consumedBefore = consumedBefore;
|
|
16
|
+
this.naturalGlue = naturalGlue;
|
|
17
|
+
this.reason = reason;
|
|
18
|
+
}
|
|
19
|
+
toString() {
|
|
20
|
+
return `LineEdgeTrimDecisionInfo(lineRange=${this.lineRange.toString()}, clusterRange=${this.clusterRange.toString()}, side=${this.side}, trimAmount=${this.trimAmount}, consumedBefore=${this.consumedBefore}, naturalGlue=${this.naturalGlue}, reason=${this.reason})`;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface AutoWrap {
|
|
2
|
+
readonly kind: "AutoWrap";
|
|
3
|
+
}
|
|
4
|
+
export interface MandatoryBreak {
|
|
5
|
+
readonly kind: "MandatoryBreak";
|
|
6
|
+
}
|
|
7
|
+
export interface ParagraphEnd {
|
|
8
|
+
readonly kind: "ParagraphEnd";
|
|
9
|
+
}
|
|
10
|
+
export type LineEndReason = AutoWrap | MandatoryBreak | ParagraphEnd;
|
|
11
|
+
export declare const LineEndReason: Readonly<{
|
|
12
|
+
AutoWrap: Readonly<AutoWrap>;
|
|
13
|
+
MandatoryBreak: Readonly<MandatoryBreak>;
|
|
14
|
+
ParagraphEnd: Readonly<ParagraphEnd>;
|
|
15
|
+
}>;
|
|
16
|
+
export declare function compareLineEndReason(a: LineEndReason, b: LineEndReason): number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export const LineEndReason = Object.freeze({
|
|
3
|
+
AutoWrap: Object.freeze({ kind: "AutoWrap" }),
|
|
4
|
+
MandatoryBreak: Object.freeze({ kind: "MandatoryBreak" }),
|
|
5
|
+
ParagraphEnd: Object.freeze({ kind: "ParagraphEnd" })
|
|
6
|
+
});
|
|
7
|
+
export function compareLineEndReason(a, b) {
|
|
8
|
+
if (a === b)
|
|
9
|
+
return 0;
|
|
10
|
+
if (a.kind === "AutoWrap")
|
|
11
|
+
return 0 - (b.kind === "AutoWrap" ? 0 : 0);
|
|
12
|
+
if (a.kind === "MandatoryBreak")
|
|
13
|
+
return 1 - (b.kind === "MandatoryBreak" ? 1 : 0);
|
|
14
|
+
if (a.kind === "ParagraphEnd")
|
|
15
|
+
return 2 - (b.kind === "ParagraphEnd" ? 2 : 0);
|
|
16
|
+
return 0;
|
|
17
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type LastLineAlignment } from "./LastLineAlignment.js";
|
|
2
|
+
export declare class LineLengthGrid {
|
|
3
|
+
readonly enabled: boolean;
|
|
4
|
+
readonly bodyAlignment: LastLineAlignment | null;
|
|
5
|
+
constructor(enabled?: boolean | null, bodyAlignment?: LastLineAlignment | null);
|
|
6
|
+
toString(): string;
|
|
7
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class LineLengthGrid {
|
|
3
|
+
enabled;
|
|
4
|
+
bodyAlignment;
|
|
5
|
+
constructor(enabled = null, bodyAlignment = null) {
|
|
6
|
+
this.enabled = enabled ?? true;
|
|
7
|
+
this.bodyAlignment = bodyAlignment ?? null;
|
|
8
|
+
}
|
|
9
|
+
toString() {
|
|
10
|
+
return `LineLengthGrid(enabled=${this.enabled}, bodyAlignment=${(this.bodyAlignment === null ? "null" : this.bodyAlignment.kind)})`;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare class LineLengthGridDecisionInfo {
|
|
2
|
+
readonly enabled: boolean;
|
|
3
|
+
readonly containerWidth: number;
|
|
4
|
+
readonly fontSize: number;
|
|
5
|
+
readonly cells: number;
|
|
6
|
+
readonly measure: number;
|
|
7
|
+
readonly slack: number;
|
|
8
|
+
readonly bodyAlignment: string;
|
|
9
|
+
readonly bodyOffset: number;
|
|
10
|
+
readonly reason: string;
|
|
11
|
+
constructor(enabled: boolean, containerWidth: number, fontSize: number, cells: number, measure: number, slack: number, bodyAlignment: string, bodyOffset: number, reason: string);
|
|
12
|
+
toString(): string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class LineLengthGridDecisionInfo {
|
|
3
|
+
enabled;
|
|
4
|
+
containerWidth;
|
|
5
|
+
fontSize;
|
|
6
|
+
cells;
|
|
7
|
+
measure;
|
|
8
|
+
slack;
|
|
9
|
+
bodyAlignment;
|
|
10
|
+
bodyOffset;
|
|
11
|
+
reason;
|
|
12
|
+
constructor(enabled, containerWidth, fontSize, cells, measure, slack, bodyAlignment, bodyOffset, reason) {
|
|
13
|
+
this.enabled = enabled;
|
|
14
|
+
this.containerWidth = containerWidth;
|
|
15
|
+
this.fontSize = fontSize;
|
|
16
|
+
this.cells = cells;
|
|
17
|
+
this.measure = measure;
|
|
18
|
+
this.slack = slack;
|
|
19
|
+
this.bodyAlignment = bodyAlignment;
|
|
20
|
+
this.bodyOffset = bodyOffset;
|
|
21
|
+
this.reason = reason;
|
|
22
|
+
}
|
|
23
|
+
toString() {
|
|
24
|
+
return `LineLengthGridDecisionInfo(enabled=${this.enabled}, containerWidth=${this.containerWidth}, fontSize=${this.fontSize}, cells=${this.cells}, measure=${this.measure}, slack=${this.slack}, bodyAlignment=${this.bodyAlignment}, bodyOffset=${this.bodyOffset}, reason=${this.reason})`;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type TextRange } from "./TextRange.js";
|
|
2
|
+
export declare class LineRepairAllocationInfo {
|
|
3
|
+
readonly clusterRange: TextRange;
|
|
4
|
+
readonly shrink: number;
|
|
5
|
+
readonly availableCapacity: number;
|
|
6
|
+
constructor(clusterRange: TextRange, shrink: number, availableCapacity: number);
|
|
7
|
+
toString(): string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class LineRepairAllocationInfo {
|
|
3
|
+
clusterRange;
|
|
4
|
+
shrink;
|
|
5
|
+
availableCapacity;
|
|
6
|
+
constructor(clusterRange, shrink, availableCapacity) {
|
|
7
|
+
this.clusterRange = clusterRange;
|
|
8
|
+
this.shrink = shrink;
|
|
9
|
+
this.availableCapacity = availableCapacity;
|
|
10
|
+
}
|
|
11
|
+
toString() {
|
|
12
|
+
return `LineRepairAllocationInfo(clusterRange=${this.clusterRange.toString()}, shrink=${this.shrink}, availableCapacity=${this.availableCapacity})`;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { type TextRange } from "./TextRange.js";
|
|
2
|
+
export declare class LineRepairCandidateInfo {
|
|
3
|
+
readonly kind: string;
|
|
4
|
+
readonly reasonCode: string;
|
|
5
|
+
readonly offenderRange: TextRange;
|
|
6
|
+
readonly penalty: number;
|
|
7
|
+
readonly accepted: boolean;
|
|
8
|
+
readonly rejectionReason: string | null;
|
|
9
|
+
readonly targetClusterIndex: number | null;
|
|
10
|
+
readonly carriedClusterIndex: number | null;
|
|
11
|
+
readonly shrink: number;
|
|
12
|
+
readonly requiredShrink: number;
|
|
13
|
+
readonly availableCapacity: number;
|
|
14
|
+
constructor(kind: string, reasonCode: string, offenderRange: TextRange, penalty: number, accepted: boolean, rejectionReason?: string | null, targetClusterIndex?: number | null, carriedClusterIndex?: number | null, shrink?: number | null, requiredShrink?: number | null, availableCapacity?: number | null);
|
|
15
|
+
toString(): string;
|
|
16
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class LineRepairCandidateInfo {
|
|
3
|
+
kind;
|
|
4
|
+
reasonCode;
|
|
5
|
+
offenderRange;
|
|
6
|
+
penalty;
|
|
7
|
+
accepted;
|
|
8
|
+
rejectionReason;
|
|
9
|
+
targetClusterIndex;
|
|
10
|
+
carriedClusterIndex;
|
|
11
|
+
shrink;
|
|
12
|
+
requiredShrink;
|
|
13
|
+
availableCapacity;
|
|
14
|
+
constructor(kind, reasonCode, offenderRange, penalty, accepted, rejectionReason = null, targetClusterIndex = null, carriedClusterIndex = null, shrink = null, requiredShrink = null, availableCapacity = null) {
|
|
15
|
+
this.kind = kind;
|
|
16
|
+
this.reasonCode = reasonCode;
|
|
17
|
+
this.offenderRange = offenderRange;
|
|
18
|
+
this.penalty = penalty;
|
|
19
|
+
this.accepted = accepted;
|
|
20
|
+
this.rejectionReason = rejectionReason ?? null;
|
|
21
|
+
this.targetClusterIndex = targetClusterIndex ?? null;
|
|
22
|
+
this.carriedClusterIndex = carriedClusterIndex ?? null;
|
|
23
|
+
this.shrink = shrink ?? 0.0;
|
|
24
|
+
this.requiredShrink = requiredShrink ?? 0.0;
|
|
25
|
+
this.availableCapacity = availableCapacity ?? 0.0;
|
|
26
|
+
}
|
|
27
|
+
toString() {
|
|
28
|
+
return `LineRepairCandidateInfo(kind=${this.kind}, reasonCode=${this.reasonCode}, offenderRange=${this.offenderRange.toString()}, penalty=${this.penalty}, accepted=${this.accepted}, rejectionReason=${this.rejectionReason}, targetClusterIndex=${this.targetClusterIndex}, carriedClusterIndex=${this.carriedClusterIndex}, shrink=${this.shrink}, requiredShrink=${this.requiredShrink}, availableCapacity=${this.availableCapacity})`;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type LineRepairAllocationInfo } from "./LineRepairAllocationInfo.js";
|
|
2
|
+
import { type TextRange } from "./TextRange.js";
|
|
3
|
+
export declare class LineRepairDecisionInfo {
|
|
4
|
+
readonly kind: string;
|
|
5
|
+
readonly reasonCode: string;
|
|
6
|
+
readonly offenderRange: TextRange;
|
|
7
|
+
readonly penalty: number;
|
|
8
|
+
readonly targetClusterIndex: number | null;
|
|
9
|
+
readonly carriedClusterIndex: number | null;
|
|
10
|
+
readonly shrink: number;
|
|
11
|
+
readonly availableCapacity: number;
|
|
12
|
+
readonly pushInAllocations: readonly LineRepairAllocationInfo[];
|
|
13
|
+
constructor(kind: string, reasonCode: string, offenderRange: TextRange, penalty: number, targetClusterIndex?: number | null, carriedClusterIndex?: number | null, shrink?: number | null, availableCapacity?: number | null, pushInAllocations?: LineRepairAllocationInfo[] | null);
|
|
14
|
+
toString(): string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class LineRepairDecisionInfo {
|
|
3
|
+
kind;
|
|
4
|
+
reasonCode;
|
|
5
|
+
offenderRange;
|
|
6
|
+
penalty;
|
|
7
|
+
targetClusterIndex;
|
|
8
|
+
carriedClusterIndex;
|
|
9
|
+
shrink;
|
|
10
|
+
availableCapacity;
|
|
11
|
+
pushInAllocations;
|
|
12
|
+
constructor(kind, reasonCode, offenderRange, penalty, targetClusterIndex = null, carriedClusterIndex = null, shrink = null, availableCapacity = null, pushInAllocations = null) {
|
|
13
|
+
this.kind = kind;
|
|
14
|
+
this.reasonCode = reasonCode;
|
|
15
|
+
this.offenderRange = offenderRange;
|
|
16
|
+
this.penalty = penalty;
|
|
17
|
+
this.targetClusterIndex = targetClusterIndex ?? null;
|
|
18
|
+
this.carriedClusterIndex = carriedClusterIndex ?? null;
|
|
19
|
+
this.shrink = shrink ?? 0.0;
|
|
20
|
+
this.availableCapacity = availableCapacity ?? 0.0;
|
|
21
|
+
this.pushInAllocations = pushInAllocations ?? [];
|
|
22
|
+
}
|
|
23
|
+
toString() {
|
|
24
|
+
return `LineRepairDecisionInfo(kind=${this.kind}, reasonCode=${this.reasonCode}, offenderRange=${this.offenderRange.toString()}, penalty=${this.penalty}, targetClusterIndex=${this.targetClusterIndex}, carriedClusterIndex=${this.carriedClusterIndex}, shrink=${this.shrink}, availableCapacity=${this.availableCapacity}, pushInAllocations=${(() => { let out = "["; const n = this.pushInAllocations.length; for (let i = 0; i < n; i += 1) {
|
|
25
|
+
if (i > 0) {
|
|
26
|
+
out += ", ";
|
|
27
|
+
}
|
|
28
|
+
out += this.pushInAllocations[i].toString();
|
|
29
|
+
} out += "]"; return out; })()})`;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class LineSpacingDecisionInfo {
|
|
2
|
+
readonly naturalHeight: number;
|
|
3
|
+
readonly requestedLineHeight: number | null;
|
|
4
|
+
readonly resolvedHeight: number;
|
|
5
|
+
readonly spacingFloor: number;
|
|
6
|
+
readonly floorApplied: boolean;
|
|
7
|
+
readonly reason: string;
|
|
8
|
+
constructor(naturalHeight: number, requestedLineHeight: number | null, resolvedHeight: number, spacingFloor: number, floorApplied: boolean, reason: string);
|
|
9
|
+
toString(): string;
|
|
10
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class LineSpacingDecisionInfo {
|
|
3
|
+
naturalHeight;
|
|
4
|
+
requestedLineHeight;
|
|
5
|
+
resolvedHeight;
|
|
6
|
+
spacingFloor;
|
|
7
|
+
floorApplied;
|
|
8
|
+
reason;
|
|
9
|
+
constructor(naturalHeight, requestedLineHeight, resolvedHeight, spacingFloor, floorApplied, reason) {
|
|
10
|
+
this.naturalHeight = naturalHeight;
|
|
11
|
+
this.requestedLineHeight = requestedLineHeight;
|
|
12
|
+
this.resolvedHeight = resolvedHeight;
|
|
13
|
+
this.spacingFloor = spacingFloor;
|
|
14
|
+
this.floorApplied = floorApplied;
|
|
15
|
+
this.reason = reason;
|
|
16
|
+
}
|
|
17
|
+
toString() {
|
|
18
|
+
return `LineSpacingDecisionInfo(naturalHeight=${this.naturalHeight}, requestedLineHeight=${this.requestedLineHeight}, resolvedHeight=${this.resolvedHeight}, spacingFloor=${this.spacingFloor}, floorApplied=${this.floorApplied}, reason=${this.reason})`;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class LinkAddressDisplay {
|
|
3
|
+
static displaysAddress(display, target) {
|
|
4
|
+
if (display.length === 0 || target.length === 0) {
|
|
5
|
+
return false;
|
|
6
|
+
}
|
|
7
|
+
if (display === target) {
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
return target === `https://${display}` || target === `http://${display}` || target === `mailto:${display}`;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type TextRange } from "./TextRange.js";
|
|
2
|
+
export declare class MandatoryBreakDecisionInfo {
|
|
3
|
+
readonly range: TextRange;
|
|
4
|
+
readonly sourceText: string;
|
|
5
|
+
readonly breakAfterClusterIndex: number;
|
|
6
|
+
readonly reason: string;
|
|
7
|
+
constructor(range: TextRange, sourceText: string, breakAfterClusterIndex: number, reason: string);
|
|
8
|
+
toString(): string;
|
|
9
|
+
}
|
|
10
|
+
export declare function compareMandatoryBreakDecisionInfo(a: MandatoryBreakDecisionInfo, b: MandatoryBreakDecisionInfo): number;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { compareTextRange } from "./TextRange.js";
|
|
3
|
+
export class MandatoryBreakDecisionInfo {
|
|
4
|
+
range;
|
|
5
|
+
sourceText;
|
|
6
|
+
breakAfterClusterIndex;
|
|
7
|
+
reason;
|
|
8
|
+
constructor(range, sourceText, breakAfterClusterIndex, reason) {
|
|
9
|
+
this.range = range;
|
|
10
|
+
this.sourceText = sourceText;
|
|
11
|
+
this.breakAfterClusterIndex = breakAfterClusterIndex;
|
|
12
|
+
this.reason = reason;
|
|
13
|
+
}
|
|
14
|
+
toString() {
|
|
15
|
+
return `MandatoryBreakDecisionInfo(range=${this.range.toString()}, sourceText=${this.sourceText}, breakAfterClusterIndex=${this.breakAfterClusterIndex}, reason=${this.reason})`;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
export function compareMandatoryBreakDecisionInfo(a, b) {
|
|
19
|
+
if (a === b)
|
|
20
|
+
return 0;
|
|
21
|
+
{
|
|
22
|
+
const cmp = compareTextRange(a.range, b.range);
|
|
23
|
+
if (cmp !== 0)
|
|
24
|
+
return cmp;
|
|
25
|
+
}
|
|
26
|
+
if (a.sourceText !== b.sourceText)
|
|
27
|
+
return a.sourceText < b.sourceText ? -1 : 1;
|
|
28
|
+
if (a.breakAfterClusterIndex !== b.breakAfterClusterIndex)
|
|
29
|
+
return a.breakAfterClusterIndex - b.breakAfterClusterIndex;
|
|
30
|
+
if (a.reason !== b.reason)
|
|
31
|
+
return a.reason < b.reason ? -1 : 1;
|
|
32
|
+
return 0;
|
|
33
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class MaxLinesDecisionInfo {
|
|
2
|
+
readonly laidOutLines: number;
|
|
3
|
+
readonly visibleLines: number;
|
|
4
|
+
readonly reason: string;
|
|
5
|
+
constructor(laidOutLines: number, visibleLines: number, reason?: string | null);
|
|
6
|
+
toString(): string;
|
|
7
|
+
}
|
|
8
|
+
export declare function compareMaxLinesDecisionInfo(a: MaxLinesDecisionInfo, b: MaxLinesDecisionInfo): number;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class MaxLinesDecisionInfo {
|
|
3
|
+
laidOutLines;
|
|
4
|
+
visibleLines;
|
|
5
|
+
reason;
|
|
6
|
+
constructor(laidOutLines, visibleLines, reason = null) {
|
|
7
|
+
this.laidOutLines = laidOutLines;
|
|
8
|
+
this.visibleLines = visibleLines;
|
|
9
|
+
this.reason = reason ?? "MaxLinesLineTruncation";
|
|
10
|
+
}
|
|
11
|
+
toString() {
|
|
12
|
+
return `MaxLinesDecisionInfo(laidOutLines=${this.laidOutLines}, visibleLines=${this.visibleLines}, reason=${this.reason})`;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
export function compareMaxLinesDecisionInfo(a, b) {
|
|
16
|
+
if (a === b)
|
|
17
|
+
return 0;
|
|
18
|
+
if (a.laidOutLines !== b.laidOutLines)
|
|
19
|
+
return a.laidOutLines - b.laidOutLines;
|
|
20
|
+
if (a.visibleLines !== b.visibleLines)
|
|
21
|
+
return a.visibleLines - b.visibleLines;
|
|
22
|
+
if (a.reason !== b.reason)
|
|
23
|
+
return a.reason < b.reason ? -1 : 1;
|
|
24
|
+
return 0;
|
|
25
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class MeasureAdaptiveFirstLineIndent {
|
|
2
|
+
readonly shortBelowEm: number;
|
|
3
|
+
readonly shortEm: number;
|
|
4
|
+
readonly longEm: number;
|
|
5
|
+
constructor(shortBelowEm?: number | null, shortEm?: number | null, longEm?: number | null);
|
|
6
|
+
resolveEm(measureEm: number): number;
|
|
7
|
+
toString(): string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class MeasureAdaptiveFirstLineIndent {
|
|
3
|
+
shortBelowEm;
|
|
4
|
+
shortEm;
|
|
5
|
+
longEm;
|
|
6
|
+
constructor(shortBelowEm = null, shortEm = null, longEm = null) {
|
|
7
|
+
this.shortBelowEm = shortBelowEm ?? 14.0;
|
|
8
|
+
this.shortEm = shortEm ?? 1.0;
|
|
9
|
+
this.longEm = longEm ?? 2.0;
|
|
10
|
+
}
|
|
11
|
+
resolveEm(measureEm) {
|
|
12
|
+
return (measureEm < this.shortBelowEm ? this.shortEm : this.longEm);
|
|
13
|
+
}
|
|
14
|
+
toString() {
|
|
15
|
+
return `MeasureAdaptiveFirstLineIndent(shortBelowEm=${this.shortBelowEm}, shortEm=${this.shortEm}, longEm=${this.longEm})`;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type TextRange } from "./TextRange.js";
|
|
2
|
+
export declare class MetricDecisionInfo {
|
|
3
|
+
readonly range: TextRange;
|
|
4
|
+
readonly sourceText: string;
|
|
5
|
+
readonly role: string;
|
|
6
|
+
readonly fontKey: string;
|
|
7
|
+
readonly rawAscent: number;
|
|
8
|
+
readonly rawDescent: number;
|
|
9
|
+
readonly rawLeading: number;
|
|
10
|
+
readonly rawSource: string;
|
|
11
|
+
readonly layoutAscent: number;
|
|
12
|
+
readonly layoutDescent: number;
|
|
13
|
+
readonly baselineClass: string;
|
|
14
|
+
readonly metricBox: string;
|
|
15
|
+
readonly layoutSource: string;
|
|
16
|
+
readonly reason: string;
|
|
17
|
+
constructor(range: TextRange, sourceText: string, role: string, fontKey: string, rawAscent: number, rawDescent: number, rawLeading: number, rawSource: string, layoutAscent: number, layoutDescent: number, baselineClass: string, metricBox: string, layoutSource: string, reason: string);
|
|
18
|
+
toString(): string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class MetricDecisionInfo {
|
|
3
|
+
range;
|
|
4
|
+
sourceText;
|
|
5
|
+
role;
|
|
6
|
+
fontKey;
|
|
7
|
+
rawAscent;
|
|
8
|
+
rawDescent;
|
|
9
|
+
rawLeading;
|
|
10
|
+
rawSource;
|
|
11
|
+
layoutAscent;
|
|
12
|
+
layoutDescent;
|
|
13
|
+
baselineClass;
|
|
14
|
+
metricBox;
|
|
15
|
+
layoutSource;
|
|
16
|
+
reason;
|
|
17
|
+
constructor(range, sourceText, role, fontKey, rawAscent, rawDescent, rawLeading, rawSource, layoutAscent, layoutDescent, baselineClass, metricBox, layoutSource, reason) {
|
|
18
|
+
this.range = range;
|
|
19
|
+
this.sourceText = sourceText;
|
|
20
|
+
this.role = role;
|
|
21
|
+
this.fontKey = fontKey;
|
|
22
|
+
this.rawAscent = rawAscent;
|
|
23
|
+
this.rawDescent = rawDescent;
|
|
24
|
+
this.rawLeading = rawLeading;
|
|
25
|
+
this.rawSource = rawSource;
|
|
26
|
+
this.layoutAscent = layoutAscent;
|
|
27
|
+
this.layoutDescent = layoutDescent;
|
|
28
|
+
this.baselineClass = baselineClass;
|
|
29
|
+
this.metricBox = metricBox;
|
|
30
|
+
this.layoutSource = layoutSource;
|
|
31
|
+
this.reason = reason;
|
|
32
|
+
}
|
|
33
|
+
toString() {
|
|
34
|
+
return `MetricDecisionInfo(range=${this.range.toString()}, sourceText=${this.sourceText}, role=${this.role}, fontKey=${this.fontKey}, rawAscent=${this.rawAscent}, rawDescent=${this.rawDescent}, rawLeading=${this.rawLeading}, rawSource=${this.rawSource}, layoutAscent=${this.layoutAscent}, layoutDescent=${this.layoutDescent}, baselineClass=${this.baselineClass}, metricBox=${this.metricBox}, layoutSource=${this.layoutSource}, reason=${this.reason})`;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { type Ic } from "./Ic.js";
|
|
2
|
+
import { LastLineAlignment } from "./LastLineAlignment.js";
|
|
3
|
+
import { LineLengthGrid } from "./LineLengthGrid.js";
|
|
4
|
+
import { MeasureAdaptiveFirstLineIndent } from "./MeasureAdaptiveFirstLineIndent.js";
|
|
5
|
+
import { RubyLineHeightMode } from "./RubyLineHeightMode.js";
|
|
6
|
+
import { WritingMode } from "./WritingMode.js";
|
|
7
|
+
export declare class ParagraphStyle {
|
|
8
|
+
readonly lastLineAlignment: LastLineAlignment;
|
|
9
|
+
readonly writingMode: WritingMode;
|
|
10
|
+
readonly lineHeight: number | null;
|
|
11
|
+
readonly firstLineIndent: Ic | null;
|
|
12
|
+
readonly blockIndent: Ic;
|
|
13
|
+
readonly firstLineIndentPolicy: MeasureAdaptiveFirstLineIndent;
|
|
14
|
+
readonly lineLengthGrid: LineLengthGrid;
|
|
15
|
+
readonly rubyLineHeightMode: RubyLineHeightMode;
|
|
16
|
+
readonly inlineObjectMinimumClearanceEm: number;
|
|
17
|
+
readonly emphasisDotGapEm: number;
|
|
18
|
+
static readonly DEFAULT_EMPHASIS_DOT_GAP_EM: number;
|
|
19
|
+
static readonly DEFAULT_INLINE_OBJECT_MINIMUM_CLEARANCE_EM: number;
|
|
20
|
+
constructor(lastLineAlignment?: LastLineAlignment | null, writingMode?: WritingMode | null, lineHeight?: number | null, firstLineIndent?: Ic | null, blockIndent?: Ic | null, firstLineIndentPolicy?: MeasureAdaptiveFirstLineIndent | null, lineLengthGrid?: LineLengthGrid | null, rubyLineHeightMode?: RubyLineHeightMode | null, inlineObjectMinimumClearanceEm?: number | null, emphasisDotGapEm?: number | null);
|
|
21
|
+
toString(): string;
|
|
22
|
+
}
|