feat: decode OneNote ink strokes

This commit is contained in:
2026-07-22 19:16:08 +02:00
parent 30b0357530
commit 141be03f5e
5 changed files with 424 additions and 15 deletions

View File

@@ -145,11 +145,37 @@ export interface OneNoteOutlineGroupBlock {
children: OneNoteContentBlock[];
}
export interface OneNoteInkPoint {
x: number;
y: number;
}
export interface OneNoteInkBoundingBox {
x: number;
y: number;
width: number;
height: number;
}
export interface OneNoteInkStroke {
points: OneNoteInkPoint[];
penTip?: number;
transparency?: number;
width?: number;
height?: number;
color?: number;
bias?: 'handwriting' | 'drawing' | 'both';
languageCode?: number;
}
/** A leaf has strokes; an intermediate grouping container has children. */
export interface OneNoteInkBlock {
kind: 'ink';
id: string;
supported: false;
description: string;
strokes: OneNoteInkStroke[];
children: OneNoteInkBlock[];
boundingBox?: OneNoteInkBoundingBox;
layout: OneNoteLayout;
}
export interface OneNoteUnsupportedBlock {