@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,442 @@
|
|
|
1
|
+
// Generated by the reflaxe TypeScript target. Do not edit.
|
|
2
|
+
import { PlanJsonNumber } from "./PlanJsonNumber.js";
|
|
3
|
+
import { PlanSchema } from "./PlanSchema.js";
|
|
4
|
+
export class PlanJson {
|
|
5
|
+
static encode(plan) {
|
|
6
|
+
const out = [];
|
|
7
|
+
out.push("{");
|
|
8
|
+
out.push("\"schema\":");
|
|
9
|
+
out.push(String(PlanSchema.PLAN_SCHEMA));
|
|
10
|
+
out.push(",\"layoutRevision\":\"");
|
|
11
|
+
out.push(PlanSchema.PLAN_LAYOUT_REVISION);
|
|
12
|
+
out.push("\",\"width\":");
|
|
13
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(plan.width));
|
|
14
|
+
out.push(",\"height\":");
|
|
15
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(plan.height));
|
|
16
|
+
out.push(",\"lines\":[");
|
|
17
|
+
let firstLine = true;
|
|
18
|
+
{
|
|
19
|
+
const _g1 = plan.lines;
|
|
20
|
+
for (let _g_index = 0, count = _g1.length; _g_index < count; _g_index += 1) {
|
|
21
|
+
const line = _g1[_g_index];
|
|
22
|
+
if (!firstLine) {
|
|
23
|
+
out.push(",");
|
|
24
|
+
}
|
|
25
|
+
firstLine = false;
|
|
26
|
+
PlanJson.appendLine(out, line);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
out.push("]");
|
|
30
|
+
PlanJson.appendParagraphEvidence(out, plan);
|
|
31
|
+
out.push("}");
|
|
32
|
+
return out.join("");
|
|
33
|
+
}
|
|
34
|
+
static appendLine(out, line) {
|
|
35
|
+
out.push("{\"rangeStart\":");
|
|
36
|
+
out.push(String(line.rangeStart));
|
|
37
|
+
out.push(",\"rangeEnd\":");
|
|
38
|
+
out.push(String(line.rangeEnd));
|
|
39
|
+
out.push(",\"top\":");
|
|
40
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(line.top));
|
|
41
|
+
out.push(",\"bottom\":");
|
|
42
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(line.bottom));
|
|
43
|
+
out.push(",\"baseline\":");
|
|
44
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(line.baseline));
|
|
45
|
+
out.push(",\"indent\":");
|
|
46
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(line.indent));
|
|
47
|
+
out.push(",\"visualWidth\":");
|
|
48
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(line.visualWidth));
|
|
49
|
+
out.push(",\"hyphenAdvance\":");
|
|
50
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(line.hyphenAdvance));
|
|
51
|
+
out.push(",\"endReason\":");
|
|
52
|
+
PlanJsonNumber.appendJsonString(out, PlanJson.endReasonName(line.endReason));
|
|
53
|
+
out.push(",\"cells\":[");
|
|
54
|
+
let firstCell = true;
|
|
55
|
+
{
|
|
56
|
+
const _g1 = line.cells;
|
|
57
|
+
for (let _g_index = 0, count2 = _g1.length; _g_index < count2; _g_index += 1) {
|
|
58
|
+
const cell = _g1[_g_index];
|
|
59
|
+
if (!firstCell) {
|
|
60
|
+
out.push(",");
|
|
61
|
+
}
|
|
62
|
+
firstCell = false;
|
|
63
|
+
PlanJson.appendCell(out, cell);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
out.push("]}");
|
|
67
|
+
}
|
|
68
|
+
static appendCell(out, cell) {
|
|
69
|
+
out.push("{\"rangeStart\":");
|
|
70
|
+
out.push(String(cell.rangeStart));
|
|
71
|
+
out.push(",\"rangeEnd\":");
|
|
72
|
+
out.push(String(cell.rangeEnd));
|
|
73
|
+
out.push(",\"source\":");
|
|
74
|
+
PlanJsonNumber.appendJsonString(out, cell.source);
|
|
75
|
+
out.push(",\"display\":");
|
|
76
|
+
PlanJsonNumber.appendJsonString(out, cell.display);
|
|
77
|
+
out.push(",\"drawX\":");
|
|
78
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(cell.drawX));
|
|
79
|
+
out.push(",\"naturalWidth\":");
|
|
80
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(cell.naturalWidth));
|
|
81
|
+
out.push(",\"leadingLayoutAdvance\":");
|
|
82
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(cell.leadingLayoutAdvance));
|
|
83
|
+
if (cell.shapingBoundary) {
|
|
84
|
+
out.push(",\"shapingBoundary\":true");
|
|
85
|
+
}
|
|
86
|
+
if (cell.openTypeFeatures.length > 0) {
|
|
87
|
+
out.push(",\"openTypeFeatures\":[");
|
|
88
|
+
let firstFeature = true;
|
|
89
|
+
{
|
|
90
|
+
const _g1 = cell.openTypeFeatures;
|
|
91
|
+
for (let _g_index = 0, count3 = _g1.length; _g_index < count3; _g_index += 1) {
|
|
92
|
+
const feature = _g1[_g_index];
|
|
93
|
+
if (!firstFeature) {
|
|
94
|
+
out.push(",");
|
|
95
|
+
}
|
|
96
|
+
firstFeature = false;
|
|
97
|
+
PlanJsonNumber.appendJsonString(out, feature);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
out.push("]");
|
|
101
|
+
}
|
|
102
|
+
PlanJson.appendCellEvidence(out, cell);
|
|
103
|
+
out.push("}");
|
|
104
|
+
}
|
|
105
|
+
static appendCellEvidence(out, cell) {
|
|
106
|
+
const inlineObject = cell.inlineObject;
|
|
107
|
+
if (inlineObject !== null) {
|
|
108
|
+
out.push(",\"inlineObject\":");
|
|
109
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(inlineObject));
|
|
110
|
+
}
|
|
111
|
+
const advance = cell.advance;
|
|
112
|
+
if (advance !== null) {
|
|
113
|
+
out.push(",\"advance\":");
|
|
114
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(advance));
|
|
115
|
+
}
|
|
116
|
+
const renderFontFamily = cell.renderFontFamily;
|
|
117
|
+
if (renderFontFamily !== null) {
|
|
118
|
+
out.push(",\"renderFontFamily\":");
|
|
119
|
+
PlanJsonNumber.appendJsonString(out, renderFontFamily);
|
|
120
|
+
}
|
|
121
|
+
const dashStrategy = cell.dashStrategy;
|
|
122
|
+
if (dashStrategy !== null) {
|
|
123
|
+
out.push(",\"dashStrategy\":");
|
|
124
|
+
PlanJsonNumber.appendJsonString(out, dashStrategy);
|
|
125
|
+
const shapingLanguage = cell.shapingLanguage;
|
|
126
|
+
if (shapingLanguage !== null) {
|
|
127
|
+
out.push(",\"shapingLanguage\":");
|
|
128
|
+
PlanJsonNumber.appendJsonString(out, shapingLanguage);
|
|
129
|
+
}
|
|
130
|
+
const resolvedFace = cell.resolvedFace;
|
|
131
|
+
if (resolvedFace !== null) {
|
|
132
|
+
out.push(",\"resolvedFace\":");
|
|
133
|
+
PlanJsonNumber.appendJsonString(out, resolvedFace);
|
|
134
|
+
}
|
|
135
|
+
const glyphIds = cell.glyphIds;
|
|
136
|
+
if (glyphIds !== null) {
|
|
137
|
+
out.push(",\"glyphIds\":");
|
|
138
|
+
PlanJsonNumber.appendJsonString(out, glyphIds);
|
|
139
|
+
}
|
|
140
|
+
const shapingEvidence = cell.shapingEvidence;
|
|
141
|
+
if (shapingEvidence !== null) {
|
|
142
|
+
out.push(",\"shapingEvidence\":");
|
|
143
|
+
PlanJsonNumber.appendJsonString(out, shapingEvidence);
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
const punctuationInkFloor = cell.punctuationInkFloor;
|
|
147
|
+
if (punctuationInkFloor !== null) {
|
|
148
|
+
out.push(",\"punctuationInkFloor\":");
|
|
149
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(punctuationInkFloor));
|
|
150
|
+
const punctuationBodyWidth = cell.punctuationBodyWidth;
|
|
151
|
+
if (punctuationBodyWidth !== null) {
|
|
152
|
+
out.push(",\"punctuationBodyWidth\":");
|
|
153
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(punctuationBodyWidth));
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
if (cell.latin) {
|
|
157
|
+
out.push(",\"latin\":true");
|
|
158
|
+
}
|
|
159
|
+
const styleDelta = cell.styleDelta;
|
|
160
|
+
if (styleDelta !== null) {
|
|
161
|
+
PlanJson.appendStyleDelta(out, (styleDelta));
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
static appendStyleDelta(out, style) {
|
|
165
|
+
out.push(",\"style\":{");
|
|
166
|
+
let fieldCount = 0;
|
|
167
|
+
const fontSize = style.fontSize;
|
|
168
|
+
if (fontSize !== null) {
|
|
169
|
+
out.push("\"fontSize\":");
|
|
170
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(fontSize));
|
|
171
|
+
fieldCount++;
|
|
172
|
+
}
|
|
173
|
+
const fontWeight = style.fontWeight;
|
|
174
|
+
if (fontWeight !== null) {
|
|
175
|
+
if (fieldCount > 0) {
|
|
176
|
+
out.push(",");
|
|
177
|
+
}
|
|
178
|
+
out.push("\"fontWeight\":");
|
|
179
|
+
out.push(String(fontWeight));
|
|
180
|
+
fieldCount++;
|
|
181
|
+
}
|
|
182
|
+
const italic = style.italic;
|
|
183
|
+
if (italic !== null) {
|
|
184
|
+
if (fieldCount > 0) {
|
|
185
|
+
out.push(",");
|
|
186
|
+
}
|
|
187
|
+
out.push("\"italic\":");
|
|
188
|
+
out.push((italic ? "true" : "false"));
|
|
189
|
+
}
|
|
190
|
+
out.push("}");
|
|
191
|
+
}
|
|
192
|
+
static appendParagraphEvidence(out, plan) {
|
|
193
|
+
const fontSize = plan.fontSize;
|
|
194
|
+
if (fontSize !== null) {
|
|
195
|
+
out.push(",\"fontSize\":");
|
|
196
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(fontSize));
|
|
197
|
+
}
|
|
198
|
+
const overlayWidth = plan.overlayWidth;
|
|
199
|
+
if (overlayWidth !== null) {
|
|
200
|
+
out.push(",\"overlayWidth\":");
|
|
201
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(overlayWidth));
|
|
202
|
+
}
|
|
203
|
+
if (plan.emphasisRanges.length > 0) {
|
|
204
|
+
out.push(",\"emphasisRanges\":[");
|
|
205
|
+
let firstRange = true;
|
|
206
|
+
{
|
|
207
|
+
const _g1 = plan.emphasisRanges;
|
|
208
|
+
for (let _g_index = 0, count4 = _g1.length; _g_index < count4; _g_index += 1) {
|
|
209
|
+
const range = _g1[_g_index];
|
|
210
|
+
if (!firstRange) {
|
|
211
|
+
out.push(",");
|
|
212
|
+
}
|
|
213
|
+
firstRange = false;
|
|
214
|
+
out.push("[");
|
|
215
|
+
out.push(String(range.start));
|
|
216
|
+
out.push(",");
|
|
217
|
+
out.push(String(range.end));
|
|
218
|
+
out.push("]");
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
out.push("]");
|
|
222
|
+
}
|
|
223
|
+
if (plan.inlineEdges.length > 0) {
|
|
224
|
+
out.push(",\"inlineEdges\":[");
|
|
225
|
+
let firstEdge = true;
|
|
226
|
+
{
|
|
227
|
+
const _g12 = plan.inlineEdges;
|
|
228
|
+
for (let _g_index1 = 0, count5 = _g12.length; _g_index1 < count5; _g_index1 += 1) {
|
|
229
|
+
const edge = _g12[_g_index1];
|
|
230
|
+
if (!firstEdge) {
|
|
231
|
+
out.push(",");
|
|
232
|
+
}
|
|
233
|
+
firstEdge = false;
|
|
234
|
+
out.push("{\"offset\":");
|
|
235
|
+
out.push(String(edge.offset));
|
|
236
|
+
const inlineStart = edge.inlineStart;
|
|
237
|
+
if (inlineStart !== null) {
|
|
238
|
+
out.push(",\"inlineStart\":");
|
|
239
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(inlineStart));
|
|
240
|
+
}
|
|
241
|
+
const inlineEnd = edge.inlineEnd;
|
|
242
|
+
if (inlineEnd !== null) {
|
|
243
|
+
out.push(",\"inlineEnd\":");
|
|
244
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(inlineEnd));
|
|
245
|
+
}
|
|
246
|
+
out.push("}");
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
out.push("]");
|
|
250
|
+
}
|
|
251
|
+
if (plan.rubyDecisions.length > 0) {
|
|
252
|
+
out.push(",\"rubyDecisions\":[");
|
|
253
|
+
let firstRuby = true;
|
|
254
|
+
{
|
|
255
|
+
const _g13 = plan.rubyDecisions;
|
|
256
|
+
for (let _g_index2 = 0, count6 = _g13.length; _g_index2 < count6; _g_index2 += 1) {
|
|
257
|
+
const ruby = _g13[_g_index2];
|
|
258
|
+
if (!firstRuby) {
|
|
259
|
+
out.push(",");
|
|
260
|
+
}
|
|
261
|
+
firstRuby = false;
|
|
262
|
+
out.push("{\"baseRangeStart\":");
|
|
263
|
+
out.push(String(ruby.baseRangeStart));
|
|
264
|
+
out.push(",\"baseRangeEnd\":");
|
|
265
|
+
out.push(String(ruby.baseRangeEnd));
|
|
266
|
+
out.push(",\"text\":");
|
|
267
|
+
PlanJsonNumber.appendJsonString(out, ruby.text);
|
|
268
|
+
out.push(",\"centerX\":");
|
|
269
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(ruby.centerX));
|
|
270
|
+
out.push(",\"baselineY\":");
|
|
271
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(ruby.baselineY));
|
|
272
|
+
out.push(",\"fontSize\":");
|
|
273
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(ruby.fontSize));
|
|
274
|
+
const ascent = ruby.ascent;
|
|
275
|
+
if (ascent !== null) {
|
|
276
|
+
out.push(",\"ascent\":");
|
|
277
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(ascent));
|
|
278
|
+
}
|
|
279
|
+
out.push(",\"fontWeight\":");
|
|
280
|
+
out.push(String(ruby.fontWeight));
|
|
281
|
+
if (ruby.fontFamilies.length > 0) {
|
|
282
|
+
out.push(",\"fontFamilies\":[");
|
|
283
|
+
let firstFamily = true;
|
|
284
|
+
{
|
|
285
|
+
let _g = 0;
|
|
286
|
+
const _g14 = ruby.fontFamilies;
|
|
287
|
+
while (_g < _g14.length) {
|
|
288
|
+
const family = _g14[_g];
|
|
289
|
+
_g++;
|
|
290
|
+
if (!firstFamily) {
|
|
291
|
+
out.push(",");
|
|
292
|
+
}
|
|
293
|
+
firstFamily = false;
|
|
294
|
+
PlanJsonNumber.appendJsonString(out, family);
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
out.push("]");
|
|
298
|
+
}
|
|
299
|
+
out.push("}");
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
out.push("]");
|
|
303
|
+
}
|
|
304
|
+
if (plan.bopomofoDecisions.length > 0) {
|
|
305
|
+
out.push(",\"bopomofoDecisions\":[");
|
|
306
|
+
let firstBopomofo = true;
|
|
307
|
+
{
|
|
308
|
+
const _g15 = plan.bopomofoDecisions;
|
|
309
|
+
for (let _g_index3 = 0, count7 = _g15.length; _g_index3 < count7; _g_index3 += 1) {
|
|
310
|
+
const bopomofo = _g15[_g_index3];
|
|
311
|
+
if (!firstBopomofo) {
|
|
312
|
+
out.push(",");
|
|
313
|
+
}
|
|
314
|
+
firstBopomofo = false;
|
|
315
|
+
out.push("{\"baseRangeStart\":");
|
|
316
|
+
out.push(String(bopomofo.baseRangeStart));
|
|
317
|
+
out.push(",\"baseRangeEnd\":");
|
|
318
|
+
out.push(String(bopomofo.baseRangeEnd));
|
|
319
|
+
out.push(",\"text\":");
|
|
320
|
+
PlanJsonNumber.appendJsonString(out, bopomofo.text);
|
|
321
|
+
out.push(",\"fontWeight\":");
|
|
322
|
+
out.push(String(bopomofo.fontWeight));
|
|
323
|
+
if (bopomofo.fontFamilies.length > 0) {
|
|
324
|
+
out.push(",\"fontFamilies\":[");
|
|
325
|
+
let firstFamily2 = true;
|
|
326
|
+
{
|
|
327
|
+
let _g2 = 0;
|
|
328
|
+
const _g16 = bopomofo.fontFamilies;
|
|
329
|
+
while (_g2 < _g16.length) {
|
|
330
|
+
const family2 = _g16[_g2];
|
|
331
|
+
_g2++;
|
|
332
|
+
if (!firstFamily2) {
|
|
333
|
+
out.push(",");
|
|
334
|
+
}
|
|
335
|
+
firstFamily2 = false;
|
|
336
|
+
PlanJsonNumber.appendJsonString(out, family2);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
out.push("]");
|
|
340
|
+
}
|
|
341
|
+
out.push(",\"placements\":[");
|
|
342
|
+
let firstPlacement = true;
|
|
343
|
+
{
|
|
344
|
+
let _g3 = 0;
|
|
345
|
+
const _g17 = bopomofo.placements;
|
|
346
|
+
while (_g3 < _g17.length) {
|
|
347
|
+
const placement = _g17[_g3];
|
|
348
|
+
_g3++;
|
|
349
|
+
if (!firstPlacement) {
|
|
350
|
+
out.push(",");
|
|
351
|
+
}
|
|
352
|
+
firstPlacement = false;
|
|
353
|
+
out.push("{\"text\":");
|
|
354
|
+
PlanJsonNumber.appendJsonString(out, placement.text);
|
|
355
|
+
out.push(",\"left\":");
|
|
356
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(placement.left));
|
|
357
|
+
out.push(",\"top\":");
|
|
358
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(placement.top));
|
|
359
|
+
out.push(",\"width\":");
|
|
360
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(placement.width));
|
|
361
|
+
out.push(",\"height\":");
|
|
362
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(placement.height));
|
|
363
|
+
out.push(",\"role\":");
|
|
364
|
+
PlanJsonNumber.appendJsonString(out, placement.role);
|
|
365
|
+
out.push("}");
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
out.push("]}");
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
out.push("]");
|
|
372
|
+
}
|
|
373
|
+
if (plan.decorationSegments.length > 0) {
|
|
374
|
+
out.push(",\"decorationSegments\":[");
|
|
375
|
+
let firstSegment = true;
|
|
376
|
+
{
|
|
377
|
+
const _g18 = plan.decorationSegments;
|
|
378
|
+
for (let _g_index4 = 0, count8 = _g18.length; _g_index4 < count8; _g_index4 += 1) {
|
|
379
|
+
const seg = _g18[_g_index4];
|
|
380
|
+
if (!firstSegment) {
|
|
381
|
+
out.push(",");
|
|
382
|
+
}
|
|
383
|
+
firstSegment = false;
|
|
384
|
+
out.push("{\"kind\":");
|
|
385
|
+
PlanJsonNumber.appendJsonString(out, seg.kind);
|
|
386
|
+
out.push(",\"left\":");
|
|
387
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(seg.left));
|
|
388
|
+
out.push(",\"top\":");
|
|
389
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(seg.top));
|
|
390
|
+
out.push(",\"right\":");
|
|
391
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(seg.right));
|
|
392
|
+
out.push(",\"sourceRangeStart\":");
|
|
393
|
+
out.push(String(seg.sourceRangeStart));
|
|
394
|
+
out.push(",\"sourceRangeEnd\":");
|
|
395
|
+
out.push(String(seg.sourceRangeEnd));
|
|
396
|
+
out.push("}");
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
out.push("]");
|
|
400
|
+
}
|
|
401
|
+
if (plan.emphasisDots.length > 0) {
|
|
402
|
+
out.push(",\"emphasisDots\":[");
|
|
403
|
+
let firstDot = true;
|
|
404
|
+
{
|
|
405
|
+
const _g19 = plan.emphasisDots;
|
|
406
|
+
for (let _g_index5 = 0, count9 = _g19.length; _g_index5 < count9; _g_index5 += 1) {
|
|
407
|
+
const dot = _g19[_g_index5];
|
|
408
|
+
if (!firstDot) {
|
|
409
|
+
out.push(",");
|
|
410
|
+
}
|
|
411
|
+
firstDot = false;
|
|
412
|
+
out.push("{\"clusterRangeStart\":");
|
|
413
|
+
const clusterRangeStart = dot.clusterRangeStart;
|
|
414
|
+
if (clusterRangeStart !== null) {
|
|
415
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(clusterRangeStart));
|
|
416
|
+
}
|
|
417
|
+
else {
|
|
418
|
+
out.push("null");
|
|
419
|
+
}
|
|
420
|
+
out.push(",\"anchorX\":");
|
|
421
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(dot.anchorX));
|
|
422
|
+
out.push(",\"anchorY\":");
|
|
423
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(dot.anchorY));
|
|
424
|
+
out.push(",\"dotDiameter\":");
|
|
425
|
+
out.push(PlanJsonNumber.ecmaJsonNumber(dot.dotDiameter));
|
|
426
|
+
out.push("}");
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
out.push("]");
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
static endReasonName(reason) {
|
|
433
|
+
switch (reason.kind) {
|
|
434
|
+
case "AutoWrap":
|
|
435
|
+
return "AutoWrap";
|
|
436
|
+
case "MandatoryBreak":
|
|
437
|
+
return "MandatoryBreak";
|
|
438
|
+
case "ParagraphEnd":
|
|
439
|
+
return "ParagraphEnd";
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export declare class PlanJsonNumber {
|
|
2
|
+
private static fivePowers;
|
|
3
|
+
private static twoPowers;
|
|
4
|
+
static ecmaJsonNumber(floatValue: number): string;
|
|
5
|
+
static appendJsonString(out: string[], value: string): void;
|
|
6
|
+
static shortestRoundTripDigits(magnitude: number): PlanJsonDigitsAndExponent;
|
|
7
|
+
private static inInterval;
|
|
8
|
+
private static canonicalFloatDigits;
|
|
9
|
+
private static dyadicDecimal;
|
|
10
|
+
private static dyadicDecimalString;
|
|
11
|
+
private static multiplyDecimal;
|
|
12
|
+
private static fiveToThe;
|
|
13
|
+
private static twoToThe;
|
|
14
|
+
private static powerTable;
|
|
15
|
+
private static timesLong;
|
|
16
|
+
private static addDecimal;
|
|
17
|
+
private static roundToSignificant;
|
|
18
|
+
private static compareDecimal;
|
|
19
|
+
private static timesSmall;
|
|
20
|
+
private static incrementDecimal;
|
|
21
|
+
private static decrementDecimal;
|
|
22
|
+
private static decompose;
|
|
23
|
+
private static decomposeF32;
|
|
24
|
+
private static compareDigitStrings;
|
|
25
|
+
private static zeros;
|
|
26
|
+
private static trimZeros;
|
|
27
|
+
private static reverse;
|
|
28
|
+
}
|
|
29
|
+
export interface PlanJsonDigitsAndExponent {
|
|
30
|
+
digits: string;
|
|
31
|
+
exponent: number;
|
|
32
|
+
}
|
|
33
|
+
export declare function comparePlanJsonDigitsAndExponent(a: PlanJsonDigitsAndExponent, b: PlanJsonDigitsAndExponent): number;
|
|
34
|
+
export interface PlanJsonDecomposed {
|
|
35
|
+
mantissa: string;
|
|
36
|
+
exp2: number;
|
|
37
|
+
}
|
|
38
|
+
export declare function comparePlanJsonDecomposed(a: PlanJsonDecomposed, b: PlanJsonDecomposed): number;
|
|
39
|
+
export interface PlanJsonF32Decomposed {
|
|
40
|
+
mant24: number;
|
|
41
|
+
exp2: number;
|
|
42
|
+
}
|
|
43
|
+
export declare function comparePlanJsonF32Decomposed(a: PlanJsonF32Decomposed, b: PlanJsonF32Decomposed): number;
|