diff --git a/apps/backoffice/src/app/features/certificate-designer/config/stcw-canvas-conversion.ts b/apps/backoffice/src/app/features/certificate-designer/config/stcw-canvas-conversion.ts new file mode 100644 index 000000000..ddca58e20 --- /dev/null +++ b/apps/backoffice/src/app/features/certificate-designer/config/stcw-canvas-conversion.ts @@ -0,0 +1,222 @@ +import type { TemplateFieldPlacement } from '@ema-platform/api'; + +/** + * One-time, one-way conversion of the hand-written STCW certificate template + * (`SEAFARER_CERTIFICATE_TEMPLATE` on the server) into an equivalent canvas + * layout. + * + * This is not a general HTML-to-blocks parser — none exists, and none is + * feasible: the canvas only ever emits absolute-positioned text/image blocks + * (see `layout-compiler.ts`), so a `