blocksuite
blocksuite copied to clipboard
feat: add pdf annotation support
There are two types of annotation, one is TextAnnotation which allows you to select text in PDF and add comments on it; the other is ClipAnnotation which is basically an image.
export type ClipAnnotation = {
type: AnnotationType.Clip;
comment: Y.Text;
highlightRects: Record<number, [number, number, number, number][]>;
};
export type TextAnnotation = {
type: AnnotationType.Text;
comment: Y.Text;
/**
* hightlighted rects in each page
*
* Rect<page, [x, y, w, h]>
*/
highlightRects: Record<number, [number, number, number, number][]>;
/**
* The highlight text
*/
text: string;
};
type ClipAnnotation = {
type: AnnotationType.Clip;
highlightRect: [number, number, number, number];
};
The latest updates on your projects. Learn more about Vercel for Git ↗︎
| Name | Status | Preview | Comments | Updated (UTC) |
|---|---|---|---|---|
| blocksuite | ❌ Failed (Inspect) | Feb 28, 2024 3:18am | ||
| blocksuite-docs | ❌ Failed (Inspect) | Feb 28, 2024 3:18am |
很期待的功能,请问为啥这个PR关闭了? 😩