@tiqian/protocol 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.
Files changed (228) hide show
  1. package/dist/haxe/crypto/Sha256.d.ts +19 -0
  2. package/dist/haxe/crypto/Sha256.js +194 -0
  3. package/dist/org/tiqian/clreq/AdjustmentStylePolicy.d.ts +11 -0
  4. package/dist/org/tiqian/clreq/AdjustmentStylePolicy.js +21 -0
  5. package/dist/org/tiqian/clreq/AutoSpaceMode.d.ts +16 -0
  6. package/dist/org/tiqian/clreq/AutoSpaceMode.js +17 -0
  7. package/dist/org/tiqian/clreq/AutoSpacePolicy.d.ts +13 -0
  8. package/dist/org/tiqian/clreq/AutoSpacePolicy.js +23 -0
  9. package/dist/org/tiqian/clreq/BopomofoReading.d.ts +12 -0
  10. package/dist/org/tiqian/clreq/BopomofoReading.js +86 -0
  11. package/dist/org/tiqian/clreq/BopomofoTone.d.ts +28 -0
  12. package/dist/org/tiqian/clreq/BopomofoTone.js +26 -0
  13. package/dist/org/tiqian/clreq/CjkPunctuationGlyphPolicy.d.ts +16 -0
  14. package/dist/org/tiqian/clreq/CjkPunctuationGlyphPolicy.js +17 -0
  15. package/dist/org/tiqian/clreq/ClreqProfile.d.ts +27 -0
  16. package/dist/org/tiqian/clreq/ClreqProfile.js +58 -0
  17. package/dist/org/tiqian/clreq/ClreqRegion.d.ts +20 -0
  18. package/dist/org/tiqian/clreq/ClreqRegion.js +20 -0
  19. package/dist/org/tiqian/clreq/ClreqStrictness.d.ts +16 -0
  20. package/dist/org/tiqian/clreq/ClreqStrictness.js +17 -0
  21. package/dist/org/tiqian/clreq/GlueSide.d.ts +16 -0
  22. package/dist/org/tiqian/clreq/GlueSide.js +17 -0
  23. package/dist/org/tiqian/clreq/HangingPunctuationStyle.d.ts +12 -0
  24. package/dist/org/tiqian/clreq/HangingPunctuationStyle.js +14 -0
  25. package/dist/org/tiqian/clreq/InteriorPunctuationStyle.d.ts +12 -0
  26. package/dist/org/tiqian/clreq/InteriorPunctuationStyle.js +14 -0
  27. package/dist/org/tiqian/clreq/KinsokuLevel.d.ts +20 -0
  28. package/dist/org/tiqian/clreq/KinsokuLevel.js +20 -0
  29. package/dist/org/tiqian/clreq/KinsokuMode.d.ts +14 -0
  30. package/dist/org/tiqian/clreq/KinsokuMode.js +2 -0
  31. package/dist/org/tiqian/clreq/KinsokuModes.d.ts +11 -0
  32. package/dist/org/tiqian/clreq/KinsokuModes.js +71 -0
  33. package/dist/org/tiqian/clreq/LineAdjustmentStrategy.d.ts +16 -0
  34. package/dist/org/tiqian/clreq/LineAdjustmentStrategy.js +17 -0
  35. package/dist/org/tiqian/clreq/LineEndPunctuationStyle.d.ts +12 -0
  36. package/dist/org/tiqian/clreq/LineEndPunctuationStyle.js +14 -0
  37. package/dist/org/tiqian/clreq/PunctuationClass.d.ts +44 -0
  38. package/dist/org/tiqian/clreq/PunctuationClass.js +38 -0
  39. package/dist/org/tiqian/clreq/PunctuationGluePlacement.d.ts +12 -0
  40. package/dist/org/tiqian/clreq/PunctuationGluePlacement.js +14 -0
  41. package/dist/org/tiqian/clreq/PunctuationGluePlacements.d.ts +9 -0
  42. package/dist/org/tiqian/clreq/PunctuationGluePlacements.js +49 -0
  43. package/dist/org/tiqian/clreq/PunctuationWidthPolicy.d.ts +8 -0
  44. package/dist/org/tiqian/clreq/PunctuationWidthPolicy.js +16 -0
  45. package/dist/org/tiqian/clreq/ResolvedKinsoku.d.ts +12 -0
  46. package/dist/org/tiqian/clreq/ResolvedKinsoku.js +43 -0
  47. package/dist/org/tiqian/core/Cluster.d.ts +13 -0
  48. package/dist/org/tiqian/core/Cluster.js +24 -0
  49. package/dist/org/tiqian/core/EastAsianSpacingData.d.ts +4 -0
  50. package/dist/org/tiqian/core/EastAsianSpacingData.js +399 -0
  51. package/dist/org/tiqian/core/EastAsianSpacingEdges.d.ts +8 -0
  52. package/dist/org/tiqian/core/EastAsianSpacingEdges.js +14 -0
  53. package/dist/org/tiqian/core/EastAsianSpacingValue.d.ts +20 -0
  54. package/dist/org/tiqian/core/EastAsianSpacingValue.js +20 -0
  55. package/dist/org/tiqian/core/Ic.d.ts +7 -0
  56. package/dist/org/tiqian/core/Ic.js +17 -0
  57. package/dist/org/tiqian/core/IllegalStateException.d.ts +4 -0
  58. package/dist/org/tiqian/core/IllegalStateException.js +8 -0
  59. package/dist/org/tiqian/core/IntRange.d.ts +12 -0
  60. package/dist/org/tiqian/core/IntRange.js +30 -0
  61. package/dist/org/tiqian/core/LineEndReason.d.ts +16 -0
  62. package/dist/org/tiqian/core/LineEndReason.js +17 -0
  63. package/dist/org/tiqian/core/SourceBoundaryBias.d.ts +16 -0
  64. package/dist/org/tiqian/core/SourceBoundaryBias.js +17 -0
  65. package/dist/org/tiqian/core/SourceInteractionBoundaries.d.ts +29 -0
  66. package/dist/org/tiqian/core/SourceInteractionBoundaries.js +193 -0
  67. package/dist/org/tiqian/core/TextRange.d.ts +11 -0
  68. package/dist/org/tiqian/core/TextRange.js +40 -0
  69. package/dist/org/tiqian/core/TextRangeError.d.ts +11 -0
  70. package/dist/org/tiqian/core/TextRangeError.js +2 -0
  71. package/dist/org/tiqian/core/TiqianIllegalArgumentException.d.ts +6 -0
  72. package/dist/org/tiqian/core/TiqianIllegalArgumentException.js +21 -0
  73. package/dist/org/tiqian/core/TiqianNoSuchElementException.d.ts +10 -0
  74. package/dist/org/tiqian/core/TiqianNoSuchElementException.js +16 -0
  75. package/dist/org/tiqian/core/UnicodeCombiningMarkData.d.ts +3 -0
  76. package/dist/org/tiqian/core/UnicodeCombiningMarkData.js +109 -0
  77. package/dist/org/tiqian/core/UnicodeEastAsianSpacing.d.ts +16 -0
  78. package/dist/org/tiqian/core/UnicodeEastAsianSpacing.js +88 -0
  79. package/dist/org/tiqian/core/UnicodeEmojiModifierBaseData.d.ts +3 -0
  80. package/dist/org/tiqian/core/UnicodeEmojiModifierBaseData.js +35 -0
  81. package/dist/org/tiqian/core/UnicodeExtendedPictographicData.d.ts +3 -0
  82. package/dist/org/tiqian/core/UnicodeExtendedPictographicData.js +64 -0
  83. package/dist/org/tiqian/core/UnicodeNumber.d.ts +3 -0
  84. package/dist/org/tiqian/core/UnicodeNumber.js +14 -0
  85. package/dist/org/tiqian/core/UnicodeNumberData.d.ts +3 -0
  86. package/dist/org/tiqian/core/UnicodeNumberData.js +64 -0
  87. package/dist/org/tiqian/core/UnicodeScriptEvidence.d.ts +16 -0
  88. package/dist/org/tiqian/core/UnicodeScriptEvidence.js +17 -0
  89. package/dist/org/tiqian/core/UnicodeScriptEvidenceClassifier.d.ts +7 -0
  90. package/dist/org/tiqian/core/UnicodeScriptEvidenceClassifier.js +17 -0
  91. package/dist/org/tiqian/core/UnicodeScriptEvidenceData.d.ts +4 -0
  92. package/dist/org/tiqian/core/UnicodeScriptEvidenceData.js +295 -0
  93. package/dist/org/tiqian/core/UnicodeWordCharacter.d.ts +6 -0
  94. package/dist/org/tiqian/core/UnicodeWordCharacter.js +17 -0
  95. package/dist/org/tiqian/core/UnicodeWordCharacterData.d.ts +3 -0
  96. package/dist/org/tiqian/core/UnicodeWordCharacterData.js +234 -0
  97. package/dist/org/tiqian/font/FontRole.d.ts +28 -0
  98. package/dist/org/tiqian/font/FontRole.js +26 -0
  99. package/dist/org/tiqian/font/FontRoleContext.d.ts +13 -0
  100. package/dist/org/tiqian/font/FontRoleContext.js +28 -0
  101. package/dist/org/tiqian/layout/ContextualQuoteRoleResolver.d.ts +51 -0
  102. package/dist/org/tiqian/layout/ContextualQuoteRoleResolver.js +305 -0
  103. package/dist/org/tiqian/layout/LineOptimization.d.ts +124 -0
  104. package/dist/org/tiqian/layout/LineOptimization.js +298 -0
  105. package/dist/org/tiqian/layout/ProgressiveBreakDecisions.d.ts +86 -0
  106. package/dist/org/tiqian/layout/ProgressiveBreakDecisions.js +415 -0
  107. package/dist/org/tiqian/layout/ProgressiveBreakTierPriority.d.ts +5 -0
  108. package/dist/org/tiqian/layout/ProgressiveBreakTierPriority.js +33 -0
  109. package/dist/org/tiqian/layout/QuotePairAnalyzer.d.ts +63 -0
  110. package/dist/org/tiqian/layout/QuotePairAnalyzer.js +251 -0
  111. package/dist/org/tiqian/linebreak/BreakKind.d.ts +20 -0
  112. package/dist/org/tiqian/linebreak/BreakKind.js +20 -0
  113. package/dist/org/tiqian/protocol/Canonical.d.ts +55 -0
  114. package/dist/org/tiqian/protocol/Canonical.js +471 -0
  115. package/dist/org/tiqian/protocol/DecorationInput.d.ts +6 -0
  116. package/dist/org/tiqian/protocol/DecorationInput.js +12 -0
  117. package/dist/org/tiqian/protocol/EncodeResult.d.ts +9 -0
  118. package/dist/org/tiqian/protocol/EncodeResult.js +2 -0
  119. package/dist/org/tiqian/protocol/FaceInfo.d.ts +13 -0
  120. package/dist/org/tiqian/protocol/FaceInfo.js +2 -0
  121. package/dist/org/tiqian/protocol/FontContract.d.ts +25 -0
  122. package/dist/org/tiqian/protocol/FontContract.js +317 -0
  123. package/dist/org/tiqian/protocol/FontFaceRecord.d.ts +6 -0
  124. package/dist/org/tiqian/protocol/FontFaceRecord.js +2 -0
  125. package/dist/org/tiqian/protocol/FontFaceSpec.d.ts +11 -0
  126. package/dist/org/tiqian/protocol/FontFaceSpec.js +2 -0
  127. package/dist/org/tiqian/protocol/FontWeightSpec.d.ts +10 -0
  128. package/dist/org/tiqian/protocol/FontWeightSpec.js +2 -0
  129. package/dist/org/tiqian/protocol/InlineBoxInput.d.ts +7 -0
  130. package/dist/org/tiqian/protocol/InlineBoxInput.js +2 -0
  131. package/dist/org/tiqian/protocol/InlineObjectInput.d.ts +7 -0
  132. package/dist/org/tiqian/protocol/InlineObjectInput.js +2 -0
  133. package/dist/org/tiqian/protocol/JsCoerce.d.ts +19 -0
  134. package/dist/org/tiqian/protocol/JsCoerce.js +394 -0
  135. package/dist/org/tiqian/protocol/LayoutAttribute.d.ts +5 -0
  136. package/dist/org/tiqian/protocol/LayoutAttribute.js +10 -0
  137. package/dist/org/tiqian/protocol/LayoutFloatShape.d.ts +14 -0
  138. package/dist/org/tiqian/protocol/LayoutFloatShape.js +2 -0
  139. package/dist/org/tiqian/protocol/LayoutTree.d.ts +23 -0
  140. package/dist/org/tiqian/protocol/LayoutTree.js +2 -0
  141. package/dist/org/tiqian/protocol/LayoutVertex.d.ts +4 -0
  142. package/dist/org/tiqian/protocol/LayoutVertex.js +2 -0
  143. package/dist/org/tiqian/protocol/LineBreakSpanInput.d.ts +6 -0
  144. package/dist/org/tiqian/protocol/LineBreakSpanInput.js +12 -0
  145. package/dist/org/tiqian/protocol/MetricEntry.d.ts +11 -0
  146. package/dist/org/tiqian/protocol/MetricEntry.js +21 -0
  147. package/dist/org/tiqian/protocol/NamedError.d.ts +88 -0
  148. package/dist/org/tiqian/protocol/NamedError.js +71 -0
  149. package/dist/org/tiqian/protocol/NamedErrorNames.d.ts +5 -0
  150. package/dist/org/tiqian/protocol/NamedErrorNames.js +53 -0
  151. package/dist/org/tiqian/protocol/ParagraphRequest.d.ts +25 -0
  152. package/dist/org/tiqian/protocol/ParagraphRequest.js +2 -0
  153. package/dist/org/tiqian/protocol/ParagraphRequestChecks.d.ts +8 -0
  154. package/dist/org/tiqian/protocol/ParagraphRequestChecks.js +145 -0
  155. package/dist/org/tiqian/protocol/ParagraphRequestException.d.ts +6 -0
  156. package/dist/org/tiqian/protocol/ParagraphRequestException.js +55 -0
  157. package/dist/org/tiqian/protocol/ParagraphRequestFields.d.ts +3 -0
  158. package/dist/org/tiqian/protocol/ParagraphRequestFields.js +4 -0
  159. package/dist/org/tiqian/protocol/Plan.d.ts +101 -0
  160. package/dist/org/tiqian/protocol/Plan.js +10 -0
  161. package/dist/org/tiqian/protocol/PlanEndReason.d.ts +16 -0
  162. package/dist/org/tiqian/protocol/PlanEndReason.js +17 -0
  163. package/dist/org/tiqian/protocol/PlanJsonNumber.d.ts +43 -0
  164. package/dist/org/tiqian/protocol/PlanJsonNumber.js +362 -0
  165. package/dist/org/tiqian/protocol/PlanSchema.d.ts +4 -0
  166. package/dist/org/tiqian/protocol/PlanSchema.js +5 -0
  167. package/dist/org/tiqian/protocol/PlanStyleDelta.d.ts +5 -0
  168. package/dist/org/tiqian/protocol/PlanStyleDelta.js +2 -0
  169. package/dist/org/tiqian/protocol/Revision.d.ts +11 -0
  170. package/dist/org/tiqian/protocol/Revision.js +12 -0
  171. package/dist/org/tiqian/protocol/SessionFaceSpec.d.ts +5 -0
  172. package/dist/org/tiqian/protocol/SessionFaceSpec.js +2 -0
  173. package/dist/org/tiqian/protocol/SnapshotTableBinary.d.ts +55 -0
  174. package/dist/org/tiqian/protocol/SnapshotTableBinary.js +657 -0
  175. package/dist/org/tiqian/protocol/SnapshotTypography.d.ts +14 -0
  176. package/dist/org/tiqian/protocol/SnapshotTypography.js +2 -0
  177. package/dist/org/tiqian/protocol/StyleRow.d.ts +8 -0
  178. package/dist/org/tiqian/protocol/StyleRow.js +15 -0
  179. package/dist/org/tiqian/protocol/TableData.d.ts +25 -0
  180. package/dist/org/tiqian/protocol/TableData.js +45 -0
  181. package/dist/org/tiqian/protocol/TableInput.d.ts +13 -0
  182. package/dist/org/tiqian/protocol/TableInput.js +21 -0
  183. package/dist/org/tiqian/protocol/TableMetricRow.d.ts +9 -0
  184. package/dist/org/tiqian/protocol/TableMetricRow.js +17 -0
  185. package/dist/org/tiqian/protocol/TableProbe.d.ts +11 -0
  186. package/dist/org/tiqian/protocol/TableProbe.js +21 -0
  187. package/dist/org/tiqian/protocol/TextSpanInput.d.ts +9 -0
  188. package/dist/org/tiqian/protocol/TextSpanInput.js +2 -0
  189. package/dist/org/tiqian/protocol/ValueRow.d.ts +4 -0
  190. package/dist/org/tiqian/protocol/ValueRow.js +7 -0
  191. package/dist/org/tiqian/protocol/WireField.d.ts +5 -0
  192. package/dist/org/tiqian/protocol/WireField.js +2 -0
  193. package/dist/org/tiqian/protocol/WireValue.d.ts +25 -0
  194. package/dist/org/tiqian/protocol/WireValue.js +2 -0
  195. package/dist/org/tiqian/test/TestHelpers.d.ts +5 -0
  196. package/dist/org/tiqian/test/TestHelpers.js +27 -0
  197. package/dist/org/tiqian/test/trace/TestTrace.d.ts +6 -0
  198. package/dist/org/tiqian/test/trace/TestTrace.js +8 -0
  199. package/dist/org/tiqian/test/trace/TestTracePlatform.d.ts +6 -0
  200. package/dist/org/tiqian/test/trace/TestTracePlatform.js +78 -0
  201. package/dist/org/tiqian/test/trace/TestTraceRecorder.d.ts +9 -0
  202. package/dist/org/tiqian/test/trace/TestTraceRecorder.js +36 -0
  203. package/dist/org/tiqian/test/trace/TestTraceRender.d.ts +47 -0
  204. package/dist/org/tiqian/test/trace/TestTraceRender.js +690 -0
  205. package/dist/org/tiqian/test/trace/TestTraceStore.d.ts +18 -0
  206. package/dist/org/tiqian/test/trace/TestTraceStore.js +149 -0
  207. package/dist/org/tiqian/test/trace/TraceAssertionError.d.ts +5 -0
  208. package/dist/org/tiqian/test/trace/TraceAssertionError.js +2 -0
  209. package/dist/org/tiqian/test/trace/TraceAssertionException.d.ts +6 -0
  210. package/dist/org/tiqian/test/trace/TraceAssertionException.js +16 -0
  211. package/dist/org/tiqian/test/trace/TraceField.d.ts +5 -0
  212. package/dist/org/tiqian/test/trace/TraceField.js +10 -0
  213. package/dist/org/tiqian/test/trace/TraceFormat.d.ts +21 -0
  214. package/dist/org/tiqian/test/trace/TraceFormat.js +184 -0
  215. package/dist/org/tiqian/test/trace/TracedAssertions.d.ts +78 -0
  216. package/dist/org/tiqian/test/trace/TracedAssertions.js +749 -0
  217. package/dist/runtime.d.ts +96 -0
  218. package/dist/runtime.js +1612 -0
  219. package/dist/std/FsError.d.ts +48 -0
  220. package/dist/std/FsError.js +2 -0
  221. package/dist/std/FsException.d.ts +6 -0
  222. package/dist/std/FsException.js +45 -0
  223. package/dist/std/UStringException.d.ts +6 -0
  224. package/dist/std/UStringException.js +21 -0
  225. package/dist/std/UStringFault.d.ts +9 -0
  226. package/dist/std/UStringFault.js +2 -0
  227. package/package.json +26 -4
  228. package/README.md +0 -3
