@tiqian/engine 0.0.1 → 0.1.0-alpha.10
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,40 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class ShapingDecisionInfo {
|
|
3
|
+
range;
|
|
4
|
+
sourceText;
|
|
5
|
+
displayText;
|
|
6
|
+
fontKey;
|
|
7
|
+
glyphCount;
|
|
8
|
+
advance;
|
|
9
|
+
source;
|
|
10
|
+
reason;
|
|
11
|
+
glyphsWithoutInkBounds;
|
|
12
|
+
missingGlyphs;
|
|
13
|
+
resolvedFace;
|
|
14
|
+
script;
|
|
15
|
+
language;
|
|
16
|
+
strategy;
|
|
17
|
+
featureEvidence;
|
|
18
|
+
capabilityIssue;
|
|
19
|
+
constructor(range, sourceText, displayText, fontKey, glyphCount, advance, source, reason, glyphsWithoutInkBounds = null, missingGlyphs = null, resolvedFace = null, script = null, language = null, strategy = null, featureEvidence = null, capabilityIssue = null) {
|
|
20
|
+
this.range = range;
|
|
21
|
+
this.sourceText = sourceText;
|
|
22
|
+
this.displayText = displayText;
|
|
23
|
+
this.fontKey = fontKey;
|
|
24
|
+
this.glyphCount = glyphCount;
|
|
25
|
+
this.advance = advance;
|
|
26
|
+
this.source = source;
|
|
27
|
+
this.reason = reason;
|
|
28
|
+
this.glyphsWithoutInkBounds = glyphsWithoutInkBounds ?? 0;
|
|
29
|
+
this.missingGlyphs = missingGlyphs ?? 0;
|
|
30
|
+
this.resolvedFace = resolvedFace ?? null;
|
|
31
|
+
this.script = script ?? null;
|
|
32
|
+
this.language = language ?? null;
|
|
33
|
+
this.strategy = strategy ?? null;
|
|
34
|
+
this.featureEvidence = featureEvidence ?? null;
|
|
35
|
+
this.capabilityIssue = capabilityIssue ?? null;
|
|
36
|
+
}
|
|
37
|
+
toString() {
|
|
38
|
+
return `ShapingDecisionInfo(range=${this.range.toString()}, sourceText=${this.sourceText}, displayText=${this.displayText}, fontKey=${this.fontKey}, glyphCount=${this.glyphCount}, advance=${this.advance}, source=${this.source}, reason=${this.reason}, glyphsWithoutInkBounds=${this.glyphsWithoutInkBounds}, missingGlyphs=${this.missingGlyphs}, resolvedFace=${this.resolvedFace}, script=${this.script}, language=${this.language}, strategy=${this.strategy}, featureEvidence=${this.featureEvidence}, capabilityIssue=${this.capabilityIssue})`;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class Size {
|
|
3
|
+
width;
|
|
4
|
+
height;
|
|
5
|
+
constructor(width, height) {
|
|
6
|
+
this.width = width;
|
|
7
|
+
this.height = height;
|
|
8
|
+
}
|
|
9
|
+
toString() {
|
|
10
|
+
return `Size(width=${this.width}, height=${this.height})`;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface Backward {
|
|
2
|
+
readonly kind: "Backward";
|
|
3
|
+
}
|
|
4
|
+
export interface Forward {
|
|
5
|
+
readonly kind: "Forward";
|
|
6
|
+
}
|
|
7
|
+
export interface Nearest {
|
|
8
|
+
readonly kind: "Nearest";
|
|
9
|
+
}
|
|
10
|
+
export type SourceBoundaryBias = Backward | Forward | Nearest;
|
|
11
|
+
export declare const SourceBoundaryBias: Readonly<{
|
|
12
|
+
Backward: Readonly<Backward>;
|
|
13
|
+
Forward: Readonly<Forward>;
|
|
14
|
+
Nearest: Readonly<Nearest>;
|
|
15
|
+
}>;
|
|
16
|
+
export declare function compareSourceBoundaryBias(a: SourceBoundaryBias, b: SourceBoundaryBias): number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export const SourceBoundaryBias = Object.freeze({
|
|
3
|
+
Backward: Object.freeze({ kind: "Backward" }),
|
|
4
|
+
Forward: Object.freeze({ kind: "Forward" }),
|
|
5
|
+
Nearest: Object.freeze({ kind: "Nearest" })
|
|
6
|
+
});
|
|
7
|
+
export function compareSourceBoundaryBias(a, b) {
|
|
8
|
+
if (a === b)
|
|
9
|
+
return 0;
|
|
10
|
+
if (a.kind === "Backward")
|
|
11
|
+
return 0 - (b.kind === "Backward" ? 0 : 0);
|
|
12
|
+
if (a.kind === "Forward")
|
|
13
|
+
return 1 - (b.kind === "Forward" ? 1 : 0);
|
|
14
|
+
if (a.kind === "Nearest")
|
|
15
|
+
return 2 - (b.kind === "Nearest" ? 2 : 0);
|
|
16
|
+
return 0;
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type SourceBoundaryBias } from "./SourceBoundaryBias.js";
|
|
2
|
+
import { type TextRange } from "./TextRange.js";
|
|
3
|
+
export declare class SourceInteractionBoundaries {
|
|
4
|
+
private static readonly HIGH_SURROGATE_START;
|
|
5
|
+
private static readonly HIGH_SURROGATE_END;
|
|
6
|
+
private static readonly LOW_SURROGATE_START;
|
|
7
|
+
private static readonly LOW_SURROGATE_END;
|
|
8
|
+
private static readonly CR;
|
|
9
|
+
private static readonly LF;
|
|
10
|
+
private static readonly ZWNJ;
|
|
11
|
+
private static readonly ZWJ;
|
|
12
|
+
static coerceToInteractionBoundary(text: string, offset: number, range: TextRange, bias: SourceBoundaryBias): number;
|
|
13
|
+
static interactionBoundaries(text: string, range: TextRange): number[];
|
|
14
|
+
static sourceGraphemeBoundaries(text: string, range: TextRange): number[];
|
|
15
|
+
static codePointAtCompat(text: string, index: number, end: number): number;
|
|
16
|
+
private static interactionBoundariesByOffsets;
|
|
17
|
+
private static consumeExtenders;
|
|
18
|
+
private static isInteractionExtender;
|
|
19
|
+
private static isCombiningMark;
|
|
20
|
+
private static isEmojiModifier;
|
|
21
|
+
private static isRegionalIndicator;
|
|
22
|
+
private static isHangulL;
|
|
23
|
+
private static isHangulV;
|
|
24
|
+
private static isHangulT;
|
|
25
|
+
private static isHangulLvOrLvt;
|
|
26
|
+
private static isHangulLv;
|
|
27
|
+
private static charCount;
|
|
28
|
+
private static clamp;
|
|
29
|
+
}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { UnicodeCombiningMarkData } from "./UnicodeCombiningMarkData.js";
|
|
3
|
+
import { UnicodeEmojiModifierBaseData } from "./UnicodeEmojiModifierBaseData.js";
|
|
4
|
+
import { UnicodeExtendedPictographicData } from "./UnicodeExtendedPictographicData.js";
|
|
5
|
+
import { readUnit } from "../../../runtime.js";
|
|
6
|
+
export class SourceInteractionBoundaries {
|
|
7
|
+
static HIGH_SURROGATE_START = 55296;
|
|
8
|
+
static HIGH_SURROGATE_END = 56319;
|
|
9
|
+
static LOW_SURROGATE_START = 56320;
|
|
10
|
+
static LOW_SURROGATE_END = 57343;
|
|
11
|
+
static CR = 13;
|
|
12
|
+
static LF = 10;
|
|
13
|
+
static ZWNJ = 8204;
|
|
14
|
+
static ZWJ = 8205;
|
|
15
|
+
static coerceToInteractionBoundary(text, offset, range, bias) {
|
|
16
|
+
const start = SourceInteractionBoundaries.clamp(range.start, 0, text.length);
|
|
17
|
+
const end = SourceInteractionBoundaries.clamp(range.end, start, text.length);
|
|
18
|
+
const target = SourceInteractionBoundaries.clamp(offset, start, end);
|
|
19
|
+
if (target === start || target === end) {
|
|
20
|
+
return target;
|
|
21
|
+
}
|
|
22
|
+
const boundaries = SourceInteractionBoundaries.interactionBoundariesByOffsets(text, start, end);
|
|
23
|
+
let previous = start;
|
|
24
|
+
let next = end;
|
|
25
|
+
let index = 0;
|
|
26
|
+
while (index < boundaries.length) {
|
|
27
|
+
const boundary = boundaries[index];
|
|
28
|
+
if (boundary === target) {
|
|
29
|
+
return target;
|
|
30
|
+
}
|
|
31
|
+
if (boundary < target) {
|
|
32
|
+
previous = boundary;
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
next = boundary;
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
index += 1;
|
|
39
|
+
}
|
|
40
|
+
if (bias.kind === "Backward") {
|
|
41
|
+
return previous;
|
|
42
|
+
}
|
|
43
|
+
if (bias.kind === "Forward") {
|
|
44
|
+
return next;
|
|
45
|
+
}
|
|
46
|
+
return (target - previous < next - target ? previous : next);
|
|
47
|
+
}
|
|
48
|
+
static interactionBoundaries(text, range) {
|
|
49
|
+
const start = SourceInteractionBoundaries.clamp(range.start, 0, text.length);
|
|
50
|
+
const end = SourceInteractionBoundaries.clamp(range.end, start, text.length);
|
|
51
|
+
return SourceInteractionBoundaries.interactionBoundariesByOffsets(text, start, end);
|
|
52
|
+
}
|
|
53
|
+
static sourceGraphemeBoundaries(text, range) {
|
|
54
|
+
return SourceInteractionBoundaries.interactionBoundaries(text, range);
|
|
55
|
+
}
|
|
56
|
+
static codePointAtCompat(text, index, end) {
|
|
57
|
+
const high = (Number.isNaN(text.charCodeAt(index)) ? null : text.charCodeAt(index));
|
|
58
|
+
if (high < SourceInteractionBoundaries.HIGH_SURROGATE_START || high > SourceInteractionBoundaries.HIGH_SURROGATE_END || index + 1 >= end) {
|
|
59
|
+
return high;
|
|
60
|
+
}
|
|
61
|
+
const low = readUnit(text, index + 1);
|
|
62
|
+
if (low < SourceInteractionBoundaries.LOW_SURROGATE_START || low > SourceInteractionBoundaries.LOW_SURROGATE_END) {
|
|
63
|
+
return high;
|
|
64
|
+
}
|
|
65
|
+
return 65536 + (high - SourceInteractionBoundaries.HIGH_SURROGATE_START << 10) + (low - SourceInteractionBoundaries.LOW_SURROGATE_START);
|
|
66
|
+
}
|
|
67
|
+
static interactionBoundariesByOffsets(text, start, end) {
|
|
68
|
+
const output = [start];
|
|
69
|
+
let index = start;
|
|
70
|
+
while (index < end) {
|
|
71
|
+
const first = SourceInteractionBoundaries.codePointAtCompat(text, index, end);
|
|
72
|
+
let next = index + SourceInteractionBoundaries.charCount(first);
|
|
73
|
+
let precedingEmojiModifierBase = UnicodeEmojiModifierBaseData.contains(first);
|
|
74
|
+
let precedingExtendedPictographic = UnicodeExtendedPictographicData.contains(first);
|
|
75
|
+
if (first === SourceInteractionBoundaries.CR && next < end && SourceInteractionBoundaries.codePointAtCompat(text, next, end) === SourceInteractionBoundaries.LF) {
|
|
76
|
+
next += 1;
|
|
77
|
+
}
|
|
78
|
+
else {
|
|
79
|
+
if (SourceInteractionBoundaries.isRegionalIndicator(first) && next < end) {
|
|
80
|
+
const following = SourceInteractionBoundaries.codePointAtCompat(text, next, end);
|
|
81
|
+
if (SourceInteractionBoundaries.isRegionalIndicator(following)) {
|
|
82
|
+
next += SourceInteractionBoundaries.charCount(following);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
if (SourceInteractionBoundaries.isHangulL(first)) {
|
|
87
|
+
while (next < end && SourceInteractionBoundaries.isHangulL(SourceInteractionBoundaries.codePointAtCompat(text, next, end))) {
|
|
88
|
+
next += SourceInteractionBoundaries.charCount(SourceInteractionBoundaries.codePointAtCompat(text, next, end));
|
|
89
|
+
}
|
|
90
|
+
if (next < end && SourceInteractionBoundaries.isHangulV(SourceInteractionBoundaries.codePointAtCompat(text, next, end))) {
|
|
91
|
+
while (next < end && SourceInteractionBoundaries.isHangulV(SourceInteractionBoundaries.codePointAtCompat(text, next, end))) {
|
|
92
|
+
next += SourceInteractionBoundaries.charCount(SourceInteractionBoundaries.codePointAtCompat(text, next, end));
|
|
93
|
+
}
|
|
94
|
+
while (next < end && SourceInteractionBoundaries.isHangulT(SourceInteractionBoundaries.codePointAtCompat(text, next, end))) {
|
|
95
|
+
next += SourceInteractionBoundaries.charCount(SourceInteractionBoundaries.codePointAtCompat(text, next, end));
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
if (SourceInteractionBoundaries.isHangulLvOrLvt(first)) {
|
|
101
|
+
if (SourceInteractionBoundaries.isHangulLv(first)) {
|
|
102
|
+
while (next < end && SourceInteractionBoundaries.isHangulV(SourceInteractionBoundaries.codePointAtCompat(text, next, end))) {
|
|
103
|
+
next += SourceInteractionBoundaries.charCount(SourceInteractionBoundaries.codePointAtCompat(text, next, end));
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
while (next < end && SourceInteractionBoundaries.isHangulT(SourceInteractionBoundaries.codePointAtCompat(text, next, end))) {
|
|
107
|
+
next += SourceInteractionBoundaries.charCount(SourceInteractionBoundaries.codePointAtCompat(text, next, end));
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
next = SourceInteractionBoundaries.consumeExtenders(text, next, end);
|
|
114
|
+
if (precedingEmojiModifierBase && next < end && SourceInteractionBoundaries.isEmojiModifier(SourceInteractionBoundaries.codePointAtCompat(text, next, end))) {
|
|
115
|
+
next += SourceInteractionBoundaries.charCount(SourceInteractionBoundaries.codePointAtCompat(text, next, end));
|
|
116
|
+
precedingEmojiModifierBase = false;
|
|
117
|
+
next = SourceInteractionBoundaries.consumeExtenders(text, next, end);
|
|
118
|
+
}
|
|
119
|
+
while (next < end && SourceInteractionBoundaries.codePointAtCompat(text, next, end) === SourceInteractionBoundaries.ZWJ) {
|
|
120
|
+
next += 1;
|
|
121
|
+
if (next >= end) {
|
|
122
|
+
break;
|
|
123
|
+
}
|
|
124
|
+
const joined = SourceInteractionBoundaries.codePointAtCompat(text, next, end);
|
|
125
|
+
if (!precedingExtendedPictographic || !UnicodeExtendedPictographicData.contains(joined)) {
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
next += SourceInteractionBoundaries.charCount(joined);
|
|
129
|
+
precedingEmojiModifierBase = UnicodeEmojiModifierBaseData.contains(joined);
|
|
130
|
+
precedingExtendedPictographic = true;
|
|
131
|
+
next = SourceInteractionBoundaries.consumeExtenders(text, next, end);
|
|
132
|
+
if (precedingEmojiModifierBase && next < end && SourceInteractionBoundaries.isEmojiModifier(SourceInteractionBoundaries.codePointAtCompat(text, next, end))) {
|
|
133
|
+
next += SourceInteractionBoundaries.charCount(SourceInteractionBoundaries.codePointAtCompat(text, next, end));
|
|
134
|
+
precedingEmojiModifierBase = false;
|
|
135
|
+
next = SourceInteractionBoundaries.consumeExtenders(text, next, end);
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
index = next;
|
|
139
|
+
output.push(index);
|
|
140
|
+
}
|
|
141
|
+
return output;
|
|
142
|
+
}
|
|
143
|
+
static consumeExtenders(text, from, end) {
|
|
144
|
+
let index = from;
|
|
145
|
+
while (index < end) {
|
|
146
|
+
const codePoint = SourceInteractionBoundaries.codePointAtCompat(text, index, end);
|
|
147
|
+
if (!SourceInteractionBoundaries.isInteractionExtender(codePoint)) {
|
|
148
|
+
break;
|
|
149
|
+
}
|
|
150
|
+
index += SourceInteractionBoundaries.charCount(codePoint);
|
|
151
|
+
}
|
|
152
|
+
return index;
|
|
153
|
+
}
|
|
154
|
+
static isInteractionExtender(codePoint) {
|
|
155
|
+
return codePoint === SourceInteractionBoundaries.ZWNJ || codePoint >= 65024 && codePoint <= 65039 || codePoint >= 917760 && codePoint <= 917999 || codePoint >= 917536 && codePoint <= 917631 || SourceInteractionBoundaries.isCombiningMark(codePoint);
|
|
156
|
+
}
|
|
157
|
+
static isCombiningMark(codePoint) {
|
|
158
|
+
return codePoint <= 65535 && UnicodeCombiningMarkData.contains(codePoint);
|
|
159
|
+
}
|
|
160
|
+
static isEmojiModifier(codePoint) {
|
|
161
|
+
return codePoint >= 127995 && codePoint <= 127999;
|
|
162
|
+
}
|
|
163
|
+
static isRegionalIndicator(codePoint) {
|
|
164
|
+
return codePoint >= 127462 && codePoint <= 127487;
|
|
165
|
+
}
|
|
166
|
+
static isHangulL(codePoint) {
|
|
167
|
+
return codePoint >= 4352 && codePoint <= 4447 || codePoint >= 43360 && codePoint <= 43388;
|
|
168
|
+
}
|
|
169
|
+
static isHangulV(codePoint) {
|
|
170
|
+
return codePoint >= 4448 && codePoint <= 4519 || codePoint >= 55216 && codePoint <= 55238;
|
|
171
|
+
}
|
|
172
|
+
static isHangulT(codePoint) {
|
|
173
|
+
return codePoint >= 4520 && codePoint <= 4607 || codePoint >= 55243 && codePoint <= 55291;
|
|
174
|
+
}
|
|
175
|
+
static isHangulLvOrLvt(codePoint) {
|
|
176
|
+
return codePoint >= 44032 && codePoint <= 55203;
|
|
177
|
+
}
|
|
178
|
+
static isHangulLv(codePoint) {
|
|
179
|
+
return SourceInteractionBoundaries.isHangulLvOrLvt(codePoint) && (codePoint - 44032) % 28 === 0;
|
|
180
|
+
}
|
|
181
|
+
static charCount(codePoint) {
|
|
182
|
+
return (codePoint > 65535 ? 2 : 1);
|
|
183
|
+
}
|
|
184
|
+
static clamp(value, low, high) {
|
|
185
|
+
if (value < low) {
|
|
186
|
+
return low;
|
|
187
|
+
}
|
|
188
|
+
if (value > high) {
|
|
189
|
+
return high;
|
|
190
|
+
}
|
|
191
|
+
return value;
|
|
192
|
+
}
|
|
193
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type TextRange } from "./TextRange.js";
|
|
2
|
+
export declare class SpacingDecisionInfo {
|
|
3
|
+
readonly range: TextRange;
|
|
4
|
+
readonly leftChar: string;
|
|
5
|
+
readonly rightChar: string;
|
|
6
|
+
readonly naturalInnerGlue: number;
|
|
7
|
+
readonly adjustedInnerGlue: number;
|
|
8
|
+
readonly reduction: number;
|
|
9
|
+
readonly reductionTargetRange: TextRange;
|
|
10
|
+
readonly reason: string;
|
|
11
|
+
constructor(range: TextRange, leftChar: string, rightChar: string, naturalInnerGlue: number, adjustedInnerGlue: number, reduction: number, reductionTargetRange: TextRange, reason: string);
|
|
12
|
+
toString(): string;
|
|
13
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class SpacingDecisionInfo {
|
|
3
|
+
range;
|
|
4
|
+
leftChar;
|
|
5
|
+
rightChar;
|
|
6
|
+
naturalInnerGlue;
|
|
7
|
+
adjustedInnerGlue;
|
|
8
|
+
reduction;
|
|
9
|
+
reductionTargetRange;
|
|
10
|
+
reason;
|
|
11
|
+
constructor(range, leftChar, rightChar, naturalInnerGlue, adjustedInnerGlue, reduction, reductionTargetRange, reason) {
|
|
12
|
+
this.range = range;
|
|
13
|
+
this.leftChar = leftChar;
|
|
14
|
+
this.rightChar = rightChar;
|
|
15
|
+
this.naturalInnerGlue = naturalInnerGlue;
|
|
16
|
+
this.adjustedInnerGlue = adjustedInnerGlue;
|
|
17
|
+
this.reduction = reduction;
|
|
18
|
+
this.reductionTargetRange = reductionTargetRange;
|
|
19
|
+
this.reason = reason;
|
|
20
|
+
}
|
|
21
|
+
toString() {
|
|
22
|
+
return `SpacingDecisionInfo(range=${this.range.toString()}, leftChar=${this.leftChar}, rightChar=${this.rightChar}, naturalInnerGlue=${this.naturalInnerGlue}, adjustedInnerGlue=${this.adjustedInnerGlue}, reduction=${this.reduction}, reductionTargetRange=${this.reductionTargetRange.toString()}, reason=${this.reason})`;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare class TextRange {
|
|
2
|
+
readonly start: number;
|
|
3
|
+
readonly end: number;
|
|
4
|
+
constructor(start: number, end: number);
|
|
5
|
+
get length(): number;
|
|
6
|
+
get_length(): number;
|
|
7
|
+
get isEmpty(): boolean;
|
|
8
|
+
get_isEmpty(): boolean;
|
|
9
|
+
toString(): string;
|
|
10
|
+
}
|
|
11
|
+
export declare function compareTextRange(a: TextRange, b: TextRange): number;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { TiqianIllegalArgumentException } from "./TiqianIllegalArgumentException.js";
|
|
3
|
+
export class TextRange {
|
|
4
|
+
start;
|
|
5
|
+
end;
|
|
6
|
+
constructor(start, end) {
|
|
7
|
+
if (start > end) {
|
|
8
|
+
throw new TiqianIllegalArgumentException({ kind: "StartGreaterThanEnd" });
|
|
9
|
+
}
|
|
10
|
+
if (start < 0) {
|
|
11
|
+
throw new TiqianIllegalArgumentException({ kind: "NegativeStart" });
|
|
12
|
+
}
|
|
13
|
+
this.start = start;
|
|
14
|
+
this.end = end;
|
|
15
|
+
}
|
|
16
|
+
get length() {
|
|
17
|
+
return this.get_length();
|
|
18
|
+
}
|
|
19
|
+
get_length() {
|
|
20
|
+
return this.end - this.start;
|
|
21
|
+
}
|
|
22
|
+
get isEmpty() {
|
|
23
|
+
return this.get_isEmpty();
|
|
24
|
+
}
|
|
25
|
+
get_isEmpty() {
|
|
26
|
+
return this.length === 0;
|
|
27
|
+
}
|
|
28
|
+
toString() {
|
|
29
|
+
return `TextRange(start=${this.start}, end=${this.end})`;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export function compareTextRange(a, b) {
|
|
33
|
+
if (a === b)
|
|
34
|
+
return 0;
|
|
35
|
+
if (a.start !== b.start)
|
|
36
|
+
return a.start - b.start;
|
|
37
|
+
if (a.end !== b.end)
|
|
38
|
+
return a.end - b.end;
|
|
39
|
+
return 0;
|
|
40
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface StartGreaterThanEnd {
|
|
2
|
+
readonly kind: "StartGreaterThanEnd";
|
|
3
|
+
}
|
|
4
|
+
export interface NegativeStart {
|
|
5
|
+
readonly kind: "NegativeStart";
|
|
6
|
+
}
|
|
7
|
+
export interface Message {
|
|
8
|
+
readonly kind: "Message";
|
|
9
|
+
readonly text: string;
|
|
10
|
+
}
|
|
11
|
+
export type TextRangeError = StartGreaterThanEnd | NegativeStart | Message;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type TextRange } from "./TextRange.js";
|
|
2
|
+
import { type TextStyle } from "./TextStyle.js";
|
|
3
|
+
export declare class TextSpan {
|
|
4
|
+
readonly range: TextRange;
|
|
5
|
+
readonly style: TextStyle;
|
|
6
|
+
constructor(range: TextRange, style: TextStyle);
|
|
7
|
+
toString(): string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class TextSpan {
|
|
3
|
+
range;
|
|
4
|
+
style;
|
|
5
|
+
constructor(range, style) {
|
|
6
|
+
this.range = range;
|
|
7
|
+
this.style = style;
|
|
8
|
+
}
|
|
9
|
+
toString() {
|
|
10
|
+
return `TextSpan(range=${this.range.toString()}, style=${this.style.toString()})`;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InlineAttachment } from "./InlineAttachment.js";
|
|
2
|
+
export declare class TextStyle {
|
|
3
|
+
readonly fontFamilies: readonly string[];
|
|
4
|
+
readonly fontSize: number;
|
|
5
|
+
readonly locale: string;
|
|
6
|
+
readonly fontWeight: number;
|
|
7
|
+
readonly italic: boolean;
|
|
8
|
+
readonly baselineShift: number;
|
|
9
|
+
readonly inlineAttachment: InlineAttachment;
|
|
10
|
+
constructor(fontFamilies?: string[] | null, fontSize?: number | null, locale?: string | null, fontWeight?: number | null, italic?: boolean | null, baselineShift?: number | null, inlineAttachment?: InlineAttachment | null);
|
|
11
|
+
toString(): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { InlineAttachment } from "./InlineAttachment.js";
|
|
3
|
+
export class TextStyle {
|
|
4
|
+
fontFamilies;
|
|
5
|
+
fontSize;
|
|
6
|
+
locale;
|
|
7
|
+
fontWeight;
|
|
8
|
+
italic;
|
|
9
|
+
baselineShift;
|
|
10
|
+
inlineAttachment;
|
|
11
|
+
constructor(fontFamilies = null, fontSize = null, locale = null, fontWeight = null, italic = null, baselineShift = null, inlineAttachment = null) {
|
|
12
|
+
this.fontFamilies = fontFamilies ?? [];
|
|
13
|
+
this.fontSize = fontSize ?? 16.0;
|
|
14
|
+
this.locale = locale ?? "zh-Hans";
|
|
15
|
+
this.fontWeight = fontWeight ?? 400;
|
|
16
|
+
this.italic = italic ?? false;
|
|
17
|
+
this.baselineShift = baselineShift ?? 0.0;
|
|
18
|
+
this.inlineAttachment = inlineAttachment ?? InlineAttachment.None;
|
|
19
|
+
}
|
|
20
|
+
toString() {
|
|
21
|
+
return `TextStyle(fontFamilies=${(() => { let out = "["; const n = this.fontFamilies.length; for (let i = 0; i < n; i += 1) {
|
|
22
|
+
if (i > 0) {
|
|
23
|
+
out += ", ";
|
|
24
|
+
}
|
|
25
|
+
out += this.fontFamilies[i];
|
|
26
|
+
} out += "]"; return out; })()}, fontSize=${this.fontSize}, locale=${this.locale}, fontWeight=${this.fontWeight}, italic=${this.italic}, baselineShift=${this.baselineShift}, inlineAttachment=${this.inlineAttachment.kind})`;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class TiqianIllegalArgumentException extends Error {
|
|
3
|
+
error;
|
|
4
|
+
constructor(error) {
|
|
5
|
+
super(TiqianIllegalArgumentException.describe(error));
|
|
6
|
+
this.name = "TiqianIllegalArgumentException";
|
|
7
|
+
this.error = error;
|
|
8
|
+
}
|
|
9
|
+
static describe(error) {
|
|
10
|
+
switch (error.kind) {
|
|
11
|
+
case "StartGreaterThanEnd":
|
|
12
|
+
return "TextRange start must not be greater than end.";
|
|
13
|
+
case "NegativeStart":
|
|
14
|
+
return "TextRange start must be non-negative.";
|
|
15
|
+
case "Message":
|
|
16
|
+
{
|
|
17
|
+
return error.text;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class TiqianNoSuchElementException extends Error {
|
|
2
|
+
readonly error: NoSuchElementError;
|
|
3
|
+
constructor(error: NoSuchElementError);
|
|
4
|
+
static describe(error: NoSuchElementError): string;
|
|
5
|
+
}
|
|
6
|
+
export interface Message {
|
|
7
|
+
readonly kind: "Message";
|
|
8
|
+
readonly text: string;
|
|
9
|
+
}
|
|
10
|
+
export type NoSuchElementError = Message;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class TiqianNoSuchElementException extends Error {
|
|
3
|
+
error;
|
|
4
|
+
constructor(error) {
|
|
5
|
+
super(TiqianNoSuchElementException.describe(error));
|
|
6
|
+
this.name = "TiqianNoSuchElementException";
|
|
7
|
+
this.error = error;
|
|
8
|
+
}
|
|
9
|
+
static describe(error) {
|
|
10
|
+
return (() => {
|
|
11
|
+
const _g = error.text;
|
|
12
|
+
const text = _g;
|
|
13
|
+
return text;
|
|
14
|
+
})();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type LineBreakSpan } from "./LineBreakSpan.js";
|
|
2
|
+
import { type TextRange } from "./TextRange.js";
|
|
3
|
+
import { type TextSpan } from "./TextSpan.js";
|
|
4
|
+
export declare class TiqianTextContent {
|
|
5
|
+
readonly text: string;
|
|
6
|
+
readonly spans: readonly TextSpan[];
|
|
7
|
+
readonly sourceBoundaries: readonly number[];
|
|
8
|
+
readonly lineBreakSpans: readonly LineBreakSpan[];
|
|
9
|
+
readonly autoSpaceSuppressedRanges: readonly TextRange[];
|
|
10
|
+
constructor(text: string, spans?: TextSpan[] | null, sourceBoundaries?: number[] | null, lineBreakSpans?: LineBreakSpan[] | null, autoSpaceSuppressedRanges?: TextRange[] | null);
|
|
11
|
+
toString(): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class TiqianTextContent {
|
|
3
|
+
text;
|
|
4
|
+
spans;
|
|
5
|
+
sourceBoundaries;
|
|
6
|
+
lineBreakSpans;
|
|
7
|
+
autoSpaceSuppressedRanges;
|
|
8
|
+
constructor(text, spans = null, sourceBoundaries = null, lineBreakSpans = null, autoSpaceSuppressedRanges = null) {
|
|
9
|
+
this.text = text;
|
|
10
|
+
this.spans = spans ?? [];
|
|
11
|
+
this.sourceBoundaries = sourceBoundaries ?? [];
|
|
12
|
+
this.lineBreakSpans = lineBreakSpans ?? [];
|
|
13
|
+
this.autoSpaceSuppressedRanges = autoSpaceSuppressedRanges ?? [];
|
|
14
|
+
}
|
|
15
|
+
toString() {
|
|
16
|
+
return `TiqianTextContent(text=${this.text}, spans=${(() => { let out = "["; const n = this.spans.length; for (let i = 0; i < n; i += 1) {
|
|
17
|
+
if (i > 0) {
|
|
18
|
+
out += ", ";
|
|
19
|
+
}
|
|
20
|
+
out += this.spans[i].toString();
|
|
21
|
+
} out += "]"; return out; })()}, sourceBoundaries=${(() => { let out = "["; const n = this.sourceBoundaries.length; for (let i = 0; i < n; i += 1) {
|
|
22
|
+
if (i > 0) {
|
|
23
|
+
out += ", ";
|
|
24
|
+
}
|
|
25
|
+
out += this.sourceBoundaries[i];
|
|
26
|
+
} out += "]"; return out; })()}, lineBreakSpans=${(() => { let out = "["; const n = this.lineBreakSpans.length; for (let i = 0; i < n; i += 1) {
|
|
27
|
+
if (i > 0) {
|
|
28
|
+
out += ", ";
|
|
29
|
+
}
|
|
30
|
+
out += this.lineBreakSpans[i].toString();
|
|
31
|
+
} out += "]"; return out; })()}, autoSpaceSuppressedRanges=${(() => { let out = "["; const n = this.autoSpaceSuppressedRanges.length; for (let i = 0; i < n; i += 1) {
|
|
32
|
+
if (i > 0) {
|
|
33
|
+
out += ", ";
|
|
34
|
+
}
|
|
35
|
+
out += this.autoSpaceSuppressedRanges[i].toString();
|
|
36
|
+
} out += "]"; return out; })()})`;
|
|
37
|
+
}
|
|
38
|
+
}
|