@univerjs/engine-render 0.6.5 → 0.6.6-experimental.20250317-28d180b
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/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1085 -1063
- package/lib/types/basics/i-document-skeleton-cached.d.ts +4 -3
- package/lib/types/components/docs/document.d.ts +1 -0
- package/lib/types/components/docs/layout/tools.d.ts +1 -1
- package/lib/types/shape/rect.d.ts +3 -0
- package/lib/umd/index.js +1 -1
- package/package.json +3 -3
- package/LICENSE +0 -176
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BulletAlignment, ColumnSeparatorType, DataStreamTreeTokenType, IDocDrawingBase, IDocumentRenderConfig, INestingLevel, IParagraph, IParagraphProperties, ITable, ITableRow, ITextStyle, PageOrientType } from '@univerjs/core';
|
|
1
|
+
import { BulletAlignment, ColumnSeparatorType, DataStreamTreeTokenType, IDocDrawingBase, IDocumentRenderConfig, INestingLevel, IParagraph, IParagraphBorder, IParagraphProperties, ITable, ITableRow, ITextStyle, PageOrientType } from '@univerjs/core';
|
|
2
2
|
import { BreakPointType } from '../components/docs/layout/line-breaker/break';
|
|
3
3
|
export interface IDocumentSkeletonCached extends ISkeletonResourceReference {
|
|
4
4
|
pages: IDocumentSkeletonPage[];
|
|
@@ -121,14 +121,15 @@ export interface IDocumentSkeletonLine {
|
|
|
121
121
|
marginTop: number;
|
|
122
122
|
marginBottom: number;
|
|
123
123
|
spaceBelowApply: number;
|
|
124
|
-
width?: number;
|
|
125
124
|
st: number;
|
|
126
125
|
ed: number;
|
|
127
126
|
lineIndex: number;
|
|
128
|
-
bullet?: IDocumentSkeletonBullet;
|
|
129
127
|
paragraphStart: boolean;
|
|
130
128
|
isBehindTable: boolean;
|
|
131
129
|
tableId: string;
|
|
130
|
+
borderBottom?: IParagraphBorder;
|
|
131
|
+
bullet?: IDocumentSkeletonBullet;
|
|
132
|
+
width?: number;
|
|
132
133
|
parent?: IDocumentSkeletonColumn;
|
|
133
134
|
}
|
|
134
135
|
export interface IDocumentSkeletonDivide {
|
|
@@ -30,6 +30,7 @@ export declare class Documents extends DocComponent {
|
|
|
30
30
|
protected _draw(ctx: UniverRenderingContext, bounds?: IViewportInfo): void;
|
|
31
31
|
draw(ctx: UniverRenderingContext, bounds?: IViewportInfo): void;
|
|
32
32
|
private _drawTable;
|
|
33
|
+
private _drawBorderBottom;
|
|
33
34
|
private _drawTableCell;
|
|
34
35
|
private _drawTableCellBorders;
|
|
35
36
|
private _drawHeaderFooter;
|
|
@@ -48,7 +48,7 @@ export declare function getCharSpaceConfig(sectionBreakConfig: ISectionBreakConf
|
|
|
48
48
|
snapToGrid: BooleanNumber;
|
|
49
49
|
};
|
|
50
50
|
export declare function updateBlockIndex(pages: IDocumentSkeletonPage[], start?: number): void;
|
|
51
|
-
export declare function
|
|
51
|
+
export declare function updateInlineDrawingCoordsAndBorder(ctx: ILayoutContext, pages: IDocumentSkeletonPage[]): void;
|
|
52
52
|
export declare function glyphIterator(pages: IDocumentSkeletonPage[], cb: (glyph: IDocumentSkeletonGlyph, divide: IDocumentSkeletonDivide, line: IDocumentSkeletonLine, column: IDocumentSkeletonColumn, section: IDocumentSkeletonSection, page: IDocumentSkeletonPage) => void): void;
|
|
53
53
|
export declare function lineIterator(pagesOrCells: (IDocumentSkeletonPage)[], cb: (line: IDocumentSkeletonLine, column: IDocumentSkeletonColumn, section: IDocumentSkeletonSection, page: IDocumentSkeletonPage) => void): void;
|
|
54
54
|
export declare function columnIterator(pages: IDocumentSkeletonPage[], iteratorFunction: (column: IDocumentSkeletonColumn) => void): void;
|
|
@@ -11,6 +11,7 @@ export declare const RECT_OBJECT_ARRAY: string[];
|
|
|
11
11
|
export declare class Rect<T extends IRectProps = IRectProps> extends Shape<T> {
|
|
12
12
|
objectType: ObjectType;
|
|
13
13
|
private _radius;
|
|
14
|
+
private _opacity;
|
|
14
15
|
/**
|
|
15
16
|
* For rendering, in many case object size is bigger than visual size for better user interaction.
|
|
16
17
|
*/
|
|
@@ -20,7 +21,9 @@ export declare class Rect<T extends IRectProps = IRectProps> extends Shape<T> {
|
|
|
20
21
|
get visualHeight(): Nullable<number>;
|
|
21
22
|
get visualWidth(): Nullable<number>;
|
|
22
23
|
get radius(): number;
|
|
24
|
+
get opacity(): number;
|
|
23
25
|
setObjectType(type: ObjectType): void;
|
|
26
|
+
setOpacity(opacity: number): void;
|
|
24
27
|
static drawWith(ctx: UniverRenderingContext, props: IRectProps): void;
|
|
25
28
|
toJson(): {
|
|
26
29
|
[x: string]: any;
|