feat(domain): R4.4 layout to a draw log: text rules, AFM metrics, dates (O4, O5, O6) and the page layouts (O1)
pdf::write: text (safe_text with the frozen V8 classes, js_upper from the O4 tables, js_trim, measure = Σ(WX || 250 + KPX) × size / 1000 over WinAnsi bytes, wrap_lines on JS \s), afm_data generated by scripts/r4-afm-data.mjs from O5 and O4, dates (Date.UTC years 0-99 → 19xx, fr-FR / en-US long dates), input checks (branding and labels schemas, snapshot gate with the R3 SVG reader, sheet mismatch, page caps), the header, footer, observation and conclusion layouts into a DrawLog (per page, footers last, links by page). cargo: O4 55,992 widths bit-exact, 1,168 wraps, safeText over every code point, upper 1,580, O6 6,468 cells + 22; O1 12 runs 2,124 ops equal at full precision; the Step 6 text and image goldens (24) derive from the log. ts-rs: ExportInput, ExportErrorKind, ExportWarning, LogoSlot.
This commit is contained in:
1 parent
71bcb742c9
commit
70007e0c93
19 files changed
+4094
-29
No files matched your search
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type ExportErrorKind = "snapshot_invalid" | "snapshot_too_large" | "sheet_mismatch" | "too_many_pages" | "branding_invalid";
|
||||
@@ -0,0 +1,10 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { Locale } from "./Locale";
|
||||
import type { Report } from "./Report";
|
||||
|
||||
/**
|
||||
* What the application hands the export (plan §B.1.3), as JSON: the report, the snapshot
|
||||
* of the sheet it was written on, the branding, the labels, the locale and the export time
|
||||
* (an ISO string the caller took from its clock; the core reads no clock).
|
||||
*/
|
||||
export type ExportInput = { report: Report, sheetSnapshot: unknown, branding: unknown, labels: unknown, locale: Locale, exportedAt: string, };
|
||||
@@ -0,0 +1,7 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
import type { LogoSlot } from "./LogoSlot";
|
||||
|
||||
/**
|
||||
* The export's warnings, as today (`ExportWarning`).
|
||||
*/
|
||||
export type ExportWarning = { "kind": "view_raster_failed", observationId: string, viewId: string, } | { "kind": "logo_failed", slot: LogoSlot, };
|
||||
@@ -0,0 +1,3 @@
|
||||
// This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
|
||||
|
||||
export type LogoSlot = "headerLogo" | "footerLogo" | "poweredBy" | "partner";
|
||||
@@ -20,6 +20,9 @@ export type { DetailTriggerAnnotation } from './DetailTriggerAnnotation'
|
||||
export type { DetailView } from './DetailView'
|
||||
export type { DraftRestore } from './DraftRestore'
|
||||
export type { DraftRestoreInput } from './DraftRestoreInput'
|
||||
export type { ExportErrorKind } from './ExportErrorKind'
|
||||
export type { ExportInput } from './ExportInput'
|
||||
export type { ExportWarning } from './ExportWarning'
|
||||
export type { Finding } from './Finding'
|
||||
export type { FindingCategory } from './FindingCategory'
|
||||
export type { FindingCategoryKind } from './FindingCategoryKind'
|
||||
@@ -34,6 +37,7 @@ export type { Laterality } from './Laterality'
|
||||
export type { Locale } from './Locale'
|
||||
export type { LocalizedOptionalText } from './LocalizedOptionalText'
|
||||
export type { LocalizedText } from './LocalizedText'
|
||||
export type { LogoSlot } from './LogoSlot'
|
||||
export type { MainView } from './MainView'
|
||||
export type { MigrationOutcome } from './MigrationOutcome'
|
||||
export type { MoveDirection } from './MoveDirection'
|
||||
|
||||
Reference in new issue
Block a user