uni-answer-sheet 2.1.0 → 2.3.0

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/index.d.ts CHANGED
@@ -343,6 +343,8 @@ interface CardDocument {
343
343
  version: 1;
344
344
  usage?: 'exam' | 'homework';
345
345
  questionCard?: boolean;
346
+ /** Allow the reverse side of the same sheet; omitted/false uses the front only. */
347
+ duplex?: boolean;
346
348
  title: string;
347
349
  preset: CardPreset;
348
350
  margin: number;
@@ -496,6 +498,7 @@ interface RecognitionRegion {
496
498
  columnNumber?: number;
497
499
  }
498
500
  interface RecognitionPage {
501
+ /** Side of the single sheet: 1 = front, 2 = back (only when duplex is enabled). */
499
502
  pageNumber: number;
500
503
  pageSize: {
501
504
  width: number;
@@ -539,7 +542,7 @@ type SaveResult = {
539
542
  ok: false;
540
543
  issues: ValidationIssue[];
541
544
  };
542
- type AnswerSheetLayout = Partial<Pick<CardDocument, 'usage' | 'preset' | 'margin' | 'gap' | 'questionCard' | 'scanMarking' | 'halfPoint' | 'choiceDirection' | 'mergeObjective'>> & {
545
+ type AnswerSheetLayout = Partial<Pick<CardDocument, 'usage' | 'preset' | 'margin' | 'gap' | 'questionCard' | 'duplex' | 'scanMarking' | 'halfPoint' | 'choiceDirection' | 'mergeObjective'>> & {
543
546
  /** Reference field aliases; conflicting aliases are rejected. */
544
547
  pageNum?: 1 | 2 | 3;
545
548
  quesCard?: boolean;
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { aC as a, aE as t } from "./chunks/index-CDvIw14k.js";
1
+ import { aD as a, aF as t } from "./chunks/index-kGCb-s_b.js";
2
2
  export {
3
3
  a as AnswerSheetDataError,
4
4
  t as createAnswerSheet