uni-answer-sheet 2.2.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/CHANGELOG.md +8 -0
- package/README.md +9 -7
- package/dist/browser.js +43 -43
- package/dist/chunks/{index-ChLOq9ID.js → index-kGCb-s_b.js} +824 -824
- package/dist/chunks/{runtime-QFMZtUfH.js → runtime-C9TDF-ed.js} +4453 -4443
- package/dist/index.d.ts +4 -1
- package/dist/index.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
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