@tiqian/shared 0.0.0-stage.1 → 0.1.0-alpha.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/dist/org/tiqian/clreq/AdjustmentStylePolicy.d.ts +11 -0
  2. package/dist/org/tiqian/clreq/AdjustmentStylePolicy.js +21 -0
  3. package/dist/org/tiqian/clreq/AutoSpaceMode.d.ts +16 -0
  4. package/dist/org/tiqian/clreq/AutoSpaceMode.js +17 -0
  5. package/dist/org/tiqian/clreq/AutoSpacePolicy.d.ts +13 -0
  6. package/dist/org/tiqian/clreq/AutoSpacePolicy.js +23 -0
  7. package/dist/org/tiqian/clreq/BopomofoReading.d.ts +12 -0
  8. package/dist/org/tiqian/clreq/BopomofoReading.js +86 -0
  9. package/dist/org/tiqian/clreq/BopomofoTone.d.ts +28 -0
  10. package/dist/org/tiqian/clreq/BopomofoTone.js +26 -0
  11. package/dist/org/tiqian/clreq/CjkPunctuationGlyphPolicy.d.ts +16 -0
  12. package/dist/org/tiqian/clreq/CjkPunctuationGlyphPolicy.js +17 -0
  13. package/dist/org/tiqian/clreq/ClreqProfile.d.ts +27 -0
  14. package/dist/org/tiqian/clreq/ClreqProfile.js +58 -0
  15. package/dist/org/tiqian/clreq/ClreqRegion.d.ts +20 -0
  16. package/dist/org/tiqian/clreq/ClreqRegion.js +20 -0
  17. package/dist/org/tiqian/clreq/ClreqStrictness.d.ts +16 -0
  18. package/dist/org/tiqian/clreq/ClreqStrictness.js +17 -0
  19. package/dist/org/tiqian/clreq/GlueSide.d.ts +16 -0
  20. package/dist/org/tiqian/clreq/GlueSide.js +17 -0
  21. package/dist/org/tiqian/clreq/HangingPunctuationStyle.d.ts +12 -0
  22. package/dist/org/tiqian/clreq/HangingPunctuationStyle.js +14 -0
  23. package/dist/org/tiqian/clreq/InteriorPunctuationStyle.d.ts +12 -0
  24. package/dist/org/tiqian/clreq/InteriorPunctuationStyle.js +14 -0
  25. package/dist/org/tiqian/clreq/KinsokuLevel.d.ts +20 -0
  26. package/dist/org/tiqian/clreq/KinsokuLevel.js +20 -0
  27. package/dist/org/tiqian/clreq/KinsokuMode.d.ts +14 -0
  28. package/dist/org/tiqian/clreq/KinsokuMode.js +2 -0
  29. package/dist/org/tiqian/clreq/KinsokuModes.d.ts +11 -0
  30. package/dist/org/tiqian/clreq/KinsokuModes.js +71 -0
  31. package/dist/org/tiqian/clreq/LineAdjustmentStrategy.d.ts +16 -0
  32. package/dist/org/tiqian/clreq/LineAdjustmentStrategy.js +17 -0
  33. package/dist/org/tiqian/clreq/LineEndPunctuationStyle.d.ts +12 -0
  34. package/dist/org/tiqian/clreq/LineEndPunctuationStyle.js +14 -0
  35. package/dist/org/tiqian/clreq/PunctuationClass.d.ts +44 -0
  36. package/dist/org/tiqian/clreq/PunctuationClass.js +38 -0
  37. package/dist/org/tiqian/clreq/PunctuationGluePlacement.d.ts +12 -0
  38. package/dist/org/tiqian/clreq/PunctuationGluePlacement.js +14 -0
  39. package/dist/org/tiqian/clreq/PunctuationGluePlacements.d.ts +9 -0
  40. package/dist/org/tiqian/clreq/PunctuationGluePlacements.js +49 -0
  41. package/dist/org/tiqian/clreq/PunctuationWidthPolicy.d.ts +8 -0
  42. package/dist/org/tiqian/clreq/PunctuationWidthPolicy.js +16 -0
  43. package/dist/org/tiqian/clreq/ResolvedKinsoku.d.ts +12 -0
  44. package/dist/org/tiqian/clreq/ResolvedKinsoku.js +43 -0
  45. package/dist/org/tiqian/core/Cluster.d.ts +13 -0
  46. package/dist/org/tiqian/core/Cluster.js +24 -0
  47. package/dist/org/tiqian/core/EastAsianSpacingData.d.ts +4 -0
  48. package/dist/org/tiqian/core/EastAsianSpacingData.js +399 -0
  49. package/dist/org/tiqian/core/EastAsianSpacingEdges.d.ts +8 -0
  50. package/dist/org/tiqian/core/EastAsianSpacingEdges.js +14 -0
  51. package/dist/org/tiqian/core/EastAsianSpacingValue.d.ts +20 -0
  52. package/dist/org/tiqian/core/EastAsianSpacingValue.js +20 -0
  53. package/dist/org/tiqian/core/Ic.d.ts +7 -0
  54. package/dist/org/tiqian/core/Ic.js +17 -0
  55. package/dist/org/tiqian/core/IllegalStateException.d.ts +4 -0
  56. package/dist/org/tiqian/core/IllegalStateException.js +8 -0
  57. package/dist/org/tiqian/core/IntRange.d.ts +12 -0
  58. package/dist/org/tiqian/core/IntRange.js +30 -0
  59. package/dist/org/tiqian/core/LineEndReason.d.ts +16 -0
  60. package/dist/org/tiqian/core/LineEndReason.js +17 -0
  61. package/dist/org/tiqian/core/SourceBoundaryBias.d.ts +16 -0
  62. package/dist/org/tiqian/core/SourceBoundaryBias.js +17 -0
  63. package/dist/org/tiqian/core/SourceInteractionBoundaries.d.ts +29 -0
  64. package/dist/org/tiqian/core/SourceInteractionBoundaries.js +193 -0
  65. package/dist/org/tiqian/core/TextRange.d.ts +11 -0
  66. package/dist/org/tiqian/core/TextRange.js +40 -0
  67. package/dist/org/tiqian/core/TextRangeError.d.ts +11 -0
  68. package/dist/org/tiqian/core/TextRangeError.js +2 -0
  69. package/dist/org/tiqian/core/TiqianIllegalArgumentException.d.ts +6 -0
  70. package/dist/org/tiqian/core/TiqianIllegalArgumentException.js +21 -0
  71. package/dist/org/tiqian/core/TiqianNoSuchElementException.d.ts +10 -0
  72. package/dist/org/tiqian/core/TiqianNoSuchElementException.js +16 -0
  73. package/dist/org/tiqian/core/UnicodeCombiningMarkData.d.ts +3 -0
  74. package/dist/org/tiqian/core/UnicodeCombiningMarkData.js +109 -0
  75. package/dist/org/tiqian/core/UnicodeEastAsianSpacing.d.ts +16 -0
  76. package/dist/org/tiqian/core/UnicodeEastAsianSpacing.js +88 -0
  77. package/dist/org/tiqian/core/UnicodeEmojiModifierBaseData.d.ts +3 -0
  78. package/dist/org/tiqian/core/UnicodeEmojiModifierBaseData.js +35 -0
  79. package/dist/org/tiqian/core/UnicodeExtendedPictographicData.d.ts +3 -0
  80. package/dist/org/tiqian/core/UnicodeExtendedPictographicData.js +64 -0
  81. package/dist/org/tiqian/core/UnicodeNumber.d.ts +3 -0
  82. package/dist/org/tiqian/core/UnicodeNumber.js +14 -0
  83. package/dist/org/tiqian/core/UnicodeNumberData.d.ts +3 -0
  84. package/dist/org/tiqian/core/UnicodeNumberData.js +64 -0
  85. package/dist/org/tiqian/core/UnicodeScriptEvidence.d.ts +16 -0
  86. package/dist/org/tiqian/core/UnicodeScriptEvidence.js +17 -0
  87. package/dist/org/tiqian/core/UnicodeScriptEvidenceClassifier.d.ts +7 -0
  88. package/dist/org/tiqian/core/UnicodeScriptEvidenceClassifier.js +17 -0
  89. package/dist/org/tiqian/core/UnicodeScriptEvidenceData.d.ts +4 -0
  90. package/dist/org/tiqian/core/UnicodeScriptEvidenceData.js +295 -0
  91. package/dist/org/tiqian/core/UnicodeWordCharacter.d.ts +6 -0
  92. package/dist/org/tiqian/core/UnicodeWordCharacter.js +17 -0
  93. package/dist/org/tiqian/core/UnicodeWordCharacterData.d.ts +3 -0
  94. package/dist/org/tiqian/core/UnicodeWordCharacterData.js +234 -0
  95. package/dist/org/tiqian/font/FontRole.d.ts +28 -0
  96. package/dist/org/tiqian/font/FontRole.js +26 -0
  97. package/dist/org/tiqian/font/FontRoleContext.d.ts +13 -0
  98. package/dist/org/tiqian/font/FontRoleContext.js +28 -0
  99. package/dist/org/tiqian/layout/ContextualQuoteRoleResolver.d.ts +51 -0
  100. package/dist/org/tiqian/layout/ContextualQuoteRoleResolver.js +305 -0
  101. package/dist/org/tiqian/layout/LineOptimization.d.ts +124 -0
  102. package/dist/org/tiqian/layout/LineOptimization.js +298 -0
  103. package/dist/org/tiqian/layout/ProgressiveBreakDecisions.d.ts +86 -0
  104. package/dist/org/tiqian/layout/ProgressiveBreakDecisions.js +415 -0
  105. package/dist/org/tiqian/layout/ProgressiveBreakTierPriority.d.ts +5 -0
  106. package/dist/org/tiqian/layout/ProgressiveBreakTierPriority.js +33 -0
  107. package/dist/org/tiqian/layout/QuotePairAnalyzer.d.ts +63 -0
  108. package/dist/org/tiqian/layout/QuotePairAnalyzer.js +251 -0
  109. package/dist/org/tiqian/linebreak/BreakKind.d.ts +20 -0
  110. package/dist/org/tiqian/linebreak/BreakKind.js +20 -0
  111. package/dist/org/tiqian/shared/SnapshotValueStyle.d.ts +11 -0
  112. package/dist/org/tiqian/shared/SnapshotValueStyle.js +64 -0
  113. package/dist/org/tiqian/shared/ValueStyleInterner.d.ts +7 -0
  114. package/dist/org/tiqian/shared/ValueStyleInterner.js +23 -0
  115. package/dist/org/tiqian/shared/html/CompoundSelector.d.ts +28 -0
  116. package/dist/org/tiqian/shared/html/CompoundSelector.js +247 -0
  117. package/dist/org/tiqian/shared/html/DomAttribute.d.ts +5 -0
  118. package/dist/org/tiqian/shared/html/DomAttribute.js +10 -0
  119. package/dist/org/tiqian/shared/html/DomNode.d.ts +10 -0
  120. package/dist/org/tiqian/shared/html/DomNode.js +2 -0
  121. package/dist/org/tiqian/shared/html/DomParser.d.ts +16 -0
  122. package/dist/org/tiqian/shared/html/DomParser.js +84 -0
  123. package/dist/org/tiqian/shared/html/HtmlAttributeInsertion.d.ts +4 -0
  124. package/dist/org/tiqian/shared/html/HtmlAttributeInsertion.js +2 -0
  125. package/dist/org/tiqian/shared/html/HtmlError.d.ts +16 -0
  126. package/dist/org/tiqian/shared/html/HtmlError.js +17 -0
  127. package/dist/org/tiqian/shared/html/HtmlNameCase.d.ts +3 -0
  128. package/dist/org/tiqian/shared/html/HtmlNameCase.js +20 -0
  129. package/dist/org/tiqian/shared/html/HtmlOpeningTag.d.ts +6 -0
  130. package/dist/org/tiqian/shared/html/HtmlOpeningTag.js +12 -0
  131. package/dist/org/tiqian/shared/html/HtmlParseException.d.ts +6 -0
  132. package/dist/org/tiqian/shared/html/HtmlParseException.js +19 -0
  133. package/dist/org/tiqian/shared/html/HtmlScan.d.ts +16 -0
  134. package/dist/org/tiqian/shared/html/HtmlScan.js +191 -0
  135. package/dist/org/tiqian/shared/prepared_dom/AttributeEntry.d.ts +5 -0
  136. package/dist/org/tiqian/shared/prepared_dom/AttributeEntry.js +10 -0
  137. package/dist/org/tiqian/shared/prepared_dom/BopomofoPlacement.d.ts +8 -0
  138. package/dist/org/tiqian/shared/prepared_dom/BopomofoPlacement.js +2 -0
  139. package/dist/org/tiqian/shared/prepared_dom/BopomofoPlacementCss.d.ts +6 -0
  140. package/dist/org/tiqian/shared/prepared_dom/BopomofoPlacementCss.js +2 -0
  141. package/dist/org/tiqian/shared/prepared_dom/BopomofoZone.d.ts +7 -0
  142. package/dist/org/tiqian/shared/prepared_dom/BopomofoZone.js +2 -0
  143. package/dist/org/tiqian/shared/prepared_dom/EmphasisDotColorResolver.d.ts +4 -0
  144. package/dist/org/tiqian/shared/prepared_dom/EmphasisDotColorResolver.js +2 -0
  145. package/dist/org/tiqian/shared/prepared_dom/Evidence.d.ts +33 -0
  146. package/dist/org/tiqian/shared/prepared_dom/Evidence.js +251 -0
  147. package/dist/org/tiqian/shared/prepared_dom/EvidenceDecorationKind.d.ts +12 -0
  148. package/dist/org/tiqian/shared/prepared_dom/EvidenceDecorationKind.js +14 -0
  149. package/dist/org/tiqian/shared/prepared_dom/EvidenceDecorationSegment.d.ts +7 -0
  150. package/dist/org/tiqian/shared/prepared_dom/EvidenceDecorationSegment.js +2 -0
  151. package/dist/org/tiqian/shared/prepared_dom/EvidenceEmphasisDot.d.ts +6 -0
  152. package/dist/org/tiqian/shared/prepared_dom/EvidenceEmphasisDot.js +2 -0
  153. package/dist/org/tiqian/shared/prepared_dom/EvidenceOverlayOptions.d.ts +4 -0
  154. package/dist/org/tiqian/shared/prepared_dom/EvidenceOverlayOptions.js +2 -0
  155. package/dist/org/tiqian/shared/prepared_dom/EvidenceOverlayPlan.d.ts +9 -0
  156. package/dist/org/tiqian/shared/prepared_dom/EvidenceOverlayPlan.js +2 -0
  157. package/dist/org/tiqian/shared/prepared_dom/FixedEmphasisDotColor.d.ts +5 -0
  158. package/dist/org/tiqian/shared/prepared_dom/FixedEmphasisDotColor.js +8 -0
  159. package/dist/org/tiqian/shared/prepared_dom/InlineBoxEntry.d.ts +6 -0
  160. package/dist/org/tiqian/shared/prepared_dom/InlineBoxEntry.js +2 -0
  161. package/dist/org/tiqian/shared/prepared_dom/InlineEdgeEntry.d.ts +5 -0
  162. package/dist/org/tiqian/shared/prepared_dom/InlineEdgeEntry.js +2 -0
  163. package/dist/org/tiqian/shared/prepared_dom/InlineObjectPlaceholderCell.d.ts +6 -0
  164. package/dist/org/tiqian/shared/prepared_dom/InlineObjectPlaceholderCell.js +2 -0
  165. package/dist/org/tiqian/shared/prepared_dom/Markup.d.ts +30 -0
  166. package/dist/org/tiqian/shared/prepared_dom/Markup.js +344 -0
  167. package/dist/org/tiqian/shared/prepared_dom/MarkupArtifact.d.ts +12 -0
  168. package/dist/org/tiqian/shared/prepared_dom/MarkupArtifact.js +2 -0
  169. package/dist/org/tiqian/shared/prepared_dom/MarkupContainer.d.ts +7 -0
  170. package/dist/org/tiqian/shared/prepared_dom/MarkupContainer.js +2 -0
  171. package/dist/org/tiqian/shared/prepared_dom/MarkupNode.d.ts +5 -0
  172. package/dist/org/tiqian/shared/prepared_dom/MarkupNode.js +2 -0
  173. package/dist/org/tiqian/shared/prepared_dom/PlanBopomofoZone.d.ts +8 -0
  174. package/dist/org/tiqian/shared/prepared_dom/PlanBopomofoZone.js +2 -0
  175. package/dist/org/tiqian/shared/prepared_dom/PlanRubyAnnotation.d.ts +10 -0
  176. package/dist/org/tiqian/shared/prepared_dom/PlanRubyAnnotation.js +2 -0
  177. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifact.d.ts +22 -0
  178. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifact.js +457 -0
  179. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactOptions.d.ts +15 -0
  180. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactOptions.js +2 -0
  181. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactResult.d.ts +8 -0
  182. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactResult.js +2 -0
  183. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactState.d.ts +11 -0
  184. package/dist/org/tiqian/shared/prepared_dom/PreparedArtifactState.js +2 -0
  185. package/dist/org/tiqian/shared/prepared_dom/PreparedCjkStrongSemantic.d.ts +5 -0
  186. package/dist/org/tiqian/shared/prepared_dom/PreparedCjkStrongSemantic.js +2 -0
  187. package/dist/org/tiqian/shared/prepared_dom/PreparedDom.d.ts +28 -0
  188. package/dist/org/tiqian/shared/prepared_dom/PreparedDom.js +184 -0
  189. package/dist/org/tiqian/shared/prepared_dom/PreparedDomError.d.ts +15 -0
  190. package/dist/org/tiqian/shared/prepared_dom/PreparedDomError.js +2 -0
  191. package/dist/org/tiqian/shared/prepared_dom/PreparedDomException.d.ts +6 -0
  192. package/dist/org/tiqian/shared/prepared_dom/PreparedDomException.js +25 -0
  193. package/dist/org/tiqian/shared/prepared_dom/PreparedDomTestSupport.d.ts +11 -0
  194. package/dist/org/tiqian/shared/prepared_dom/PreparedDomTestSupport.js +93 -0
  195. package/dist/org/tiqian/shared/prepared_dom/PreparedEmphasisRange.d.ts +4 -0
  196. package/dist/org/tiqian/shared/prepared_dom/PreparedEmphasisRange.js +2 -0
  197. package/dist/org/tiqian/shared/prepared_dom/PreparedLineChild.d.ts +16 -0
  198. package/dist/org/tiqian/shared/prepared_dom/PreparedLineChild.js +2 -0
  199. package/dist/org/tiqian/shared/prepared_dom/PreparedPlan.d.ts +19 -0
  200. package/dist/org/tiqian/shared/prepared_dom/PreparedPlan.js +2 -0
  201. package/dist/org/tiqian/shared/prepared_dom/PreparedPlanCell.d.ts +26 -0
  202. package/dist/org/tiqian/shared/prepared_dom/PreparedPlanCell.js +2 -0
  203. package/dist/org/tiqian/shared/prepared_dom/PreparedPlanLine.d.ts +13 -0
  204. package/dist/org/tiqian/shared/prepared_dom/PreparedPlanLine.js +2 -0
  205. package/dist/org/tiqian/shared/prepared_dom/PreparedRenderTextSpan.d.ts +6 -0
  206. package/dist/org/tiqian/shared/prepared_dom/PreparedRenderTextSpan.js +2 -0
  207. package/dist/org/tiqian/shared/prepared_dom/PreparedRunRenderInput.d.ts +23 -0
  208. package/dist/org/tiqian/shared/prepared_dom/PreparedRunRenderInput.js +2 -0
  209. package/dist/org/tiqian/shared/prepared_dom/PreparedRunSignature.d.ts +19 -0
  210. package/dist/org/tiqian/shared/prepared_dom/PreparedRunSignature.js +2 -0
  211. package/dist/org/tiqian/shared/prepared_dom/PreparedRunTyped.d.ts +32 -0
  212. package/dist/org/tiqian/shared/prepared_dom/PreparedRunTyped.js +2 -0
  213. package/dist/org/tiqian/shared/prepared_dom/PreparedSemanticSpan.d.ts +10 -0
  214. package/dist/org/tiqian/shared/prepared_dom/PreparedSemanticSpan.js +2 -0
  215. package/dist/org/tiqian/shared/prepared_dom/PreparedSpacingResult.d.ts +4 -0
  216. package/dist/org/tiqian/shared/prepared_dom/PreparedSpacingResult.js +2 -0
  217. package/dist/org/tiqian/shared/prepared_dom/RenderedMarkupContainer.d.ts +16 -0
  218. package/dist/org/tiqian/shared/prepared_dom/RenderedMarkupContainer.js +48 -0
  219. package/dist/org/tiqian/shared/prepared_dom/RenderedMarkupNode.d.ts +11 -0
  220. package/dist/org/tiqian/shared/prepared_dom/RenderedMarkupNode.js +21 -0
  221. package/dist/org/tiqian/shared/prepared_dom/RubyAnnotation.d.ts +9 -0
  222. package/dist/org/tiqian/shared/prepared_dom/RubyAnnotation.js +2 -0
  223. package/dist/org/tiqian/shared/prepared_dom/StyleClassResolver.d.ts +4 -0
  224. package/dist/org/tiqian/shared/prepared_dom/StyleClassResolver.js +2 -0
  225. package/dist/org/tiqian/shared/prepared_dom/StyleDelta.d.ts +5 -0
  226. package/dist/org/tiqian/shared/prepared_dom/StyleDelta.js +2 -0
  227. package/dist/org/tiqian/shared/snapshot/SnapshotSource.d.ts +24 -0
  228. package/dist/org/tiqian/shared/snapshot/SnapshotSource.js +135 -0
  229. package/dist/org/tiqian/test/TestHelpers.d.ts +5 -0
  230. package/dist/org/tiqian/test/TestHelpers.js +27 -0
  231. package/dist/org/tiqian/test/trace/TestTrace.d.ts +6 -0
  232. package/dist/org/tiqian/test/trace/TestTrace.js +8 -0
  233. package/dist/org/tiqian/test/trace/TestTracePlatform.d.ts +6 -0
  234. package/dist/org/tiqian/test/trace/TestTracePlatform.js +78 -0
  235. package/dist/org/tiqian/test/trace/TestTraceRecorder.d.ts +9 -0
  236. package/dist/org/tiqian/test/trace/TestTraceRecorder.js +36 -0
  237. package/dist/org/tiqian/test/trace/TestTraceRender.d.ts +47 -0
  238. package/dist/org/tiqian/test/trace/TestTraceRender.js +690 -0
  239. package/dist/org/tiqian/test/trace/TestTraceStore.d.ts +18 -0
  240. package/dist/org/tiqian/test/trace/TestTraceStore.js +149 -0
  241. package/dist/org/tiqian/test/trace/TraceAssertionError.d.ts +5 -0
  242. package/dist/org/tiqian/test/trace/TraceAssertionError.js +2 -0
  243. package/dist/org/tiqian/test/trace/TraceAssertionException.d.ts +6 -0
  244. package/dist/org/tiqian/test/trace/TraceAssertionException.js +16 -0
  245. package/dist/org/tiqian/test/trace/TraceField.d.ts +5 -0
  246. package/dist/org/tiqian/test/trace/TraceField.js +10 -0
  247. package/dist/org/tiqian/test/trace/TraceFormat.d.ts +21 -0
  248. package/dist/org/tiqian/test/trace/TraceFormat.js +184 -0
  249. package/dist/runtime.d.ts +96 -0
  250. package/dist/runtime.js +1612 -0
  251. package/dist/std/FsError.d.ts +48 -0
  252. package/dist/std/FsError.js +2 -0
  253. package/dist/std/FsException.d.ts +6 -0
  254. package/dist/std/FsException.js +45 -0
  255. package/dist/std/UStringException.d.ts +6 -0
  256. package/dist/std/UStringException.js +21 -0
  257. package/dist/std/UStringFault.d.ts +9 -0
  258. package/dist/std/UStringFault.js +2 -0
  259. package/package.json +22 -4
  260. package/README.md +0 -3
