feat: decode OneNote ink strokes
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user