@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,36 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { Zero, toString } from "./Ic.js";
|
|
3
|
+
import { LastLineAlignment } from "./LastLineAlignment.js";
|
|
4
|
+
import { LineLengthGrid } from "./LineLengthGrid.js";
|
|
5
|
+
import { MeasureAdaptiveFirstLineIndent } from "./MeasureAdaptiveFirstLineIndent.js";
|
|
6
|
+
import { RubyLineHeightMode } from "./RubyLineHeightMode.js";
|
|
7
|
+
import { WritingMode } from "./WritingMode.js";
|
|
8
|
+
export class ParagraphStyle {
|
|
9
|
+
lastLineAlignment;
|
|
10
|
+
writingMode;
|
|
11
|
+
lineHeight;
|
|
12
|
+
firstLineIndent;
|
|
13
|
+
blockIndent;
|
|
14
|
+
firstLineIndentPolicy;
|
|
15
|
+
lineLengthGrid;
|
|
16
|
+
rubyLineHeightMode;
|
|
17
|
+
inlineObjectMinimumClearanceEm;
|
|
18
|
+
emphasisDotGapEm;
|
|
19
|
+
static DEFAULT_EMPHASIS_DOT_GAP_EM = 0.1;
|
|
20
|
+
static DEFAULT_INLINE_OBJECT_MINIMUM_CLEARANCE_EM = 0.1;
|
|
21
|
+
constructor(lastLineAlignment = null, writingMode = null, lineHeight = null, firstLineIndent = null, blockIndent = null, firstLineIndentPolicy = null, lineLengthGrid = null, rubyLineHeightMode = null, inlineObjectMinimumClearanceEm = null, emphasisDotGapEm = null) {
|
|
22
|
+
this.lastLineAlignment = lastLineAlignment ?? LastLineAlignment.Start;
|
|
23
|
+
this.writingMode = writingMode ?? WritingMode.HorizontalTb;
|
|
24
|
+
this.lineHeight = lineHeight ?? null;
|
|
25
|
+
this.firstLineIndent = firstLineIndent ?? null;
|
|
26
|
+
this.blockIndent = blockIndent ?? Zero;
|
|
27
|
+
this.firstLineIndentPolicy = firstLineIndentPolicy ?? new MeasureAdaptiveFirstLineIndent(14.0, 1.0, 2.0);
|
|
28
|
+
this.lineLengthGrid = lineLengthGrid ?? new LineLengthGrid(true, null);
|
|
29
|
+
this.rubyLineHeightMode = rubyLineHeightMode ?? RubyLineHeightMode.PerLine;
|
|
30
|
+
this.inlineObjectMinimumClearanceEm = inlineObjectMinimumClearanceEm ?? ParagraphStyle.DEFAULT_INLINE_OBJECT_MINIMUM_CLEARANCE_EM;
|
|
31
|
+
this.emphasisDotGapEm = emphasisDotGapEm ?? ParagraphStyle.DEFAULT_EMPHASIS_DOT_GAP_EM;
|
|
32
|
+
}
|
|
33
|
+
toString() {
|
|
34
|
+
return `ParagraphStyle(lastLineAlignment=${this.lastLineAlignment.kind}, writingMode=${this.writingMode.kind}, lineHeight=${this.lineHeight}, firstLineIndent=${(this.firstLineIndent === null ? "null" : toString(this.firstLineIndent))}, blockIndent=${toString(this.blockIndent)}, firstLineIndentPolicy=${this.firstLineIndentPolicy.toString()}, lineLengthGrid=${this.lineLengthGrid.toString()}, rubyLineHeightMode=${this.rubyLineHeightMode.kind}, inlineObjectMinimumClearanceEm=${this.inlineObjectMinimumClearanceEm}, emphasisDotGapEm=${this.emphasisDotGapEm})`;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Rect } from "./Rect.js";
|
|
2
|
+
import { type TextRange } from "./TextRange.js";
|
|
3
|
+
export declare class PositionedCluster {
|
|
4
|
+
readonly lineIndex: number;
|
|
5
|
+
readonly clusterIndex: number;
|
|
6
|
+
readonly range: TextRange;
|
|
7
|
+
readonly left: number;
|
|
8
|
+
readonly top: number;
|
|
9
|
+
readonly right: number;
|
|
10
|
+
readonly bottom: number;
|
|
11
|
+
readonly baseline: number;
|
|
12
|
+
readonly drawX: number;
|
|
13
|
+
readonly sourceStops: readonly number[] | null;
|
|
14
|
+
constructor(lineIndex: number, clusterIndex: number, range: TextRange, left: number, top: number, right: number, bottom: number, baseline: number, drawX: number, sourceStops: number[] | null);
|
|
15
|
+
get width(): number;
|
|
16
|
+
get_width(): number;
|
|
17
|
+
get height(): number;
|
|
18
|
+
get_height(): number;
|
|
19
|
+
get rect(): Rect;
|
|
20
|
+
get_rect(): Rect;
|
|
21
|
+
toString(): string;
|
|
22
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { Rect } from "./Rect.js";
|
|
3
|
+
export class PositionedCluster {
|
|
4
|
+
lineIndex;
|
|
5
|
+
clusterIndex;
|
|
6
|
+
range;
|
|
7
|
+
left;
|
|
8
|
+
top;
|
|
9
|
+
right;
|
|
10
|
+
bottom;
|
|
11
|
+
baseline;
|
|
12
|
+
drawX;
|
|
13
|
+
sourceStops;
|
|
14
|
+
constructor(lineIndex, clusterIndex, range, left, top, right, bottom, baseline, drawX, sourceStops) {
|
|
15
|
+
this.lineIndex = lineIndex;
|
|
16
|
+
this.clusterIndex = clusterIndex;
|
|
17
|
+
this.range = range;
|
|
18
|
+
this.left = left;
|
|
19
|
+
this.top = top;
|
|
20
|
+
this.right = right;
|
|
21
|
+
this.bottom = bottom;
|
|
22
|
+
this.baseline = baseline;
|
|
23
|
+
this.drawX = drawX;
|
|
24
|
+
this.sourceStops = sourceStops;
|
|
25
|
+
}
|
|
26
|
+
get width() {
|
|
27
|
+
return this.get_width();
|
|
28
|
+
}
|
|
29
|
+
get_width() {
|
|
30
|
+
return this.right - this.left;
|
|
31
|
+
}
|
|
32
|
+
get height() {
|
|
33
|
+
return this.get_height();
|
|
34
|
+
}
|
|
35
|
+
get_height() {
|
|
36
|
+
return this.bottom - this.top;
|
|
37
|
+
}
|
|
38
|
+
get rect() {
|
|
39
|
+
return this.get_rect();
|
|
40
|
+
}
|
|
41
|
+
get_rect() {
|
|
42
|
+
return new Rect(this.left, this.top, this.right, this.bottom);
|
|
43
|
+
}
|
|
44
|
+
toString() {
|
|
45
|
+
return `PositionedCluster(lineIndex=${this.lineIndex}, clusterIndex=${this.clusterIndex}, range=${this.range.toString()}, left=${this.left}, top=${this.top}, right=${this.right}, bottom=${this.bottom}, baseline=${this.baseline}, drawX=${this.drawX}, sourceStops=${(this.sourceStops === null ? "null" : (() => { let out = "["; const n = this.sourceStops.length; for (let i = 0; i < n; i += 1) {
|
|
46
|
+
if (i > 0) {
|
|
47
|
+
out += ", ";
|
|
48
|
+
}
|
|
49
|
+
out += this.sourceStops[i];
|
|
50
|
+
} out += "]"; return out; })())})`;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { type Rect } from "./Rect.js";
|
|
2
|
+
import { type TextRange } from "./TextRange.js";
|
|
3
|
+
export declare class PunctuationDecisionInfo {
|
|
4
|
+
readonly range: TextRange;
|
|
5
|
+
readonly char: string;
|
|
6
|
+
readonly punctuationClass: string;
|
|
7
|
+
readonly advance: number;
|
|
8
|
+
readonly bodyWidth: number;
|
|
9
|
+
readonly leadingGlueNatural: number;
|
|
10
|
+
readonly trailingGlueNatural: number;
|
|
11
|
+
readonly anchor: string;
|
|
12
|
+
readonly inkBounds: Rect | null;
|
|
13
|
+
readonly geometrySource: string;
|
|
14
|
+
readonly policyBodyFloor: number;
|
|
15
|
+
readonly inkWidth: number | null;
|
|
16
|
+
readonly inkCenter: number | null;
|
|
17
|
+
readonly inkContainmentBodyFloor: number | null;
|
|
18
|
+
readonly inkContainmentApplied: boolean;
|
|
19
|
+
readonly inkBoundsFallback: string | null;
|
|
20
|
+
readonly haltAdvance: number | null;
|
|
21
|
+
readonly haltValidation: string | null;
|
|
22
|
+
readonly advanceExpansion: number;
|
|
23
|
+
readonly glyphInlineShift: number;
|
|
24
|
+
readonly glyphPlacementReason: string | null;
|
|
25
|
+
readonly leadingGlueInitiallyConsumed: number;
|
|
26
|
+
readonly trailingGlueInitiallyConsumed: number;
|
|
27
|
+
constructor(range: TextRange, char: string, punctuationClass: string, advance: number, bodyWidth: number, leadingGlueNatural: number, trailingGlueNatural: number, anchor: string, inkBounds: Rect | null, geometrySource: string | null, policyBodyFloor: number, inkWidth?: number | null, inkCenter?: number | null, inkContainmentBodyFloor?: number | null, inkContainmentApplied?: boolean | null, inkBoundsFallback?: string | null, haltAdvance?: number | null, haltValidation?: string | null, advanceExpansion?: number | null, glyphInlineShift?: number | null, glyphPlacementReason?: string | null, leadingGlueInitiallyConsumed?: number | null, trailingGlueInitiallyConsumed?: number | null);
|
|
28
|
+
toString(): string;
|
|
29
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class PunctuationDecisionInfo {
|
|
3
|
+
range;
|
|
4
|
+
char;
|
|
5
|
+
punctuationClass;
|
|
6
|
+
advance;
|
|
7
|
+
bodyWidth;
|
|
8
|
+
leadingGlueNatural;
|
|
9
|
+
trailingGlueNatural;
|
|
10
|
+
anchor;
|
|
11
|
+
inkBounds;
|
|
12
|
+
geometrySource;
|
|
13
|
+
policyBodyFloor;
|
|
14
|
+
inkWidth;
|
|
15
|
+
inkCenter;
|
|
16
|
+
inkContainmentBodyFloor;
|
|
17
|
+
inkContainmentApplied;
|
|
18
|
+
inkBoundsFallback;
|
|
19
|
+
haltAdvance;
|
|
20
|
+
haltValidation;
|
|
21
|
+
advanceExpansion;
|
|
22
|
+
glyphInlineShift;
|
|
23
|
+
glyphPlacementReason;
|
|
24
|
+
leadingGlueInitiallyConsumed;
|
|
25
|
+
trailingGlueInitiallyConsumed;
|
|
26
|
+
constructor(range, char, punctuationClass, advance, bodyWidth, leadingGlueNatural, trailingGlueNatural, anchor, inkBounds = null, geometrySource = null, policyBodyFloor, inkWidth = null, inkCenter = null, inkContainmentBodyFloor = null, inkContainmentApplied = null, inkBoundsFallback = null, haltAdvance = null, haltValidation = null, advanceExpansion = null, glyphInlineShift = null, glyphPlacementReason = null, leadingGlueInitiallyConsumed = null, trailingGlueInitiallyConsumed = null) {
|
|
27
|
+
this.range = range;
|
|
28
|
+
this.char = char;
|
|
29
|
+
this.punctuationClass = punctuationClass;
|
|
30
|
+
this.advance = advance;
|
|
31
|
+
this.bodyWidth = bodyWidth;
|
|
32
|
+
this.leadingGlueNatural = leadingGlueNatural;
|
|
33
|
+
this.trailingGlueNatural = trailingGlueNatural;
|
|
34
|
+
this.anchor = anchor;
|
|
35
|
+
this.inkBounds = inkBounds ?? null;
|
|
36
|
+
this.geometrySource = geometrySource ?? "PolicyDerived";
|
|
37
|
+
this.policyBodyFloor = policyBodyFloor;
|
|
38
|
+
this.inkWidth = inkWidth ?? null;
|
|
39
|
+
this.inkCenter = inkCenter ?? null;
|
|
40
|
+
this.inkContainmentBodyFloor = inkContainmentBodyFloor ?? null;
|
|
41
|
+
this.inkContainmentApplied = inkContainmentApplied ?? false;
|
|
42
|
+
this.inkBoundsFallback = inkBoundsFallback ?? null;
|
|
43
|
+
this.haltAdvance = haltAdvance ?? null;
|
|
44
|
+
this.haltValidation = haltValidation ?? null;
|
|
45
|
+
this.advanceExpansion = advanceExpansion ?? 0.0;
|
|
46
|
+
this.glyphInlineShift = glyphInlineShift ?? 0.0;
|
|
47
|
+
this.glyphPlacementReason = glyphPlacementReason ?? null;
|
|
48
|
+
this.leadingGlueInitiallyConsumed = leadingGlueInitiallyConsumed ?? 0.0;
|
|
49
|
+
this.trailingGlueInitiallyConsumed = trailingGlueInitiallyConsumed ?? 0.0;
|
|
50
|
+
}
|
|
51
|
+
toString() {
|
|
52
|
+
return `PunctuationDecisionInfo(range=${this.range.toString()}, char=${this.char}, punctuationClass=${this.punctuationClass}, advance=${this.advance}, bodyWidth=${this.bodyWidth}, leadingGlueNatural=${this.leadingGlueNatural}, trailingGlueNatural=${this.trailingGlueNatural}, anchor=${this.anchor}, inkBounds=${(this.inkBounds === null ? "null" : this.inkBounds.toString())}, geometrySource=${this.geometrySource}, policyBodyFloor=${this.policyBodyFloor}, inkWidth=${this.inkWidth}, inkCenter=${this.inkCenter}, inkContainmentBodyFloor=${this.inkContainmentBodyFloor}, inkContainmentApplied=${this.inkContainmentApplied}, inkBoundsFallback=${this.inkBoundsFallback}, haltAdvance=${this.haltAdvance}, haltValidation=${this.haltValidation}, advanceExpansion=${this.advanceExpansion}, glyphInlineShift=${this.glyphInlineShift}, glyphPlacementReason=${this.glyphPlacementReason}, leadingGlueInitiallyConsumed=${this.leadingGlueInitiallyConsumed}, trailingGlueInitiallyConsumed=${this.trailingGlueInitiallyConsumed})`;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class Rect {
|
|
2
|
+
readonly left: number;
|
|
3
|
+
readonly top: number;
|
|
4
|
+
readonly right: number;
|
|
5
|
+
readonly bottom: number;
|
|
6
|
+
constructor(left: number, top: number, right: number, bottom: number);
|
|
7
|
+
get width(): number;
|
|
8
|
+
get_width(): number;
|
|
9
|
+
get height(): number;
|
|
10
|
+
get_height(): number;
|
|
11
|
+
toString(): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class Rect {
|
|
3
|
+
left;
|
|
4
|
+
top;
|
|
5
|
+
right;
|
|
6
|
+
bottom;
|
|
7
|
+
constructor(left, top, right, bottom) {
|
|
8
|
+
this.left = left;
|
|
9
|
+
this.top = top;
|
|
10
|
+
this.right = right;
|
|
11
|
+
this.bottom = bottom;
|
|
12
|
+
}
|
|
13
|
+
get width() {
|
|
14
|
+
return this.get_width();
|
|
15
|
+
}
|
|
16
|
+
get_width() {
|
|
17
|
+
return this.right - this.left;
|
|
18
|
+
}
|
|
19
|
+
get height() {
|
|
20
|
+
return this.get_height();
|
|
21
|
+
}
|
|
22
|
+
get_height() {
|
|
23
|
+
return this.bottom - this.top;
|
|
24
|
+
}
|
|
25
|
+
toString() {
|
|
26
|
+
return `Rect(left=${this.left}, top=${this.top}, right=${this.right}, bottom=${this.bottom})`;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export type RichTextBackgroundDrawStyleToStringFn = () => string;
|
|
2
|
+
export interface RichTextBackgroundDrawStyle {
|
|
3
|
+
readonly toString: RichTextBackgroundDrawStyleToStringFn;
|
|
4
|
+
}
|
|
5
|
+
export declare class Fill implements RichTextBackgroundDrawStyle {
|
|
6
|
+
static readonly instance: Fill;
|
|
7
|
+
constructor();
|
|
8
|
+
toString(): string;
|
|
9
|
+
}
|
|
10
|
+
export declare class Border implements RichTextBackgroundDrawStyle {
|
|
11
|
+
readonly strokeWidth: number;
|
|
12
|
+
constructor(strokeWidth: number);
|
|
13
|
+
toString(): string;
|
|
14
|
+
private static isFinite;
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { TiqianIllegalArgumentException } from "./TiqianIllegalArgumentException.js";
|
|
3
|
+
export class Fill {
|
|
4
|
+
static instance = new Fill();
|
|
5
|
+
constructor() {
|
|
6
|
+
}
|
|
7
|
+
toString() {
|
|
8
|
+
return "Fill";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export class Border {
|
|
12
|
+
strokeWidth;
|
|
13
|
+
constructor(strokeWidth) {
|
|
14
|
+
if (!Border.isFinite(strokeWidth) || strokeWidth <= 0.0) {
|
|
15
|
+
throw new TiqianIllegalArgumentException({ kind: "Message", text: "Failed requirement." });
|
|
16
|
+
}
|
|
17
|
+
this.strokeWidth = strokeWidth;
|
|
18
|
+
}
|
|
19
|
+
toString() {
|
|
20
|
+
return `Border(strokeWidth=${this.strokeWidth})`;
|
|
21
|
+
}
|
|
22
|
+
static isFinite(value) {
|
|
23
|
+
return value === value && value !== Infinity && value !== -Infinity;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface MarkedFaces {
|
|
2
|
+
readonly kind: "MarkedFaces";
|
|
3
|
+
}
|
|
4
|
+
export interface UniformTextStyle {
|
|
5
|
+
readonly kind: "UniformTextStyle";
|
|
6
|
+
}
|
|
7
|
+
export interface UniformParagraphStyle {
|
|
8
|
+
readonly kind: "UniformParagraphStyle";
|
|
9
|
+
}
|
|
10
|
+
export type RichTextBackgroundMetricPolicy = MarkedFaces | UniformTextStyle | UniformParagraphStyle;
|
|
11
|
+
export declare const RichTextBackgroundMetricPolicy: Readonly<{
|
|
12
|
+
MarkedFaces: Readonly<MarkedFaces>;
|
|
13
|
+
UniformTextStyle: Readonly<UniformTextStyle>;
|
|
14
|
+
UniformParagraphStyle: Readonly<UniformParagraphStyle>;
|
|
15
|
+
}>;
|
|
16
|
+
export declare function compareRichTextBackgroundMetricPolicy(a: RichTextBackgroundMetricPolicy, b: RichTextBackgroundMetricPolicy): number;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export const RichTextBackgroundMetricPolicy = Object.freeze({
|
|
3
|
+
MarkedFaces: Object.freeze({ kind: "MarkedFaces" }),
|
|
4
|
+
UniformTextStyle: Object.freeze({ kind: "UniformTextStyle" }),
|
|
5
|
+
UniformParagraphStyle: Object.freeze({ kind: "UniformParagraphStyle" })
|
|
6
|
+
});
|
|
7
|
+
export function compareRichTextBackgroundMetricPolicy(a, b) {
|
|
8
|
+
if (a === b)
|
|
9
|
+
return 0;
|
|
10
|
+
if (a.kind === "MarkedFaces")
|
|
11
|
+
return 0 - (b.kind === "MarkedFaces" ? 0 : 0);
|
|
12
|
+
if (a.kind === "UniformTextStyle")
|
|
13
|
+
return 1 - (b.kind === "UniformTextStyle" ? 1 : 0);
|
|
14
|
+
if (a.kind === "UniformParagraphStyle")
|
|
15
|
+
return 2 - (b.kind === "UniformParagraphStyle" ? 2 : 0);
|
|
16
|
+
return 0;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { type RichTextBackgroundDrawStyle } from "./RichTextBackgroundDrawStyle.js";
|
|
2
|
+
import { RichTextBackgroundMetricPolicy } from "./RichTextBackgroundMetricPolicy.js";
|
|
3
|
+
export declare class RichTextBackgroundPaint {
|
|
4
|
+
readonly horizontalPadding: number;
|
|
5
|
+
readonly verticalPadding: number;
|
|
6
|
+
readonly cornerRadius: number;
|
|
7
|
+
readonly continuationCornerRadius: number;
|
|
8
|
+
readonly metricPolicy: RichTextBackgroundMetricPolicy;
|
|
9
|
+
readonly drawStyle: RichTextBackgroundDrawStyle;
|
|
10
|
+
static readonly Default: RichTextBackgroundPaint;
|
|
11
|
+
constructor(horizontalPadding?: number | null, verticalPadding?: number | null, cornerRadius?: number | null, continuationCornerRadius?: number | null, metricPolicy?: RichTextBackgroundMetricPolicy | null, drawStyle?: RichTextBackgroundDrawStyle | null);
|
|
12
|
+
toString(): string;
|
|
13
|
+
static withHorizontalPadding(value: number): RichTextBackgroundPaint;
|
|
14
|
+
static withMetricPolicy(value: RichTextBackgroundMetricPolicy): RichTextBackgroundPaint;
|
|
15
|
+
static withCornerRadius(corner: number, continuation: number | null): RichTextBackgroundPaint;
|
|
16
|
+
static sameValues(a: RichTextBackgroundPaint, b: RichTextBackgroundPaint): boolean;
|
|
17
|
+
private static sameDrawStyle;
|
|
18
|
+
private static isFinite;
|
|
19
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { Border, Fill } from "./RichTextBackgroundDrawStyle.js";
|
|
3
|
+
import { RichTextBackgroundMetricPolicy } from "./RichTextBackgroundMetricPolicy.js";
|
|
4
|
+
import { TiqianIllegalArgumentException } from "./TiqianIllegalArgumentException.js";
|
|
5
|
+
export class RichTextBackgroundPaint {
|
|
6
|
+
horizontalPadding;
|
|
7
|
+
verticalPadding;
|
|
8
|
+
cornerRadius;
|
|
9
|
+
continuationCornerRadius;
|
|
10
|
+
metricPolicy;
|
|
11
|
+
drawStyle;
|
|
12
|
+
static Default = new RichTextBackgroundPaint(0.0, 0.0, 0.0, 0.0, RichTextBackgroundMetricPolicy.MarkedFaces, Fill.instance);
|
|
13
|
+
constructor(horizontalPadding = null, verticalPadding = null, cornerRadius = null, continuationCornerRadius = null, metricPolicy = null, drawStyle = null) {
|
|
14
|
+
this.horizontalPadding = horizontalPadding ?? 0.0;
|
|
15
|
+
this.verticalPadding = verticalPadding ?? 0.0;
|
|
16
|
+
this.cornerRadius = cornerRadius ?? 0.0;
|
|
17
|
+
this.continuationCornerRadius = continuationCornerRadius ?? (cornerRadius ?? 0.0);
|
|
18
|
+
this.metricPolicy = metricPolicy ?? RichTextBackgroundMetricPolicy.MarkedFaces;
|
|
19
|
+
this.drawStyle = drawStyle ?? Fill.instance;
|
|
20
|
+
if (!RichTextBackgroundPaint.isFinite(this.horizontalPadding) || this.horizontalPadding < 0.0 || !RichTextBackgroundPaint.isFinite(this.verticalPadding) || this.verticalPadding < 0.0 || !RichTextBackgroundPaint.isFinite(this.cornerRadius) || this.cornerRadius < 0.0 || !RichTextBackgroundPaint.isFinite(this.continuationCornerRadius) || this.continuationCornerRadius < 0.0) {
|
|
21
|
+
throw new TiqianIllegalArgumentException({ kind: "Message", text: "Failed requirement." });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
toString() {
|
|
25
|
+
return `RichTextBackgroundPaint(horizontalPadding=${this.horizontalPadding}, verticalPadding=${this.verticalPadding}, cornerRadius=${this.cornerRadius}, continuationCornerRadius=${this.continuationCornerRadius}, metricPolicy=${this.metricPolicy.kind}, drawStyle=${this.drawStyle.toString()})`;
|
|
26
|
+
}
|
|
27
|
+
static withHorizontalPadding(value) {
|
|
28
|
+
return new RichTextBackgroundPaint(value, 0.0, 0.0, 0.0, RichTextBackgroundMetricPolicy.MarkedFaces, Fill.instance);
|
|
29
|
+
}
|
|
30
|
+
static withMetricPolicy(value) {
|
|
31
|
+
return new RichTextBackgroundPaint(0.0, 0.0, 0.0, 0.0, value, Fill.instance);
|
|
32
|
+
}
|
|
33
|
+
static withCornerRadius(corner, continuation) {
|
|
34
|
+
return new RichTextBackgroundPaint(0.0, 0.0, corner, continuation, RichTextBackgroundMetricPolicy.MarkedFaces, Fill.instance);
|
|
35
|
+
}
|
|
36
|
+
static sameValues(a, b) {
|
|
37
|
+
return a.horizontalPadding === b.horizontalPadding && a.verticalPadding === b.verticalPadding && a.cornerRadius === b.cornerRadius && a.continuationCornerRadius === b.continuationCornerRadius && a.metricPolicy === b.metricPolicy && RichTextBackgroundPaint.sameDrawStyle(a.drawStyle, b.drawStyle);
|
|
38
|
+
}
|
|
39
|
+
static sameDrawStyle(a, b) {
|
|
40
|
+
if (a instanceof Fill || b instanceof Fill) {
|
|
41
|
+
return a instanceof Fill && b instanceof Fill && Fill.instance === a && Fill.instance === b;
|
|
42
|
+
}
|
|
43
|
+
if (a instanceof Border && b instanceof Border) {
|
|
44
|
+
return a.strokeWidth === b.strokeWidth;
|
|
45
|
+
}
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
static isFinite(value) {
|
|
49
|
+
return value === value && value !== Infinity && value !== -Infinity;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class RichTextCornerRadii {
|
|
2
|
+
readonly topLeft: number;
|
|
3
|
+
readonly topRight: number;
|
|
4
|
+
readonly bottomRight: number;
|
|
5
|
+
readonly bottomLeft: number;
|
|
6
|
+
constructor(topLeft: number, topRight: number, bottomRight: number, bottomLeft: number);
|
|
7
|
+
get isSquare(): boolean;
|
|
8
|
+
get_isSquare(): boolean;
|
|
9
|
+
get isUniform(): boolean;
|
|
10
|
+
get_isUniform(): boolean;
|
|
11
|
+
toString(): string;
|
|
12
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
export class RichTextCornerRadii {
|
|
3
|
+
topLeft;
|
|
4
|
+
topRight;
|
|
5
|
+
bottomRight;
|
|
6
|
+
bottomLeft;
|
|
7
|
+
constructor(topLeft, topRight, bottomRight, bottomLeft) {
|
|
8
|
+
this.topLeft = topLeft;
|
|
9
|
+
this.topRight = topRight;
|
|
10
|
+
this.bottomRight = bottomRight;
|
|
11
|
+
this.bottomLeft = bottomLeft;
|
|
12
|
+
}
|
|
13
|
+
get isSquare() {
|
|
14
|
+
return this.get_isSquare();
|
|
15
|
+
}
|
|
16
|
+
get_isSquare() {
|
|
17
|
+
return this.topLeft === 0.0 && this.topRight === 0.0 && this.bottomRight === 0.0 && this.bottomLeft === 0.0;
|
|
18
|
+
}
|
|
19
|
+
get isUniform() {
|
|
20
|
+
return this.get_isUniform();
|
|
21
|
+
}
|
|
22
|
+
get_isUniform() {
|
|
23
|
+
return this.topLeft === this.topRight && this.topRight === this.bottomRight && this.bottomRight === this.bottomLeft;
|
|
24
|
+
}
|
|
25
|
+
toString() {
|
|
26
|
+
return `RichTextCornerRadii(topLeft=${this.topLeft}, topRight=${this.topRight}, bottomRight=${this.bottomRight}, bottomLeft=${this.bottomLeft})`;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ColorSpan } from "./ColorSpan.js";
|
|
2
|
+
import { type DecorationSpan } from "./DecorationSpan.js";
|
|
3
|
+
import { type RichTextSpan } from "./RichTextSpan.js";
|
|
4
|
+
import { type RubySpan } from "./RubySpan.js";
|
|
5
|
+
import { type TextSpan } from "./TextSpan.js";
|
|
6
|
+
export declare function sourceBoundariesForPresentation(textLength: number, decorations?: readonly DecorationSpan[] | null, colorSpans?: readonly ColorSpan[] | null, richTextSpans?: readonly RichTextSpan[] | null, textSpans?: readonly TextSpan[] | null, rubySpans?: readonly RubySpan[] | null): number[];
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { SortedTable } from "../../../runtime.js";
|
|
3
|
+
export function sourceBoundariesForPresentation(textLength, decorations, colorSpans, richTextSpans, textSpans, rubySpans) {
|
|
4
|
+
decorations = decorations ?? null;
|
|
5
|
+
colorSpans = colorSpans ?? null;
|
|
6
|
+
richTextSpans = richTextSpans ?? null;
|
|
7
|
+
textSpans = textSpans ?? null;
|
|
8
|
+
rubySpans = rubySpans ?? null;
|
|
9
|
+
const builder = SortedTable.setBuilder(SortedTable.compareInts);
|
|
10
|
+
const addBoundary = (offset) => {
|
|
11
|
+
if (offset > 0 && offset < textLength) {
|
|
12
|
+
builder.put(offset);
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
const addRange = (start, end) => {
|
|
16
|
+
addBoundary(start);
|
|
17
|
+
addBoundary(end);
|
|
18
|
+
};
|
|
19
|
+
if (decorations !== null) {
|
|
20
|
+
let i = 0;
|
|
21
|
+
while (i < decorations.length) {
|
|
22
|
+
addRange(decorations[i].range.start, decorations[i].range.end);
|
|
23
|
+
i += 1;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
if (colorSpans !== null) {
|
|
27
|
+
let i2 = 0;
|
|
28
|
+
while (i2 < colorSpans.length) {
|
|
29
|
+
addRange(colorSpans[i2].start, colorSpans[i2].end);
|
|
30
|
+
i2 += 1;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
if (richTextSpans !== null) {
|
|
34
|
+
let i3 = 0;
|
|
35
|
+
while (i3 < richTextSpans.length) {
|
|
36
|
+
addRange(richTextSpans[i3].range.start, richTextSpans[i3].range.end);
|
|
37
|
+
i3 += 1;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
if (textSpans !== null) {
|
|
41
|
+
let i4 = 0;
|
|
42
|
+
while (i4 < textSpans.length) {
|
|
43
|
+
addRange(textSpans[i4].range.start, textSpans[i4].range.end);
|
|
44
|
+
i4 += 1;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if (rubySpans !== null) {
|
|
48
|
+
let i5 = 0;
|
|
49
|
+
while (i5 < rubySpans.length) {
|
|
50
|
+
addRange(rubySpans[i5].baseRange.start, rubySpans[i5].baseRange.end);
|
|
51
|
+
i5 += 1;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const set = builder.build();
|
|
55
|
+
const out = new Array();
|
|
56
|
+
let index = 0;
|
|
57
|
+
while (index < set.size()) {
|
|
58
|
+
out.push(set.at(index));
|
|
59
|
+
index += 1;
|
|
60
|
+
}
|
|
61
|
+
return out;
|
|
62
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export type RichTextLinePatternToStringFn = () => string;
|
|
2
|
+
export interface RichTextLinePattern {
|
|
3
|
+
readonly toString: RichTextLinePatternToStringFn;
|
|
4
|
+
}
|
|
5
|
+
export declare class Solid implements RichTextLinePattern {
|
|
6
|
+
static readonly instance: Solid;
|
|
7
|
+
constructor();
|
|
8
|
+
toString(): string;
|
|
9
|
+
}
|
|
10
|
+
export declare class Dashed implements RichTextLinePattern {
|
|
11
|
+
readonly strokeWidth: number;
|
|
12
|
+
readonly dashLength: number;
|
|
13
|
+
readonly gapLength: number;
|
|
14
|
+
constructor(strokeWidth: number, dashLength: number, gapLength: number);
|
|
15
|
+
toString(): string;
|
|
16
|
+
private static isFinite;
|
|
17
|
+
}
|
|
18
|
+
export declare class Dotted implements RichTextLinePattern {
|
|
19
|
+
readonly dotDiameter: number;
|
|
20
|
+
readonly gapLength: number;
|
|
21
|
+
constructor(dotDiameter: number, gapLength: number);
|
|
22
|
+
toString(): string;
|
|
23
|
+
private static isFinite;
|
|
24
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { TiqianIllegalArgumentException } from "./TiqianIllegalArgumentException.js";
|
|
3
|
+
export class Solid {
|
|
4
|
+
static instance = new Solid();
|
|
5
|
+
constructor() {
|
|
6
|
+
}
|
|
7
|
+
toString() {
|
|
8
|
+
return "Solid";
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
export class Dashed {
|
|
12
|
+
strokeWidth;
|
|
13
|
+
dashLength;
|
|
14
|
+
gapLength;
|
|
15
|
+
constructor(strokeWidth, dashLength, gapLength) {
|
|
16
|
+
if (!Dashed.isFinite(strokeWidth) || strokeWidth <= 0.0 || !Dashed.isFinite(dashLength) || dashLength <= 0.0 || !Dashed.isFinite(gapLength) || gapLength <= 0.0) {
|
|
17
|
+
throw new TiqianIllegalArgumentException({ kind: "Message", text: "Failed requirement." });
|
|
18
|
+
}
|
|
19
|
+
this.strokeWidth = strokeWidth;
|
|
20
|
+
this.dashLength = dashLength;
|
|
21
|
+
this.gapLength = gapLength;
|
|
22
|
+
}
|
|
23
|
+
toString() {
|
|
24
|
+
return `Dashed(strokeWidth=${this.strokeWidth}, dashLength=${this.dashLength}, gapLength=${this.gapLength})`;
|
|
25
|
+
}
|
|
26
|
+
static isFinite(value) {
|
|
27
|
+
return value === value && value !== Infinity && value !== -Infinity;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
export class Dotted {
|
|
31
|
+
dotDiameter;
|
|
32
|
+
gapLength;
|
|
33
|
+
constructor(dotDiameter, gapLength) {
|
|
34
|
+
if (!Dotted.isFinite(dotDiameter) || dotDiameter <= 0.0 || !Dotted.isFinite(gapLength) || gapLength <= 0.0) {
|
|
35
|
+
throw new TiqianIllegalArgumentException({ kind: "Message", text: "Failed requirement." });
|
|
36
|
+
}
|
|
37
|
+
this.dotDiameter = dotDiameter;
|
|
38
|
+
this.gapLength = gapLength;
|
|
39
|
+
}
|
|
40
|
+
toString() {
|
|
41
|
+
return `Dotted(dotDiameter=${this.dotDiameter}, gapLength=${this.gapLength})`;
|
|
42
|
+
}
|
|
43
|
+
static isFinite(value) {
|
|
44
|
+
return value === value && value !== Infinity && value !== -Infinity;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Rect } from "./Rect.js";
|
|
2
|
+
import { type RichTextSpan } from "./RichTextSpan.js";
|
|
3
|
+
import { type TextRange } from "./TextRange.js";
|
|
4
|
+
export declare class RichTextLineSegment {
|
|
5
|
+
readonly span: RichTextSpan;
|
|
6
|
+
readonly lineIndex: number;
|
|
7
|
+
readonly range: TextRange;
|
|
8
|
+
readonly left: number;
|
|
9
|
+
readonly top: number;
|
|
10
|
+
readonly right: number;
|
|
11
|
+
readonly bottom: number;
|
|
12
|
+
readonly baseline: number;
|
|
13
|
+
constructor(span: RichTextSpan, lineIndex: number, range: TextRange, left: number, top: number, right: number, bottom: number, baseline: number);
|
|
14
|
+
get width(): number;
|
|
15
|
+
get_width(): number;
|
|
16
|
+
get height(): number;
|
|
17
|
+
get_height(): number;
|
|
18
|
+
get rect(): Rect;
|
|
19
|
+
get_rect(): Rect;
|
|
20
|
+
get continuesFromPreviousLine(): boolean;
|
|
21
|
+
get_continuesFromPreviousLine(): boolean;
|
|
22
|
+
get continuesOnNextLine(): boolean;
|
|
23
|
+
get_continuesOnNextLine(): boolean;
|
|
24
|
+
toString(): string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { Rect } from "./Rect.js";
|
|
3
|
+
export class RichTextLineSegment {
|
|
4
|
+
span;
|
|
5
|
+
lineIndex;
|
|
6
|
+
range;
|
|
7
|
+
left;
|
|
8
|
+
top;
|
|
9
|
+
right;
|
|
10
|
+
bottom;
|
|
11
|
+
baseline;
|
|
12
|
+
constructor(span, lineIndex, range, left, top, right, bottom, baseline) {
|
|
13
|
+
this.span = span;
|
|
14
|
+
this.lineIndex = lineIndex;
|
|
15
|
+
this.range = range;
|
|
16
|
+
this.left = left;
|
|
17
|
+
this.top = top;
|
|
18
|
+
this.right = right;
|
|
19
|
+
this.bottom = bottom;
|
|
20
|
+
this.baseline = baseline;
|
|
21
|
+
}
|
|
22
|
+
get width() {
|
|
23
|
+
return this.get_width();
|
|
24
|
+
}
|
|
25
|
+
get_width() {
|
|
26
|
+
return this.right - this.left;
|
|
27
|
+
}
|
|
28
|
+
get height() {
|
|
29
|
+
return this.get_height();
|
|
30
|
+
}
|
|
31
|
+
get_height() {
|
|
32
|
+
return this.bottom - this.top;
|
|
33
|
+
}
|
|
34
|
+
get rect() {
|
|
35
|
+
return this.get_rect();
|
|
36
|
+
}
|
|
37
|
+
get_rect() {
|
|
38
|
+
return new Rect(this.left, this.top, this.right, this.bottom);
|
|
39
|
+
}
|
|
40
|
+
get continuesFromPreviousLine() {
|
|
41
|
+
return this.get_continuesFromPreviousLine();
|
|
42
|
+
}
|
|
43
|
+
get_continuesFromPreviousLine() {
|
|
44
|
+
return this.range.start > this.span.range.start;
|
|
45
|
+
}
|
|
46
|
+
get continuesOnNextLine() {
|
|
47
|
+
return this.get_continuesOnNextLine();
|
|
48
|
+
}
|
|
49
|
+
get_continuesOnNextLine() {
|
|
50
|
+
return this.range.end < this.span.range.end;
|
|
51
|
+
}
|
|
52
|
+
toString() {
|
|
53
|
+
return `RichTextLineSegment(span=${this.span.toString()}, lineIndex=${this.lineIndex}, range=${this.range.toString()}, left=${this.left}, top=${this.top}, right=${this.right}, bottom=${this.bottom}, baseline=${this.baseline})`;
|
|
54
|
+
}
|
|
55
|
+
}
|