@@ -0,0 +1,11 @@
1
+ import { type MarkupArtifact } from "./MarkupArtifact.js";
2
+ import { type MarkupNode } from "./MarkupNode.js";
3
+ export declare class RenderedMarkupNode implements MarkupNode {
4
+ private readonly _html;
5
+ private readonly _artifact;
6
+ constructor(html: string, artifact: MarkupArtifact);
7
+ get html(): string;
8
+ private get_html;
9
+ get artifact(): MarkupArtifact;
10
+ private get_artifact;
11
+ }
@@ -0,0 +1,21 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export class RenderedMarkupNode {
3
+ _html;
4
+ _artifact;
5
+ constructor(html, artifact) {
6
+ this._html = html;
7
+ this._artifact = artifact;
8
+ }
9
+ get html() {
10
+ return this.get_html();
11
+ }
12
+ get_html() {
13
+ return this._html;
14
+ }
15
+ get artifact() {
16
+ return this.get_artifact();
17
+ }
18
+ get_artifact() {
19
+ return this._artifact;
20
+ }
21
+ }
@@ -0,0 +1,9 @@
1
+ export interface RubyAnnotation {
2
+ fontSize: number;
3
+ ascent: number;
4
+ fontFamilies: string[];
5
+ text: string;
6
+ fontWeight: number;
7
+ centerX: number;
8
+ baselineY: number;
9
+ }
@@ -0,0 +1,2 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ export type StyleClassResolverResolveFn = (declaration: string) => string;
2
+ export interface StyleClassResolver {
3
+ readonly resolve: StyleClassResolverResolveFn;
4
+ }
@@ -0,0 +1,2 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface StyleDelta {
2
+ fontSize: number | null;
3
+ fontWeight: number | null;
4
+ italic: boolean | null;
5
+ }
@@ -0,0 +1,2 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export {};
@@ -0,0 +1,24 @@
1
+ export declare class FoldState {
2
+ projected: string[];
3
+ boundaryMap: number[];
4
+ pendingStart: number;
5
+ pendingEnd: number;
6
+ constructor(length: number);
7
+ resolvePending(emit: boolean): void;
8
+ }
9
+ export declare class SnapshotSource {
10
+ static isSafeTag(tagName: string): boolean;
11
+ static isSupportedAttributeName(name: string): boolean;
12
+ static isUnsafeHref(value: string): boolean;
13
+ static foldNormalFlow(text: string, hardBreakOffsets: number[]): FoldResult;
14
+ private static matchesAttributeName;
15
+ private static isAttributeStart;
16
+ private static isAttributePart;
17
+ private static isJavascriptWord;
18
+ private static isJsWhitespace;
19
+ private static isCollapsibleWhitespace;
20
+ }
21
+ export interface FoldResult {
22
+ text: string;
23
+ boundaryMap: number[];
24
+ }
@@ -0,0 +1,135 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ import { readUnit } from "../../../../runtime.js";
3
+ export class FoldState {
4
+ projected;
5
+ boundaryMap;
6
+ pendingStart;
7
+ pendingEnd;
8
+ constructor(length) {
9
+ this.projected = [];
10
+ this.boundaryMap = [];
11
+ let i = 0;
12
+ while (i <= length) {
13
+ this.boundaryMap.push(0);
14
+ i++;
15
+ }
16
+ this.pendingStart = -1;
17
+ this.pendingEnd = -1;
18
+ }
19
+ resolvePending(emit) {
20
+ if (this.pendingStart < 0) {
21
+ return;
22
+ }
23
+ const before = this.projected.length;
24
+ if (emit && this.projected.length > 0 && this.projected[this.projected.length - 1] !== "\n") {
25
+ this.projected.push(" ");
26
+ }
27
+ const after = this.projected.length;
28
+ this.boundaryMap[this.pendingStart] = before;
29
+ let boundary = this.pendingStart + 1;
30
+ while (boundary <= this.pendingEnd) {
31
+ this.boundaryMap[boundary] = after;
32
+ boundary++;
33
+ }
34
+ this.pendingStart = -1;
35
+ this.pendingEnd = -1;
36
+ }
37
+ }
38
+ export class SnapshotSource {
39
+ static isSafeTag(tagName) {
40
+ return tagName === "a" || tagName === "abbr" || tagName === "b" || tagName === "bdi" || tagName === "bdo" || tagName === "cite" || tagName === "code" || tagName === "data" || tagName === "del" || tagName === "dfn" || tagName === "em" || tagName === "i" || tagName === "ins" || tagName === "kbd" || tagName === "mark" || tagName === "q" || tagName === "s" || tagName === "samp" || tagName === "small" || tagName === "span" || tagName === "strong" || tagName === "sub" || tagName === "sup" || tagName === "time" || tagName === "u" || tagName === "var";
41
+ }
42
+ static isSupportedAttributeName(name) {
43
+ if (name === "style") {
44
+ return false;
45
+ }
46
+ if (name.length >= 2 && name.substring(0, 2) === "on") {
47
+ return false;
48
+ }
49
+ if (name.length >= 8 && name.substring(0, 8) === "data-tq-") {
50
+ return false;
51
+ }
52
+ return SnapshotSource.matchesAttributeName(name);
53
+ }
54
+ static isUnsafeHref(value) {
55
+ let i = 0;
56
+ while (i < value.length && SnapshotSource.isJsWhitespace((Number.isNaN(value.charCodeAt(i)) ? null : value.charCodeAt(i)))) {
57
+ i++;
58
+ }
59
+ if (i + 11 > value.length) {
60
+ return false;
61
+ }
62
+ if (!SnapshotSource.isJavascriptWord(value.substring(i, i + 10))) {
63
+ return false;
64
+ }
65
+ return readUnit(value, i + 10) === 58;
66
+ }
67
+ static foldNormalFlow(text, hardBreakOffsets) {
68
+ const state = new FoldState(text.length);
69
+ let hb = 0;
70
+ let index = 0;
71
+ while (index < text.length) {
72
+ while (hb < hardBreakOffsets.length && hardBreakOffsets[hb] < index) {
73
+ hb++;
74
+ }
75
+ const isHardBreak = (Number.isNaN(text.charCodeAt(index)) ? null : text.charCodeAt(index)) === 10 && hb < hardBreakOffsets.length && hardBreakOffsets[hb] === index;
76
+ if (isHardBreak) {
77
+ state.resolvePending(false);
78
+ state.boundaryMap[index] = state.projected.length;
79
+ state.projected.push("\n");
80
+ state.boundaryMap[index + 1] = state.projected.length;
81
+ hb++;
82
+ }
83
+ else {
84
+ if (SnapshotSource.isCollapsibleWhitespace((Number.isNaN(text.charCodeAt(index)) ? null : text.charCodeAt(index)))) {
85
+ if (state.pendingStart < 0) {
86
+ state.pendingStart = index;
87
+ state.boundaryMap[index] = state.projected.length;
88
+ }
89
+ state.pendingEnd = index + 1;
90
+ }
91
+ else {
92
+ state.resolvePending(true);
93
+ state.boundaryMap[index] = state.projected.length;
94
+ state.projected.push(text.substring(index, index + 1));
95
+ state.boundaryMap[index + 1] = state.projected.length;
96
+ }
97
+ }
98
+ index++;
99
+ }
100
+ state.resolvePending(false);
101
+ state.boundaryMap[text.length] = state.projected.length;
102
+ return { text: state.projected.join(""), boundaryMap: state.boundaryMap };
103
+ }
104
+ static matchesAttributeName(name) {
105
+ if (name.length === 0) {
106
+ return false;
107
+ }
108
+ if (!SnapshotSource.isAttributeStart((Number.isNaN(name.charCodeAt(0)) ? null : name.charCodeAt(0)))) {
109
+ return false;
110
+ }
111
+ let i = 1;
112
+ while (i < name.length) {
113
+ if (!SnapshotSource.isAttributePart((Number.isNaN(name.charCodeAt(i)) ? null : name.charCodeAt(i)))) {
114
+ return false;
115
+ }
116
+ i++;
117
+ }
118
+ return true;
119
+ }
120
+ static isAttributeStart(code) {
121
+ return code >= 65 && code <= 90 || code >= 97 && code <= 122 || code === 95 || code === 58;
122
+ }
123
+ static isAttributePart(code) {
124
+ return SnapshotSource.isAttributeStart(code) || code >= 48 && code <= 57 || code === 46 || code === 45;
125
+ }
126
+ static isJavascriptWord(word) {
127
+ return ((Number.isNaN(word.charCodeAt(0)) ? null : word.charCodeAt(0)) === 106 || (Number.isNaN(word.charCodeAt(0)) ? null : word.charCodeAt(0)) === 74) && ((Number.isNaN(word.charCodeAt(1)) ? null : word.charCodeAt(1)) === 97 || (Number.isNaN(word.charCodeAt(1)) ? null : word.charCodeAt(1)) === 65) && ((Number.isNaN(word.charCodeAt(2)) ? null : word.charCodeAt(2)) === 118 || (Number.isNaN(word.charCodeAt(2)) ? null : word.charCodeAt(2)) === 86) && ((Number.isNaN(word.charCodeAt(3)) ? null : word.charCodeAt(3)) === 97 || (Number.isNaN(word.charCodeAt(3)) ? null : word.charCodeAt(3)) === 65) && ((Number.isNaN(word.charCodeAt(4)) ? null : word.charCodeAt(4)) === 115 || (Number.isNaN(word.charCodeAt(4)) ? null : word.charCodeAt(4)) === 83) && ((Number.isNaN(word.charCodeAt(5)) ? null : word.charCodeAt(5)) === 99 || (Number.isNaN(word.charCodeAt(5)) ? null : word.charCodeAt(5)) === 67) && ((Number.isNaN(word.charCodeAt(6)) ? null : word.charCodeAt(6)) === 114 || (Number.isNaN(word.charCodeAt(6)) ? null : word.charCodeAt(6)) === 82) && ((Number.isNaN(word.charCodeAt(7)) ? null : word.charCodeAt(7)) === 105 || (Number.isNaN(word.charCodeAt(7)) ? null : word.charCodeAt(7)) === 73) && ((Number.isNaN(word.charCodeAt(8)) ? null : word.charCodeAt(8)) === 112 || (Number.isNaN(word.charCodeAt(8)) ? null : word.charCodeAt(8)) === 80) && ((Number.isNaN(word.charCodeAt(9)) ? null : word.charCodeAt(9)) === 116 || (Number.isNaN(word.charCodeAt(9)) ? null : word.charCodeAt(9)) === 84);
128
+ }
129
+ static isJsWhitespace(code) {
130
+ return code === 9 || code === 10 || code === 11 || code === 12 || code === 13 || code === 32 || code === 160 || code === 5760 || code >= 8192 && code <= 8202 || code === 8232 || code === 8233 || code === 8239 || code === 8287 || code === 12288 || code === 65279;
131
+ }
132
+ static isCollapsibleWhitespace(code) {
133
+ return code === 32 || code === 9 || code === 10 || code === 13 || code === 12;
134
+ }
135
+ }
@@ -0,0 +1,5 @@
1
+ export declare class TestHelpers {
2
+ static f32Literal(value: number): number;
3
+ static f32Bits(bits: number): number;
4
+ static surrogateText(codeUnits: number[]): string;
5
+ }
@@ -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,6 @@
1
+ import { type TestTraceRecorder } from "./TestTraceRecorder.js";
2
+ export declare class TestTrace {
3
+ static readonly updateMode: boolean;
4
+ static recorder: TestTraceRecorder | null;
5
+ static currentRecorder(): TestTraceRecorder | null;
6
+ }
@@ -0,0 +1,8 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export class TestTrace {
3
+ static updateMode = true;
4
+ static recorder = null;
5
+ static currentRecorder() {
6
+ return TestTrace.recorder;
7
+ }
8
+ }
@@ -0,0 +1,6 @@
1
+ export declare class TestTracePlatform {
2
+ static readonly updateMode: boolean;
3
+ static readonly doubleArithmetic: boolean;
4
+ static readonly directory: string;
5
+ static writeGolden(className: string, text: string): void;
6
+ }
@@ -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,9 @@
1
+ export declare class TestTraceRecorder {
2
+ private readonly className;
3
+ private sectionName;
4
+ constructor(className: string);
5
+ section(name: string): void;
6
+ record(line: string): void;
7
+ flush(): void;
8
+ static flushClass(className: string): void;
9
+ }
@@ -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
+ }