@@ -0,0 +1,25 @@
1
+ import { type MetricEntry } from "./MetricEntry.js";
2
+ import { type ValueRow } from "./ValueRow.js";
3
+ export declare class TableData {
4
+ replayStringCount: number;
5
+ strings: string[];
6
+ metricRows: MetricEntry[];
7
+ valuePool: ValueRow[];
8
+ probeTextRefs: number[];
9
+ probeAdvanceRefs: number[];
10
+ probeStyleRefs: number[];
11
+ probeFeatureRefs: number[];
12
+ advancePool: number[];
13
+ styleFontSize: number[];
14
+ styleFontWeight: number[];
15
+ styleItalic: number[];
16
+ styleScriptRefs: number[];
17
+ styleLanguageRefs: number[];
18
+ featuresPool: number[][];
19
+ faceTexts: string[];
20
+ typographyTexts: string[];
21
+ valueStyleTexts: string[];
22
+ fontPreloadTexts: string[];
23
+ revisionText: string;
24
+ constructor();
25
+ }
@@ -0,0 +1,45 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export class TableData {
3
+ replayStringCount;
4
+ strings;
5
+ metricRows;
6
+ valuePool;
7
+ probeTextRefs;
8
+ probeAdvanceRefs;
9
+ probeStyleRefs;
10
+ probeFeatureRefs;
11
+ advancePool;
12
+ styleFontSize;
13
+ styleFontWeight;
14
+ styleItalic;
15
+ styleScriptRefs;
16
+ styleLanguageRefs;
17
+ featuresPool;
18
+ faceTexts;
19
+ typographyTexts;
20
+ valueStyleTexts;
21
+ fontPreloadTexts;
22
+ revisionText;
23
+ constructor() {
24
+ this.replayStringCount = 0;
25
+ this.strings = new Array();
26
+ this.metricRows = new Array();
27
+ this.valuePool = new Array();
28
+ this.probeTextRefs = new Array();
29
+ this.probeAdvanceRefs = new Array();
30
+ this.probeStyleRefs = new Array();
31
+ this.probeFeatureRefs = new Array();
32
+ this.advancePool = new Array();
33
+ this.styleFontSize = new Array();
34
+ this.styleFontWeight = new Array();
35
+ this.styleItalic = new Array();
36
+ this.styleScriptRefs = new Array();
37
+ this.styleLanguageRefs = new Array();
38
+ this.featuresPool = new Array();
39
+ this.faceTexts = new Array();
40
+ this.typographyTexts = new Array();
41
+ this.valueStyleTexts = new Array();
42
+ this.fontPreloadTexts = new Array();
43
+ this.revisionText = "";
44
+ }
45
+ }
@@ -0,0 +1,13 @@
1
+ import { type TableMetricRow } from "./TableMetricRow.js";
2
+ import { type TableProbe } from "./TableProbe.js";
3
+ export declare class TableInput {
4
+ replayStrings: string[];
5
+ metrics: TableMetricRow[];
6
+ probes: TableProbe[];
7
+ faces: string[];
8
+ typographies: string[];
9
+ valueStyles: string[];
10
+ fontPreloads: string[];
11
+ revisionsText: string;
12
+ constructor(replayStrings: string[], metrics: TableMetricRow[], probes: TableProbe[], faces: string[], typographies: string[], valueStyles: string[], fontPreloads: string[], revisionsText: string);
13
+ }
@@ -0,0 +1,21 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export class TableInput {
3
+ replayStrings;
4
+ metrics;
5
+ probes;
6
+ faces;
7
+ typographies;
8
+ valueStyles;
9
+ fontPreloads;
10
+ revisionsText;
11
+ constructor(replayStrings, metrics, probes, faces, typographies, valueStyles, fontPreloads, revisionsText) {
12
+ this.replayStrings = replayStrings;
13
+ this.metrics = metrics;
14
+ this.probes = probes;
15
+ this.faces = faces;
16
+ this.typographies = typographies;
17
+ this.valueStyles = valueStyles;
18
+ this.fontPreloads = fontPreloads;
19
+ this.revisionsText = revisionsText;
20
+ }
21
+ }
@@ -0,0 +1,9 @@
1
+ export declare class TableMetricRow {
2
+ serializedFamilies: string;
3
+ fontWeight: number;
4
+ italic: boolean;
5
+ role: string;
6
+ faceSelectionText: string;
7
+ valuesEm: (number | null)[];
8
+ constructor(serializedFamilies: string, fontWeight: number, italic: boolean, role: string, faceSelectionText: string, valuesEm: (number | null)[]);
9
+ }
@@ -0,0 +1,17 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export class TableMetricRow {
3
+ serializedFamilies;
4
+ fontWeight;
5
+ italic;
6
+ role;
7
+ faceSelectionText;
8
+ valuesEm;
9
+ constructor(serializedFamilies, fontWeight, italic, role, faceSelectionText, valuesEm) {
10
+ this.serializedFamilies = serializedFamilies;
11
+ this.fontWeight = fontWeight;
12
+ this.italic = italic;
13
+ this.role = role;
14
+ this.faceSelectionText = faceSelectionText;
15
+ this.valuesEm = valuesEm;
16
+ }
17
+ }
@@ -0,0 +1,11 @@
1
+ export declare class TableProbe {
2
+ text: string;
3
+ advancePx: number;
4
+ fontSizePx: number;
5
+ fontWeight: number;
6
+ italic: boolean;
7
+ script: string;
8
+ language: string;
9
+ features: string[];
10
+ constructor(text: string, advancePx: number, fontSizePx: number, fontWeight: number, italic: boolean, script: string, language: string, features: string[]);
11
+ }
@@ -0,0 +1,21 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export class TableProbe {
3
+ text;
4
+ advancePx;
5
+ fontSizePx;
6
+ fontWeight;
7
+ italic;
8
+ script;
9
+ language;
10
+ features;
11
+ constructor(text, advancePx, fontSizePx, fontWeight, italic, script, language, features) {
12
+ this.text = text;
13
+ this.advancePx = advancePx;
14
+ this.fontSizePx = fontSizePx;
15
+ this.fontWeight = fontWeight;
16
+ this.italic = italic;
17
+ this.script = script;
18
+ this.language = language;
19
+ this.features = features;
20
+ }
21
+ }
@@ -0,0 +1,9 @@
1
+ export interface TextSpanInput {
2
+ start: number;
3
+ end: number;
4
+ families: string[];
5
+ fontSizePx: number;
6
+ fontWeight: number;
7
+ italic: boolean;
8
+ baselineShift: number;
9
+ }
@@ -0,0 +1,2 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export {};
@@ -0,0 +1,4 @@
1
+ export declare class ValueRow {
2
+ values: (number | null)[];
3
+ constructor(values: (number | null)[]);
4
+ }
@@ -0,0 +1,7 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export class ValueRow {
3
+ values;
4
+ constructor(values) {
5
+ this.values = values;
6
+ }
7
+ }
@@ -0,0 +1,5 @@
1
+ import { type WireValue } from "./WireValue.js";
2
+ export interface WireField {
3
+ name: string;
4
+ value: WireValue;
5
+ }
@@ -0,0 +1,2 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export {};
@@ -0,0 +1,25 @@
1
+ import { type WireField } from "./WireField.js";
2
+ export interface WNull {
3
+ readonly kind: "WNull";
4
+ }
5
+ export interface WBool {
6
+ readonly kind: "WBool";
7
+ readonly value: boolean;
8
+ }
9
+ export interface WNum {
10
+ readonly kind: "WNum";
11
+ readonly value: number;
12
+ }
13
+ export interface WStr {
14
+ readonly kind: "WStr";
15
+ readonly value: string;
16
+ }
17
+ export interface WArr {
18
+ readonly kind: "WArr";
19
+ readonly items: WireValue[];
20
+ }
21
+ export interface WObj {
22
+ readonly kind: "WObj";
23
+ readonly fields: WireField[];
24
+ }
25
+ export type WireValue = WNull | WBool | WNum | WStr | WArr | WObj;
@@ -0,0 +1,2 @@
1
+ // Generated by the reflaxe TypeScript target. Do not edit.
2
+ export {};
@@ -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
+ }