@tiqian/engine 0.0.0-stage.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,48 @@
|
|
|
1
|
+
import { type FontRole } from "./../font/FontRole.js";
|
|
2
|
+
import { SortedMapTable, SortedSetTable } from "../../../runtime.js";
|
|
3
|
+
export type FontFaceId = string;
|
|
4
|
+
export declare function makeFontFaceId(value: string): FontFaceId;
|
|
5
|
+
export declare function of(value: string): FontFaceId;
|
|
6
|
+
export declare function fromString(value: string): FontFaceId;
|
|
7
|
+
export declare function toString(value: FontFaceId): string;
|
|
8
|
+
export declare class ReplayableFontFaceDescriptor {
|
|
9
|
+
readonly id: FontFaceId;
|
|
10
|
+
readonly familyAliases: SortedSetTable<string>;
|
|
11
|
+
readonly roles: FontRole[];
|
|
12
|
+
readonly weight: number;
|
|
13
|
+
readonly italic: boolean;
|
|
14
|
+
readonly collectionIndex: number;
|
|
15
|
+
readonly sourceLabel: string;
|
|
16
|
+
readonly variationAxes: SortedMapTable<string, number>;
|
|
17
|
+
constructor(id: FontFaceId, familyAliases: SortedSetTable<string>, roles: FontRole[], sourceLabel: string, weight: number, italic: boolean, collectionIndex: number, variationAxes?: SortedMapTable<string, number> | null);
|
|
18
|
+
}
|
|
19
|
+
export declare class ReplayableFontFaceRequest {
|
|
20
|
+
readonly role: FontRole;
|
|
21
|
+
readonly preferredFamilies: string[];
|
|
22
|
+
readonly fontSize: number;
|
|
23
|
+
readonly weight: number;
|
|
24
|
+
readonly italic: boolean;
|
|
25
|
+
readonly locale: string;
|
|
26
|
+
readonly selectionText: string;
|
|
27
|
+
constructor(role: FontRole, preferredFamilies: string[], fontSize: number, weight: number, italic: boolean, locale: string, selectionText: string);
|
|
28
|
+
}
|
|
29
|
+
export declare class FontBackendCapabilityIssue {
|
|
30
|
+
readonly code: string;
|
|
31
|
+
readonly detail: string;
|
|
32
|
+
constructor(code: string, detail: string);
|
|
33
|
+
}
|
|
34
|
+
export declare class FontBackendCapabilityReport {
|
|
35
|
+
readonly backend: string;
|
|
36
|
+
readonly sourceKind: string;
|
|
37
|
+
readonly faces: ReplayableFontFaceDescriptor[];
|
|
38
|
+
readonly issues: FontBackendCapabilityIssue[];
|
|
39
|
+
constructor(backend: string, sourceKind: string, faces: ReplayableFontFaceDescriptor[], issues?: FontBackendCapabilityIssue[] | null);
|
|
40
|
+
get canReplayFromControlledBytes(): boolean;
|
|
41
|
+
private get_canReplayFromControlledBytes;
|
|
42
|
+
}
|
|
43
|
+
export type ReplayableFontCatalogResolveFn = (request: ReplayableFontFaceRequest) => ReplayableFontFaceDescriptor | null;
|
|
44
|
+
export interface ReplayableFontCatalog {
|
|
45
|
+
readonly faces: ReplayableFontFaceDescriptor[];
|
|
46
|
+
readonly capabilityReport: FontBackendCapabilityReport;
|
|
47
|
+
readonly resolve: ReplayableFontCatalogResolveFn;
|
|
48
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { TiqianIllegalArgumentException } from "./../core/TiqianIllegalArgumentException.js";
|
|
3
|
+
import { SortedTable } from "../../../runtime.js";
|
|
4
|
+
export function makeFontFaceId(value) {
|
|
5
|
+
if (value === null || value.trim().length === 0) {
|
|
6
|
+
throw new TiqianIllegalArgumentException({ kind: "Message", text: "FontFaceId must not be blank" });
|
|
7
|
+
}
|
|
8
|
+
return value;
|
|
9
|
+
}
|
|
10
|
+
export function of(value) {
|
|
11
|
+
return makeFontFaceId(value);
|
|
12
|
+
}
|
|
13
|
+
export function fromString(value) {
|
|
14
|
+
return makeFontFaceId(value);
|
|
15
|
+
}
|
|
16
|
+
export function toString(value) {
|
|
17
|
+
return value;
|
|
18
|
+
}
|
|
19
|
+
export class ReplayableFontFaceDescriptor {
|
|
20
|
+
id;
|
|
21
|
+
familyAliases;
|
|
22
|
+
roles;
|
|
23
|
+
weight;
|
|
24
|
+
italic;
|
|
25
|
+
collectionIndex;
|
|
26
|
+
sourceLabel;
|
|
27
|
+
variationAxes;
|
|
28
|
+
constructor(id, familyAliases, roles, sourceLabel, weight, italic, collectionIndex, variationAxes = null) {
|
|
29
|
+
this.id = id;
|
|
30
|
+
this.familyAliases = familyAliases;
|
|
31
|
+
this.roles = roles;
|
|
32
|
+
this.weight = (weight);
|
|
33
|
+
this.italic = (italic);
|
|
34
|
+
this.collectionIndex = (collectionIndex);
|
|
35
|
+
this.sourceLabel = sourceLabel;
|
|
36
|
+
this.variationAxes = variationAxes ?? SortedTable.mapBuilder(SortedTable.compareStrings).build();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export class ReplayableFontFaceRequest {
|
|
40
|
+
role;
|
|
41
|
+
preferredFamilies;
|
|
42
|
+
fontSize;
|
|
43
|
+
weight;
|
|
44
|
+
italic;
|
|
45
|
+
locale;
|
|
46
|
+
selectionText;
|
|
47
|
+
constructor(role, preferredFamilies, fontSize, weight, italic, locale, selectionText) {
|
|
48
|
+
if (!(fontSize > 0 && Number.isFinite(fontSize))) {
|
|
49
|
+
throw new TiqianIllegalArgumentException({ kind: "Message", text: "fontSize must be positive and finite" });
|
|
50
|
+
}
|
|
51
|
+
this.role = role;
|
|
52
|
+
this.preferredFamilies = preferredFamilies;
|
|
53
|
+
this.fontSize = fontSize;
|
|
54
|
+
this.weight = weight;
|
|
55
|
+
this.italic = italic;
|
|
56
|
+
this.locale = locale;
|
|
57
|
+
this.selectionText = selectionText;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
export class FontBackendCapabilityIssue {
|
|
61
|
+
code;
|
|
62
|
+
detail;
|
|
63
|
+
constructor(code, detail) {
|
|
64
|
+
this.code = code;
|
|
65
|
+
this.detail = detail;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
export class FontBackendCapabilityReport {
|
|
69
|
+
backend;
|
|
70
|
+
sourceKind;
|
|
71
|
+
faces;
|
|
72
|
+
issues;
|
|
73
|
+
constructor(backend, sourceKind, faces, issues = null) {
|
|
74
|
+
this.backend = backend;
|
|
75
|
+
this.sourceKind = sourceKind;
|
|
76
|
+
this.faces = faces;
|
|
77
|
+
this.issues = issues ?? [];
|
|
78
|
+
}
|
|
79
|
+
get canReplayFromControlledBytes() {
|
|
80
|
+
return this.get_canReplayFromControlledBytes();
|
|
81
|
+
}
|
|
82
|
+
get_canReplayFromControlledBytes() {
|
|
83
|
+
if (this.faces.length === 0) {
|
|
84
|
+
return false;
|
|
85
|
+
}
|
|
86
|
+
{
|
|
87
|
+
const _g1 = this.issues;
|
|
88
|
+
for (let _g_index = 0, count = _g1.length; _g_index < count; _g_index += 1) {
|
|
89
|
+
const issue = _g1[_g_index];
|
|
90
|
+
if (issue.code === "MissingControlledFontFace") {
|
|
91
|
+
return false;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { Cluster } from "./../core/Cluster.js";
|
|
2
|
+
import { GlyphRun } from "./../core/GlyphRun.js";
|
|
3
|
+
import { ShapingDecisionInfo } from "./../core/ShapingDecisionInfo.js";
|
|
4
|
+
import { type TextRange } from "./../core/TextRange.js";
|
|
5
|
+
import { type TextStyle } from "./../core/TextStyle.js";
|
|
6
|
+
import { type FontDecision } from "./../font/FontPolicy.js";
|
|
7
|
+
export declare class ShapingInput {
|
|
8
|
+
readonly text: string;
|
|
9
|
+
readonly range: TextRange;
|
|
10
|
+
readonly style: TextStyle;
|
|
11
|
+
readonly fontDecision: FontDecision;
|
|
12
|
+
readonly displayText: string;
|
|
13
|
+
readonly openTypeFeatures: readonly string[];
|
|
14
|
+
constructor(text: string, range: TextRange, style: TextStyle, fontDecision: FontDecision, displayText?: string | null, openTypeFeatures?: readonly string[] | null);
|
|
15
|
+
toString(): string;
|
|
16
|
+
}
|
|
17
|
+
export declare class ShapingResult {
|
|
18
|
+
readonly clusters: readonly Cluster[];
|
|
19
|
+
readonly glyphRuns: readonly GlyphRun[];
|
|
20
|
+
readonly decisions: readonly ShapingDecisionInfo[];
|
|
21
|
+
constructor(clusters: readonly Cluster[], glyphRuns: readonly GlyphRun[], decisions?: readonly ShapingDecisionInfo[] | null);
|
|
22
|
+
toString(): string;
|
|
23
|
+
}
|
|
24
|
+
export declare class ShapingIssue {
|
|
25
|
+
static readonly UNVERIFIED_DISPLAY_SUBSTITUTION_COVERAGE_ISSUE: string;
|
|
26
|
+
static readonly PLATFORM_MULTI_FACE_STRING_DRAW_ISSUE: string;
|
|
27
|
+
}
|
|
28
|
+
export type TextShaperShapeFn = (input: ShapingInput) => ShapingResult;
|
|
29
|
+
export interface TextShaper {
|
|
30
|
+
readonly shape: TextShaperShapeFn;
|
|
31
|
+
}
|
|
32
|
+
export declare class ExplainableStubTextShaper implements TextShaper {
|
|
33
|
+
constructor();
|
|
34
|
+
shape(input: ShapingInput): ShapingResult;
|
|
35
|
+
private static nominalAdvanceEm;
|
|
36
|
+
private static codePointCount;
|
|
37
|
+
}
|
|
38
|
+
export declare class UnimplementedTextShaper implements TextShaper {
|
|
39
|
+
constructor();
|
|
40
|
+
shape(_input: ShapingInput): ShapingResult;
|
|
41
|
+
}
|
|
42
|
+
export interface Stub {
|
|
43
|
+
readonly kind: "Stub";
|
|
44
|
+
}
|
|
45
|
+
export interface JvmAwt {
|
|
46
|
+
readonly kind: "JvmAwt";
|
|
47
|
+
}
|
|
48
|
+
export interface AndroidPaint {
|
|
49
|
+
readonly kind: "AndroidPaint";
|
|
50
|
+
}
|
|
51
|
+
export interface Skia {
|
|
52
|
+
readonly kind: "Skia";
|
|
53
|
+
}
|
|
54
|
+
export interface HarfBuzz {
|
|
55
|
+
readonly kind: "HarfBuzz";
|
|
56
|
+
}
|
|
57
|
+
export interface CoreText {
|
|
58
|
+
readonly kind: "CoreText";
|
|
59
|
+
}
|
|
60
|
+
export type ShapingSource = Stub | JvmAwt | AndroidPaint | Skia | HarfBuzz | CoreText;
|
|
61
|
+
export declare const ShapingSource: Readonly<{
|
|
62
|
+
Stub: Readonly<Stub>;
|
|
63
|
+
JvmAwt: Readonly<JvmAwt>;
|
|
64
|
+
AndroidPaint: Readonly<AndroidPaint>;
|
|
65
|
+
Skia: Readonly<Skia>;
|
|
66
|
+
HarfBuzz: Readonly<HarfBuzz>;
|
|
67
|
+
CoreText: Readonly<CoreText>;
|
|
68
|
+
}>;
|
|
69
|
+
export declare function compareShapingSource(a: ShapingSource, b: ShapingSource): number;
|
|
70
|
+
export declare const SHAPING_SOURCE_ALL: readonly (Readonly<Stub> | Readonly<JvmAwt> | Readonly<AndroidPaint> | Readonly<Skia> | Readonly<HarfBuzz> | Readonly<CoreText>)[];
|
|
71
|
+
export declare function shapingSourceOfName(name: string): ShapingSource | null;
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { Cluster } from "./../core/Cluster.js";
|
|
3
|
+
import { Glyph } from "./../core/Glyph.js";
|
|
4
|
+
import { GlyphRun } from "./../core/GlyphRun.js";
|
|
5
|
+
import { IllegalStateException } from "./../core/IllegalStateException.js";
|
|
6
|
+
import { ShapingDecisionInfo } from "./../core/ShapingDecisionInfo.js";
|
|
7
|
+
import { readUnit } from "../../../runtime.js";
|
|
8
|
+
export class ShapingInput {
|
|
9
|
+
text;
|
|
10
|
+
range;
|
|
11
|
+
style;
|
|
12
|
+
fontDecision;
|
|
13
|
+
displayText;
|
|
14
|
+
openTypeFeatures;
|
|
15
|
+
constructor(text, range, style, fontDecision, displayText = null, openTypeFeatures = null) {
|
|
16
|
+
this.text = text;
|
|
17
|
+
this.range = range;
|
|
18
|
+
this.style = style;
|
|
19
|
+
this.fontDecision = fontDecision;
|
|
20
|
+
this.displayText = displayText ?? text.substring(range.start, range.end);
|
|
21
|
+
this.openTypeFeatures = openTypeFeatures ?? [];
|
|
22
|
+
}
|
|
23
|
+
toString() {
|
|
24
|
+
return `ShapingInput(text=${this.text}, range=${this.range.toString()}, style=${this.style.toString()}, fontDecision=${this.fontDecision.toString()}, displayText=${this.displayText}, openTypeFeatures=${(() => { let out = "["; const n = this.openTypeFeatures.length; for (let i = 0; i < n; i += 1) {
|
|
25
|
+
if (i > 0) {
|
|
26
|
+
out += ", ";
|
|
27
|
+
}
|
|
28
|
+
out += this.openTypeFeatures[i];
|
|
29
|
+
} out += "]"; return out; })()})`;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export class ShapingResult {
|
|
33
|
+
clusters;
|
|
34
|
+
glyphRuns;
|
|
35
|
+
decisions;
|
|
36
|
+
constructor(clusters, glyphRuns, decisions = null) {
|
|
37
|
+
this.clusters = clusters;
|
|
38
|
+
this.glyphRuns = glyphRuns;
|
|
39
|
+
this.decisions = decisions ?? [];
|
|
40
|
+
}
|
|
41
|
+
toString() {
|
|
42
|
+
return `ShapingResult(clusters=${(() => { let out = "["; const n = this.clusters.length; for (let i = 0; i < n; i += 1) {
|
|
43
|
+
if (i > 0) {
|
|
44
|
+
out += ", ";
|
|
45
|
+
}
|
|
46
|
+
out += this.clusters[i].toString();
|
|
47
|
+
} out += "]"; return out; })()}, glyphRuns=${(() => { let out = "["; const n = this.glyphRuns.length; for (let i = 0; i < n; i += 1) {
|
|
48
|
+
if (i > 0) {
|
|
49
|
+
out += ", ";
|
|
50
|
+
}
|
|
51
|
+
out += this.glyphRuns[i].toString();
|
|
52
|
+
} out += "]"; return out; })()}, decisions=${(() => { let out = "["; const n = this.decisions.length; for (let i = 0; i < n; i += 1) {
|
|
53
|
+
if (i > 0) {
|
|
54
|
+
out += ", ";
|
|
55
|
+
}
|
|
56
|
+
out += this.decisions[i].toString();
|
|
57
|
+
} out += "]"; return out; })()})`;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
export class ShapingIssue {
|
|
61
|
+
static UNVERIFIED_DISPLAY_SUBSTITUTION_COVERAGE_ISSUE = "UnverifiedDisplaySubstitutionCoverage";
|
|
62
|
+
static PLATFORM_MULTI_FACE_STRING_DRAW_ISSUE = "PlatformMultiFaceStringDraw";
|
|
63
|
+
}
|
|
64
|
+
export class ExplainableStubTextShaper {
|
|
65
|
+
constructor() {
|
|
66
|
+
}
|
|
67
|
+
shape(input) {
|
|
68
|
+
const sourceText = input.text.substring(input.range.start, input.range.end);
|
|
69
|
+
let glyphCount = ExplainableStubTextShaper.codePointCount(input.displayText);
|
|
70
|
+
if (glyphCount < 1) {
|
|
71
|
+
glyphCount = 1;
|
|
72
|
+
}
|
|
73
|
+
const advance = input.style.fontSize * ExplainableStubTextShaper.nominalAdvanceEm(sourceText, input.displayText);
|
|
74
|
+
const cluster = new Cluster(input.range, sourceText, input.fontDecision.candidate.key, advance, input.displayText);
|
|
75
|
+
const glyphAdvance = advance / glyphCount;
|
|
76
|
+
const glyphs = [];
|
|
77
|
+
let glyphId = 0;
|
|
78
|
+
while (glyphId < glyphCount) {
|
|
79
|
+
glyphs.push(new Glyph(glyphId, input.range, glyphAdvance, glyphAdvance * glyphId));
|
|
80
|
+
glyphId++;
|
|
81
|
+
}
|
|
82
|
+
const run = new GlyphRun(input.range, input.fontDecision.candidate.key, glyphs, advance, []);
|
|
83
|
+
const decision = new ShapingDecisionInfo(input.range, sourceText, input.displayText, input.fontDecision.candidate.key, glyphCount, advance, ShapingSource.Stub.kind, "ExplainableStubTextShaper:nominal-em-advance", glyphCount);
|
|
84
|
+
return new ShapingResult([cluster], [run], [decision]);
|
|
85
|
+
}
|
|
86
|
+
static nominalAdvanceEm(source, displayText) {
|
|
87
|
+
if (source === "⸺" || displayText === "⸺") {
|
|
88
|
+
return 2.0;
|
|
89
|
+
}
|
|
90
|
+
if (source.length > 0) {
|
|
91
|
+
let allSpaces = true;
|
|
92
|
+
let i = 0;
|
|
93
|
+
while (i < source.length) {
|
|
94
|
+
if ((Number.isNaN(source.charCodeAt(i)) ? null : source.charCodeAt(i)) !== 32) {
|
|
95
|
+
allSpaces = false;
|
|
96
|
+
}
|
|
97
|
+
i++;
|
|
98
|
+
}
|
|
99
|
+
if (allSpaces) {
|
|
100
|
+
return 0.5 * source.length;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
const a = ExplainableStubTextShaper.codePointCount(source);
|
|
104
|
+
const b = ExplainableStubTextShaper.codePointCount(displayText);
|
|
105
|
+
return (a > b ? a : b);
|
|
106
|
+
}
|
|
107
|
+
static codePointCount(value) {
|
|
108
|
+
let count = 0;
|
|
109
|
+
let index = 0;
|
|
110
|
+
while (index < value.length) {
|
|
111
|
+
const code = (Number.isNaN(value.charCodeAt(index)) ? null : value.charCodeAt(index));
|
|
112
|
+
if (code >= 55296 && code <= 56319 && index + 1 < value.length) {
|
|
113
|
+
const next = readUnit(value, index + 1);
|
|
114
|
+
if (next >= 56320 && next <= 57343) {
|
|
115
|
+
index += 2;
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
index++;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
else {
|
|
122
|
+
index++;
|
|
123
|
+
}
|
|
124
|
+
count++;
|
|
125
|
+
}
|
|
126
|
+
return count;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
export class UnimplementedTextShaper {
|
|
130
|
+
constructor() {
|
|
131
|
+
}
|
|
132
|
+
shape(_input) {
|
|
133
|
+
throw new IllegalStateException("Text shaping is platform-specific and has not been wired for this target yet.");
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
export const ShapingSource = Object.freeze({
|
|
137
|
+
Stub: Object.freeze({ kind: "Stub" }),
|
|
138
|
+
JvmAwt: Object.freeze({ kind: "JvmAwt" }),
|
|
139
|
+
AndroidPaint: Object.freeze({ kind: "AndroidPaint" }),
|
|
140
|
+
Skia: Object.freeze({ kind: "Skia" }),
|
|
141
|
+
HarfBuzz: Object.freeze({ kind: "HarfBuzz" }),
|
|
142
|
+
CoreText: Object.freeze({ kind: "CoreText" })
|
|
143
|
+
});
|
|
144
|
+
export function compareShapingSource(a, b) {
|
|
145
|
+
if (a === b)
|
|
146
|
+
return 0;
|
|
147
|
+
if (a.kind === "Stub")
|
|
148
|
+
return 0 - (b.kind === "Stub" ? 0 : 0);
|
|
149
|
+
if (a.kind === "JvmAwt")
|
|
150
|
+
return 1 - (b.kind === "JvmAwt" ? 1 : 0);
|
|
151
|
+
if (a.kind === "AndroidPaint")
|
|
152
|
+
return 2 - (b.kind === "AndroidPaint" ? 2 : 0);
|
|
153
|
+
if (a.kind === "Skia")
|
|
154
|
+
return 3 - (b.kind === "Skia" ? 3 : 0);
|
|
155
|
+
if (a.kind === "HarfBuzz")
|
|
156
|
+
return 4 - (b.kind === "HarfBuzz" ? 4 : 0);
|
|
157
|
+
if (a.kind === "CoreText")
|
|
158
|
+
return 5 - (b.kind === "CoreText" ? 5 : 0);
|
|
159
|
+
return 0;
|
|
160
|
+
}
|
|
161
|
+
export const SHAPING_SOURCE_ALL = Object.freeze([ShapingSource.Stub, ShapingSource.JvmAwt, ShapingSource.AndroidPaint, ShapingSource.Skia, ShapingSource.HarfBuzz, ShapingSource.CoreText]);
|
|
162
|
+
export function shapingSourceOfName(name) {
|
|
163
|
+
if (name === "Stub")
|
|
164
|
+
return ShapingSource.Stub;
|
|
165
|
+
if (name === "JvmAwt")
|
|
166
|
+
return ShapingSource.JvmAwt;
|
|
167
|
+
if (name === "AndroidPaint")
|
|
168
|
+
return ShapingSource.AndroidPaint;
|
|
169
|
+
if (name === "Skia")
|
|
170
|
+
return ShapingSource.Skia;
|
|
171
|
+
if (name === "HarfBuzz")
|
|
172
|
+
return ShapingSource.HarfBuzz;
|
|
173
|
+
if (name === "CoreText")
|
|
174
|
+
return ShapingSource.CoreText;
|
|
175
|
+
return null;
|
|
176
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { floatToI32, i32ToFloat } from "../../../runtime.js";
|
|
3
|
+
export class TestHelpers {
|
|
4
|
+
static f32Literal(value) {
|
|
5
|
+
return i32ToFloat(floatToI32(value));
|
|
6
|
+
}
|
|
7
|
+
static f32Bits(bits) {
|
|
8
|
+
return i32ToFloat(bits);
|
|
9
|
+
}
|
|
10
|
+
static surrogateText(codeUnits) {
|
|
11
|
+
let output = "";
|
|
12
|
+
let index = 0;
|
|
13
|
+
while (index < codeUnits.length) {
|
|
14
|
+
const unit = codeUnits[index];
|
|
15
|
+
if (unit >= 55296 && unit <= 56319 && index + 1 < codeUnits.length && codeUnits[index + 1] >= 56320 && codeUnits[index + 1] <= 57343) {
|
|
16
|
+
const low = codeUnits[index + 1];
|
|
17
|
+
output += String.fromCodePoint(65536 + (unit - 55296 << 10) + (low - 56320));
|
|
18
|
+
index += 2;
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
output += String.fromCodePoint(unit);
|
|
22
|
+
index += 1;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
return output;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { FsException } from "./../../../../std/FsException.js";
|
|
3
|
+
;
|
|
4
|
+
const fsMakeDirs = (p) => { const host = globalThis; const probe = host["process"]?.getBuiltinModule; const fs = probe !== undefined ? probe("node:fs") : null; if (fs === null) {
|
|
5
|
+
throw new FsException({ kind: "Unavailable", operation: "makeDirs", path: p });
|
|
6
|
+
} try {
|
|
7
|
+
fs.mkdirSync(p, { recursive: true });
|
|
8
|
+
}
|
|
9
|
+
catch (e) {
|
|
10
|
+
const detail = String(e);
|
|
11
|
+
const code = e?.code;
|
|
12
|
+
if (code === "ENOENT") {
|
|
13
|
+
throw new FsException({ kind: "NotFound", operation: "makeDirs", path: p, nativeDetail: detail });
|
|
14
|
+
}
|
|
15
|
+
if (code === "ENOTDIR") {
|
|
16
|
+
throw new FsException({ kind: "NotDirectory", operation: "makeDirs", path: p, nativeDetail: detail });
|
|
17
|
+
}
|
|
18
|
+
if (code === "EACCES" || code === "EPERM") {
|
|
19
|
+
throw new FsException({ kind: "PermissionDenied", operation: "makeDirs", path: p, nativeDetail: detail });
|
|
20
|
+
}
|
|
21
|
+
if (code === "EEXIST") {
|
|
22
|
+
throw new FsException({ kind: "AlreadyExists", operation: "makeDirs", path: p, nativeDetail: detail });
|
|
23
|
+
}
|
|
24
|
+
if (code === "EINVAL" || code === "ENAMETOOLONG") {
|
|
25
|
+
throw new FsException({ kind: "InvalidInput", operation: "makeDirs", path: p, nativeDetail: detail });
|
|
26
|
+
}
|
|
27
|
+
if (code === "EISDIR") {
|
|
28
|
+
throw new FsException({ kind: "IsDirectory", operation: "makeDirs", path: p, nativeDetail: detail });
|
|
29
|
+
}
|
|
30
|
+
throw new FsException({ kind: "Other", operation: "makeDirs", path: p, nativeDetail: detail });
|
|
31
|
+
} };
|
|
32
|
+
;
|
|
33
|
+
const fsWriteText = (p, d) => { const host = globalThis; const probe = host["process"]?.getBuiltinModule; const fs = probe !== undefined ? probe("node:fs") : null; if (fs === null) {
|
|
34
|
+
throw new FsException({ kind: "Unavailable", operation: "writeText", path: p });
|
|
35
|
+
} try {
|
|
36
|
+
fs.writeFileSync(p, d, "utf8");
|
|
37
|
+
}
|
|
38
|
+
catch (e) {
|
|
39
|
+
const detail = String(e);
|
|
40
|
+
const code = e?.code;
|
|
41
|
+
if (code === "ENOENT") {
|
|
42
|
+
throw new FsException({ kind: "NotFound", operation: "writeText", path: p, nativeDetail: detail });
|
|
43
|
+
}
|
|
44
|
+
if (code === "ENOTDIR") {
|
|
45
|
+
throw new FsException({ kind: "NotDirectory", operation: "writeText", path: p, nativeDetail: detail });
|
|
46
|
+
}
|
|
47
|
+
if (code === "EACCES" || code === "EPERM") {
|
|
48
|
+
throw new FsException({ kind: "PermissionDenied", operation: "writeText", path: p, nativeDetail: detail });
|
|
49
|
+
}
|
|
50
|
+
if (code === "EEXIST") {
|
|
51
|
+
throw new FsException({ kind: "AlreadyExists", operation: "writeText", path: p, nativeDetail: detail });
|
|
52
|
+
}
|
|
53
|
+
if (code === "EINVAL" || code === "ENAMETOOLONG") {
|
|
54
|
+
throw new FsException({ kind: "InvalidInput", operation: "writeText", path: p, nativeDetail: detail });
|
|
55
|
+
}
|
|
56
|
+
if (code === "EISDIR") {
|
|
57
|
+
throw new FsException({ kind: "IsDirectory", operation: "writeText", path: p, nativeDetail: detail });
|
|
58
|
+
}
|
|
59
|
+
throw new FsException({ kind: "Other", operation: "writeText", path: p, nativeDetail: detail });
|
|
60
|
+
} };
|
|
61
|
+
export class TestTracePlatform {
|
|
62
|
+
static updateMode = true;
|
|
63
|
+
static doubleArithmetic = true;
|
|
64
|
+
static directory = "engine-haxe/out/haxe-traces";
|
|
65
|
+
static writeGolden(className, text) {
|
|
66
|
+
try {
|
|
67
|
+
fsMakeDirs(TestTracePlatform.directory);
|
|
68
|
+
fsWriteText(TestTracePlatform.directory + "/" + className + ".txt", text);
|
|
69
|
+
}
|
|
70
|
+
catch (e) {
|
|
71
|
+
if (e instanceof FsException) {
|
|
72
|
+
}
|
|
73
|
+
else {
|
|
74
|
+
throw e;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { TestTrace } from "./TestTrace.js";
|
|
3
|
+
import { TestTracePlatform } from "./TestTracePlatform.js";
|
|
4
|
+
import { TestTraceStore } from "./TestTraceStore.js";
|
|
5
|
+
export class TestTraceRecorder {
|
|
6
|
+
className;
|
|
7
|
+
sectionName;
|
|
8
|
+
constructor(className) {
|
|
9
|
+
this.className = className;
|
|
10
|
+
this.sectionName = null;
|
|
11
|
+
TestTrace.recorder = this;
|
|
12
|
+
}
|
|
13
|
+
section(name) {
|
|
14
|
+
this.sectionName = name;
|
|
15
|
+
TestTraceStore.open(this.className, name);
|
|
16
|
+
}
|
|
17
|
+
record(line) {
|
|
18
|
+
const currentSection = this.sectionName;
|
|
19
|
+
if (currentSection === null) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
TestTraceStore.append(this.className, (currentSection), line);
|
|
23
|
+
}
|
|
24
|
+
flush() {
|
|
25
|
+
if (!TestTracePlatform.updateMode || this.sectionName === null) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
TestTracePlatform.writeGolden(this.className, TestTraceStore.classText(this.className));
|
|
29
|
+
}
|
|
30
|
+
static flushClass(className) {
|
|
31
|
+
if (!TestTracePlatform.updateMode) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
TestTracePlatform.writeGolden(className, TestTraceStore.classText(className));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare class TestTraceRender {
|
|
2
|
+
private static readonly MAX_OPERAND_CHARS;
|
|
3
|
+
private static readonly HEX;
|
|
4
|
+
private static readonly MAX_SIGNIFICANT_DIGITS;
|
|
5
|
+
static escapeOperand(value: string): string;
|
|
6
|
+
static renderString(value: string): string;
|
|
7
|
+
static renderInt(value: number): string;
|
|
8
|
+
static renderLong(value: number): string;
|
|
9
|
+
static renderFloat(value: number): string;
|
|
10
|
+
static floatText(value: number): string;
|
|
11
|
+
private static decimalInt;
|
|
12
|
+
private static pow10Int;
|
|
13
|
+
private static fractionAfter;
|
|
14
|
+
private static decimalShape;
|
|
15
|
+
private static floatTextRender;
|
|
16
|
+
static renderBool(value: boolean): string;
|
|
17
|
+
static renderNull(): string;
|
|
18
|
+
static renderIntArray(values: number[]): string;
|
|
19
|
+
static renderStringArray(values: readonly string[]): string;
|
|
20
|
+
static legacyListText(parts: string[]): string;
|
|
21
|
+
static canonicalNumbers(value: string): string;
|
|
22
|
+
static cap(value: string): string;
|
|
23
|
+
private static escape;
|
|
24
|
+
private static expandScientific;
|
|
25
|
+
private static stripWholeFraction;
|
|
26
|
+
private static scientificMatch;
|
|
27
|
+
private static parseExponent;
|
|
28
|
+
private static expandMantissa;
|
|
29
|
+
private static zeroes;
|
|
30
|
+
private static isDigit;
|
|
31
|
+
private static fnv1a;
|
|
32
|
+
private static multiplyFNVPrime;
|
|
33
|
+
private static hexByte;
|
|
34
|
+
}
|
|
35
|
+
export declare class DecimalShape {
|
|
36
|
+
readonly digits: string;
|
|
37
|
+
readonly position: number;
|
|
38
|
+
readonly extended: boolean;
|
|
39
|
+
constructor(digits: string, position: number, extended: boolean);
|
|
40
|
+
}
|
|
41
|
+
export declare class ScientificMatch {
|
|
42
|
+
readonly start: number;
|
|
43
|
+
readonly mantissaEnd: number;
|
|
44
|
+
readonly end: number;
|
|
45
|
+
readonly exponent: number;
|
|
46
|
+
constructor(start: number, mantissaEnd: number, end: number, exponent: number);
|
|
47
|
+
}
|