@univerjs/engine-render 0.25.0-insiders.20260623-012b5a8 → 0.25.1
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/LICENSE +176 -0
- package/lib/cjs/index.js +262 -1192
- package/lib/es/index.js +263 -1193
- package/lib/types/basics/document-node-tools.d.ts +0 -1
- package/lib/types/basics/i-document-skeleton-cached.d.ts +1 -2
- package/lib/types/basics/interfaces.d.ts +0 -6
- package/lib/types/basics/transformer-config.d.ts +0 -17
- package/lib/types/components/docs/doc-background.d.ts +0 -4
- package/lib/types/components/docs/document.d.ts +0 -4
- package/lib/types/components/docs/extensions/font-and-base-line.d.ts +0 -10
- package/lib/types/components/docs/layout/block/paragraph/layout-ruler.d.ts +3 -17
- package/lib/types/components/docs/layout/model/line.d.ts +1 -1
- package/lib/types/components/docs/layout/tools.d.ts +1 -4
- package/lib/types/components/docs/table-render-viewport.d.ts +0 -4
- package/lib/types/components/sheets/extensions/border.d.ts +2 -2
- package/lib/types/components/sheets/interfaces.d.ts +6 -6
- package/lib/types/index.d.ts +5 -6
- package/lib/types/render-manager/render-manager.service.d.ts +0 -1
- package/lib/types/scene.transformer.d.ts +0 -20
- package/lib/types/services/canvas-color.service.d.ts +0 -1
- package/lib/types/shape/image.d.ts +0 -3
- package/lib/umd/index.js +2 -2
- package/package.json +8 -8
- package/lib/types/components/docs/document-compatibility.d.ts +0 -43
- package/lib/types/components/docs/extensions/background-runs.d.ts +0 -22
|
@@ -23,7 +23,6 @@ export declare function getParagraphByGlyph(glyph: Nullable<IDocumentSkeletonGly
|
|
|
23
23
|
paragraphStart: number;
|
|
24
24
|
paragraphEnd: number;
|
|
25
25
|
startIndex: number;
|
|
26
|
-
paragraphId: string;
|
|
27
26
|
paragraphStyle?: import("@univerjs/core").IParagraphStyle;
|
|
28
27
|
bullet?: import("@univerjs/core").IBullet;
|
|
29
28
|
} | undefined;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { BulletAlignment, ColumnSeparatorType, DataStreamTreeTokenType,
|
|
16
|
+
import type { BulletAlignment, ColumnSeparatorType, DataStreamTreeTokenType, IDocDrawingBase, IDocumentRenderConfig, INestingLevel, IParagraph, IParagraphBorder, IParagraphProperties, ITable, ITableRow, ITextStyle, PageOrientType } from '@univerjs/core';
|
|
17
17
|
import type { BreakPointType } from '../components/docs/layout/line-breaker/break';
|
|
18
18
|
export interface IDocumentSkeletonCached extends ISkeletonResourceReference {
|
|
19
19
|
pages: IDocumentSkeletonPage[];
|
|
@@ -143,7 +143,6 @@ export interface IDocumentSkeletonLine {
|
|
|
143
143
|
isBehindTable: boolean;
|
|
144
144
|
tableId: string;
|
|
145
145
|
borderBottom?: IParagraphBorder;
|
|
146
|
-
backgroundColor?: IColorStyle;
|
|
147
146
|
bullet?: IDocumentSkeletonBullet;
|
|
148
147
|
width?: number;
|
|
149
148
|
parent?: IDocumentSkeletonColumn;
|
|
@@ -15,7 +15,6 @@
|
|
|
15
15
|
*/
|
|
16
16
|
import type { BooleanNumber, GridType, IDocStyleBase, IDocumentLayout, IOffset, IParagraphStyle, IReferenceSource, IScale, ISectionBreakBase, ISize, ITextStyle, ITransformState, LocaleService } from '@univerjs/core';
|
|
17
17
|
import type { DataStreamTreeNode } from '../components/docs/view-model/data-stream-tree-node';
|
|
18
|
-
import type { IDocumentCompatibilityPolicy } from '../components/docs/document-compatibility';
|
|
19
18
|
import type { DocumentViewModel } from '../components/docs/view-model/document-view-model';
|
|
20
19
|
import type { DocumentSkeletonPageType, IDocumentSkeletonBullet, IDocumentSkeletonDrawing, IDocumentSkeletonDrawingAnchor, IDocumentSkeletonFontStyle, IDocumentSkeletonGlyph, IDocumentSkeletonHeaderFooter, IDocumentSkeletonTable } from './i-document-skeleton-cached';
|
|
21
20
|
import type { ITransformerConfig } from './transformer-config';
|
|
@@ -62,7 +61,6 @@ export interface IFontLocale {
|
|
|
62
61
|
export interface IDocsConfig extends IReferenceSource, IDocumentLayout {
|
|
63
62
|
localeService: LocaleService;
|
|
64
63
|
documentTextStyle?: ITextStyle;
|
|
65
|
-
documentCompatibilityPolicy?: IDocumentCompatibilityPolicy;
|
|
66
64
|
headerTreeMap: Map<string, DocumentViewModel>;
|
|
67
65
|
footerTreeMap: Map<string, DocumentViewModel>;
|
|
68
66
|
}
|
|
@@ -91,9 +89,6 @@ export interface IParagraphTableCache {
|
|
|
91
89
|
}
|
|
92
90
|
export interface IParagraphConfig {
|
|
93
91
|
paragraphIndex: number;
|
|
94
|
-
documentCompatibilityPolicy?: IDocumentCompatibilityPolicy;
|
|
95
|
-
useWordStyleLineHeight?: boolean;
|
|
96
|
-
docxFallbackAnchorLeft?: IParagraphStyle['indentStart'];
|
|
97
92
|
paragraphNonInlineSkeDrawings?: Map<string, IDocumentSkeletonDrawing>;
|
|
98
93
|
paragraphInlineSkeDrawings?: Map<string, IDocumentSkeletonDrawing>;
|
|
99
94
|
skeTablesInParagraph?: IParagraphTableCache[];
|
|
@@ -108,7 +103,6 @@ export interface IFontCreateConfig {
|
|
|
108
103
|
textStyle: ITextStyle;
|
|
109
104
|
charSpace: number;
|
|
110
105
|
snapToGrid: BooleanNumber;
|
|
111
|
-
documentCompatibilityPolicy?: IDocumentCompatibilityPolicy;
|
|
112
106
|
gridType?: GridType;
|
|
113
107
|
pageWidth?: number;
|
|
114
108
|
}
|
|
@@ -25,16 +25,8 @@ export interface ITransformerConfig {
|
|
|
25
25
|
rotationSnaps?: number[];
|
|
26
26
|
rotationSnapTolerance?: number;
|
|
27
27
|
rotateAnchorOffset?: number;
|
|
28
|
-
rotateAnchorPosition?: 'top' | 'bottom';
|
|
29
|
-
rotateLineEnabled?: boolean;
|
|
30
28
|
rotateSize?: number;
|
|
31
29
|
rotateCornerRadius?: number;
|
|
32
|
-
rotateFill?: string;
|
|
33
|
-
rotateStroke?: string;
|
|
34
|
-
rotateStrokeWidth?: number;
|
|
35
|
-
rotateIconEnabled?: boolean;
|
|
36
|
-
rotateIconStroke?: string;
|
|
37
|
-
rotateIconStrokeWidth?: number;
|
|
38
30
|
borderEnabled?: boolean;
|
|
39
31
|
borderStroke?: string;
|
|
40
32
|
borderStrokeWidth?: number;
|
|
@@ -47,14 +39,6 @@ export interface ITransformerConfig {
|
|
|
47
39
|
anchorStrokeWidth?: number;
|
|
48
40
|
anchorSize?: number;
|
|
49
41
|
anchorCornerRadius?: number;
|
|
50
|
-
anchorStyle?: 'default' | 'canva';
|
|
51
|
-
anchorSideLongSize?: number;
|
|
52
|
-
anchorSideShortSize?: number;
|
|
53
|
-
anchorSideCornerRadius?: number;
|
|
54
|
-
anchorShadowColor?: string;
|
|
55
|
-
anchorShadowBlur?: number;
|
|
56
|
-
anchorShadowOffsetX?: number;
|
|
57
|
-
anchorShadowOffsetY?: number;
|
|
58
42
|
keepRatio?: boolean;
|
|
59
43
|
centeredScaling?: boolean;
|
|
60
44
|
flipEnabled?: boolean;
|
|
@@ -64,5 +48,4 @@ export interface ITransformerConfig {
|
|
|
64
48
|
shouldOverdrawWholeArea?: boolean;
|
|
65
49
|
zeroLeft?: number;
|
|
66
50
|
zeroTop?: number;
|
|
67
|
-
moveBoundaryEnabled?: boolean;
|
|
68
51
|
}
|
|
@@ -24,15 +24,11 @@ export declare class DocBackground extends DocComponent {
|
|
|
24
24
|
private _pageFillColor?;
|
|
25
25
|
private _pageStrokeColor?;
|
|
26
26
|
private _marginStrokeColor?;
|
|
27
|
-
private _pageBackgroundSource?;
|
|
28
|
-
private _pageBackgroundImage?;
|
|
29
27
|
constructor(oKey: string, documentSkeleton?: DocumentSkeleton, config?: IDocumentsConfig);
|
|
30
28
|
static create(oKey: string, documentSkeleton?: DocumentSkeleton, config?: IDocumentsConfig): DocBackground;
|
|
31
29
|
setFillColors(backgroundFillColor?: string, pageFillColor?: string, pageStrokeColor?: string, marginStrokeColor?: string): void;
|
|
32
30
|
draw(ctx: UniverRenderingContext, bounds?: IViewportInfo): void;
|
|
33
31
|
private _drawWorkspaceBackground;
|
|
34
|
-
private _drawPageBackgroundImage;
|
|
35
|
-
private _getPageBackgroundImage;
|
|
36
32
|
changeSkeleton(newSkeleton: DocumentSkeleton): this;
|
|
37
33
|
protected _draw(ctx: UniverRenderingContext, bounds?: IViewportInfo): void;
|
|
38
34
|
}
|
|
@@ -46,13 +46,9 @@ export declare class Documents extends DocComponent {
|
|
|
46
46
|
protected _draw(ctx: UniverRenderingContext, bounds?: IViewportInfo): void;
|
|
47
47
|
draw(ctx: UniverRenderingContext, bounds?: IViewportInfo): void;
|
|
48
48
|
private _drawTable;
|
|
49
|
-
private _drawTableCellBackgrounds;
|
|
50
49
|
private _getTableViewport;
|
|
51
50
|
private _getRenderUnitId;
|
|
52
|
-
private _getDocumentCompatibilityPolicy;
|
|
53
|
-
private _drawLineBackground;
|
|
54
51
|
private _drawBorderBottom;
|
|
55
|
-
private _drawGlyphGroupBackgrounds;
|
|
56
52
|
private _drawTableCell;
|
|
57
53
|
private _drawTableCellBordersAndBg;
|
|
58
54
|
private _getTableCellSource;
|
|
@@ -32,18 +32,8 @@ export declare class FontAndBaseLine extends docExtension {
|
|
|
32
32
|
* so we need a map to store actual value and set value
|
|
33
33
|
*/
|
|
34
34
|
actualFontMap: Record<string, string>;
|
|
35
|
-
private _textFillImageCache;
|
|
36
35
|
constructor();
|
|
37
36
|
draw(ctx: UniverRenderingContext, _parentScale: IScale, glyph: IDocumentSkeletonGlyph, _?: IBoundRectNoAngle, _more?: IDrawInfo): void;
|
|
38
|
-
private _fillTextWithTextFill;
|
|
39
|
-
private _getGlyphPaintBounds;
|
|
40
|
-
private _createTextGradient;
|
|
41
|
-
private _createTextPicturePattern;
|
|
42
|
-
private _getTextFillImage;
|
|
43
|
-
private _normalizeGradientStops;
|
|
44
|
-
private _getLinearGradientLine;
|
|
45
|
-
private _colorWithOpacity;
|
|
46
|
-
private _clamp;
|
|
47
37
|
private _fillText;
|
|
48
38
|
clearCache(): void;
|
|
49
39
|
}
|
|
@@ -13,23 +13,9 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type {
|
|
16
|
+
import type { IDocumentSkeletonDrawing, IDocumentSkeletonGlyph, IDocumentSkeletonLine, IDocumentSkeletonPage } from '../../../../../basics/i-document-skeleton-cached';
|
|
17
17
|
import type { IParagraphConfig, ISectionBreakConfig } from '../../../../../basics/interfaces';
|
|
18
|
-
import type {
|
|
19
|
-
import { BooleanNumber, GridType, SpacingRule } from '@univerjs/core';
|
|
18
|
+
import type { ILayoutContext } from '../../tools';
|
|
20
19
|
import { BreakPointType } from '../../line-breaker/break';
|
|
21
20
|
export declare function layoutParagraph(ctx: ILayoutContext, glyphGroup: IDocumentSkeletonGlyph[], pages: IDocumentSkeletonPage[], sectionBreakConfig: ISectionBreakConfig, paragraphConfig: IParagraphConfig, isParagraphFirstShapedText: boolean, breakPointType?: BreakPointType): IDocumentSkeletonPage[];
|
|
22
|
-
declare function
|
|
23
|
-
declare function _reLayoutCheck(ctx: ILayoutContext, floatObjects: IFloatObject[], column: IDocumentSkeletonColumn, paragraphIndex: number): void;
|
|
24
|
-
export declare const __testing: {
|
|
25
|
-
reLayoutCheck: typeof _reLayoutCheck;
|
|
26
|
-
avoidFlowAffectingDrawingsForTable: typeof __avoidFlowAffectingDrawingsForTable;
|
|
27
|
-
};
|
|
28
|
-
export declare function getLineHeightMetrics(glyphLineHeight: number, paragraphLineGapDefault: number, linePitch: number, gridType: GridType, lineSpacing: number, spacingRule: SpacingRule, snapToGrid: BooleanNumber, useWordStyleLineHeight?: boolean, scaleAutoLineSpacingByGlyphHeight?: boolean): {
|
|
29
|
-
paddingTop: number;
|
|
30
|
-
paddingBottom: number;
|
|
31
|
-
contentHeight: number;
|
|
32
|
-
lineSpacingApply: number;
|
|
33
|
-
};
|
|
34
|
-
export declare function updateInlineDrawingPosition(line: IDocumentSkeletonLine, paragraphInlineSkeDrawings?: Map<string, IDocumentSkeletonDrawing>, blockAnchorTop?: number, paragraphNonInlineSkeDrawings?: Map<string, IDocumentSkeletonDrawing>): void;
|
|
35
|
-
export {};
|
|
21
|
+
export declare function updateInlineDrawingPosition(line: IDocumentSkeletonLine, paragraphInlineSkeDrawings?: Map<string, IDocumentSkeletonDrawing>, blockAnchorTop?: number): void;
|
|
@@ -29,7 +29,7 @@ interface ILineBoundingBox {
|
|
|
29
29
|
spaceBelowApply?: number;
|
|
30
30
|
}
|
|
31
31
|
export declare function createSkeletonLine(paragraphIndex: number, lineType: LineType, lineBoundingBox: ILineBoundingBox, columnWidth: number, lineIndex: number | undefined, isParagraphStart: boolean | undefined, paragraphConfig: IParagraphConfig, page: IDocumentSkeletonPage, headerPage: Nullable<IDocumentSkeletonPage>, footerPage: Nullable<IDocumentSkeletonPage>): IDocumentSkeletonLine;
|
|
32
|
-
export declare function calculateLineTopByDrawings(lineHeight: number | undefined, lineTop: number | undefined, page: IDocumentSkeletonPage, headerPage: Nullable<IDocumentSkeletonPage>, footerPage: Nullable<IDocumentSkeletonPage
|
|
32
|
+
export declare function calculateLineTopByDrawings(lineHeight: number | undefined, lineTop: number | undefined, page: IDocumentSkeletonPage, headerPage: Nullable<IDocumentSkeletonPage>, footerPage: Nullable<IDocumentSkeletonPage>): number;
|
|
33
33
|
export declare function updateDivideInfo(divide: IDocumentSkeletonDivide, states: Partial<IDocumentSkeletonDivide>): void;
|
|
34
34
|
export declare function setLineMarginBottom(line: IDocumentSkeletonLine, marginBottom: number): void;
|
|
35
35
|
export declare function collisionDetection(floatObject: IFloatObject, lineHeight: number, lineTop: number, columnLeft: number, columnWidth: number): boolean;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { DocumentDataModel, INumberUnit, IObjectPositionH, IObjectPositionV, IParagraph, IParagraphStyle, ITextStyle, Nullable
|
|
16
|
+
import type { DocumentDataModel, INumberUnit, IObjectPositionH, IObjectPositionV, IParagraph, IParagraphStyle, ITextStyle, Nullable } from '@univerjs/core';
|
|
17
17
|
import type { IDocumentSkeletonCached, IDocumentSkeletonColumn, IDocumentSkeletonDivide, IDocumentSkeletonFontStyle, IDocumentSkeletonGlyph, IDocumentSkeletonLine, IDocumentSkeletonPage, IDocumentSkeletonSection, ISkeletonResourceReference } from '../../../basics/i-document-skeleton-cached';
|
|
18
18
|
import type { IDocsConfig, IParagraphConfig, ISectionBreakConfig } from '../../../basics/interfaces';
|
|
19
19
|
import type { DataStreamTreeNode } from '../view-model/data-stream-tree-node';
|
|
@@ -55,7 +55,6 @@ export declare function getLineHeightConfig(sectionBreakConfig: ISectionBreakCon
|
|
|
55
55
|
lineSpacing: number;
|
|
56
56
|
spacingRule: SpacingRule;
|
|
57
57
|
snapToGrid: BooleanNumber;
|
|
58
|
-
useWordStyleLineHeight: boolean;
|
|
59
58
|
};
|
|
60
59
|
export declare function getCharSpaceConfig(sectionBreakConfig: ISectionBreakConfig, paragraphConfig: IParagraphConfig): {
|
|
61
60
|
charSpace: number;
|
|
@@ -103,8 +102,6 @@ export interface IFloatObject {
|
|
|
103
102
|
width: number;
|
|
104
103
|
height: number;
|
|
105
104
|
angle: number;
|
|
106
|
-
behindDoc?: BooleanNumber;
|
|
107
|
-
layoutType?: PositionedObjectLayoutType;
|
|
108
105
|
type: FloatObjectType;
|
|
109
106
|
positionV: IObjectPositionV;
|
|
110
107
|
}
|
|
@@ -15,13 +15,9 @@
|
|
|
15
15
|
*/
|
|
16
16
|
export interface IDocsTableRenderViewport {
|
|
17
17
|
contentWidth: number;
|
|
18
|
-
leadingInsetLeft?: number;
|
|
19
18
|
scrollLeft: number;
|
|
20
|
-
trailingInsetRight?: number;
|
|
21
19
|
viewportWidth: number;
|
|
22
20
|
}
|
|
23
21
|
export type DocsTableRenderViewportProvider = (unitId: string, tableId: string) => IDocsTableRenderViewport | null | undefined;
|
|
24
22
|
export declare function setDocsTableRenderViewportProvider(provider: DocsTableRenderViewportProvider | null): void;
|
|
25
23
|
export declare function getDocsTableRenderViewport(unitId: string, tableId: string): IDocsTableRenderViewport | null;
|
|
26
|
-
export declare function getDocsTableVirtualContentWidth(viewport: IDocsTableRenderViewport): number;
|
|
27
|
-
export declare function hasDocsTableHorizontalViewport(viewport: IDocsTableRenderViewport | null | undefined): viewport is IDocsTableRenderViewport;
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
import type { IRange, IScale, ObjectMatrix } from '@univerjs/core';
|
|
17
17
|
import type { UniverRenderingContext } from '../../../context';
|
|
18
18
|
import type { IDrawInfo } from '../../extension';
|
|
19
|
-
import type {
|
|
19
|
+
import type { BorderCache } from '../interfaces';
|
|
20
20
|
import type { SpreadsheetSkeleton } from '../sheet.render-skeleton';
|
|
21
21
|
import { BorderStyleTypes } from '@univerjs/core';
|
|
22
22
|
import { SheetExtension } from './sheet-extension';
|
|
@@ -34,7 +34,7 @@ export declare class Border extends SheetExtension {
|
|
|
34
34
|
preStyle: BorderStyleTypes;
|
|
35
35
|
preColor: string;
|
|
36
36
|
draw(ctx: UniverRenderingContext, _parentScale: IScale, spreadsheetSkeleton: SpreadsheetSkeleton, diffRanges: IRange[], { viewRanges }: IDrawInfo): void;
|
|
37
|
-
renderBorderByCell(renderBorderContext: IRenderBorderContext, row: number, col: number, borderCacheItem:
|
|
37
|
+
renderBorderByCell(renderBorderContext: IRenderBorderContext, row: number, col: number, borderCacheItem: BorderCache): true | undefined;
|
|
38
38
|
private _getOverflowExclusion;
|
|
39
39
|
private _renderDoubleBorder;
|
|
40
40
|
private _getSpecificCellBorder;
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
import type { BorderStyleTypes, HorizontalAlign, ICellDataForSheetInterceptor, ICellWithCoord, ImageCacheMap, IStyleData, Nullable, ObjectMatrix, VerticalAlign, WrapStrategy } from '@univerjs/core';
|
|
17
|
-
import type { BORDER_TYPE } from '../../basics/const';
|
|
17
|
+
import type { BORDER_TYPE as BORDER_LTRB } from '../../basics/const';
|
|
18
18
|
import type { Canvas } from '../../canvas';
|
|
19
19
|
import type { UniverRenderingContext } from '../../context';
|
|
20
20
|
import type { DocumentSkeleton } from '../docs/layout/doc-skeleton';
|
|
21
|
-
export interface
|
|
22
|
-
[key: string]:
|
|
21
|
+
export interface BorderCache {
|
|
22
|
+
[key: string]: BorderCacheItem | {};
|
|
23
23
|
}
|
|
24
|
-
export interface
|
|
25
|
-
type:
|
|
24
|
+
export interface BorderCacheItem {
|
|
25
|
+
type: BORDER_LTRB;
|
|
26
26
|
style: BorderStyleTypes;
|
|
27
27
|
color: string;
|
|
28
28
|
}
|
|
@@ -46,7 +46,7 @@ export interface IStylesCache {
|
|
|
46
46
|
* Get value from getCell in skeleton and this value is used in font extension
|
|
47
47
|
*/
|
|
48
48
|
fontMatrix: ObjectMatrix<IFontCacheItem>;
|
|
49
|
-
border?: ObjectMatrix<
|
|
49
|
+
border?: ObjectMatrix<BorderCache>;
|
|
50
50
|
}
|
|
51
51
|
export declare enum ShowGridlinesState {
|
|
52
52
|
OFF = 0,
|
package/lib/types/index.d.ts
CHANGED
|
@@ -26,11 +26,11 @@ export { getTableIdAndSliceIndex } from './components/docs/layout/block/table';
|
|
|
26
26
|
export * from './components/docs/layout/doc-simple-skeleton';
|
|
27
27
|
export { DocumentSkeleton } from './components/docs/layout/doc-skeleton';
|
|
28
28
|
export type { IFindNodeRestrictions } from './components/docs/layout/doc-skeleton';
|
|
29
|
-
export { getCharSpaceApply, getLastLine, getNumberUnitValue, getPageFromPath, glyphIterator, lineIterator
|
|
29
|
+
export { getCharSpaceApply, getLastLine, getNumberUnitValue, getPageFromPath, glyphIterator, lineIterator } from './components/docs/layout/tools';
|
|
30
30
|
export { getLastColumn } from './components/docs/layout/tools';
|
|
31
31
|
export { Liquid } from './components/docs/liquid';
|
|
32
|
-
export type { DocsTableRenderViewportProvider, IDocsTableRenderViewport
|
|
33
|
-
export { getDocsTableRenderViewport, setDocsTableRenderViewportProvider
|
|
32
|
+
export type { DocsTableRenderViewportProvider, IDocsTableRenderViewport } from './components/docs/table-render-viewport';
|
|
33
|
+
export { getDocsTableRenderViewport, setDocsTableRenderViewportProvider } from './components/docs/table-render-viewport';
|
|
34
34
|
export { DataStreamTreeNode } from './components/docs/view-model/data-stream-tree-node';
|
|
35
35
|
export { DocumentViewModel } from './components/docs/view-model/document-view-model';
|
|
36
36
|
export { DocumentEditArea } from './components/docs/view-model/document-view-model';
|
|
@@ -44,10 +44,9 @@ export * from './engine';
|
|
|
44
44
|
export * from './group';
|
|
45
45
|
export * from './layer';
|
|
46
46
|
export { IRenderingEngine, UniverRenderEnginePlugin } from './plugin';
|
|
47
|
-
export { getCurrentTypeOfRenderer, IRenderManagerService, RenderManagerService, withCurrentTypeOfRenderer
|
|
47
|
+
export { getCurrentTypeOfRenderer, IRenderManagerService, RenderManagerService, withCurrentTypeOfRenderer } from './render-manager/render-manager.service';
|
|
48
48
|
export { type RenderComponentType } from './render-manager/render-manager.service';
|
|
49
|
-
export { RenderUnit } from './render-manager/render-unit';
|
|
50
|
-
export type { IRender, IRenderContext, IRenderModule } from './render-manager/render-unit';
|
|
49
|
+
export { type IRender, type IRenderContext, type IRenderModule, RenderUnit } from './render-manager/render-unit';
|
|
51
50
|
export * from './scene';
|
|
52
51
|
export * from './scene-viewer';
|
|
53
52
|
export { type IChangeObserverConfig } from './scene.transformer';
|
|
@@ -34,7 +34,6 @@ export interface IRenderManagerService extends IDisposable {
|
|
|
34
34
|
createRender(unitId: string, createUnitOptions?: ICreateUnitOptions): IRender;
|
|
35
35
|
removeRender(unitId: string): void;
|
|
36
36
|
/**
|
|
37
|
-
* @deprecated use getRenderUnitById instead
|
|
38
37
|
* Get RenderUnit By Id, RenderUnit implements IRender
|
|
39
38
|
* @param unitId
|
|
40
39
|
*/
|
|
@@ -51,16 +51,8 @@ export declare class Transformer extends Disposable implements ITransformerConfi
|
|
|
51
51
|
rotationSnaps: number[];
|
|
52
52
|
rotationSnapTolerance: number;
|
|
53
53
|
rotateAnchorOffset: number;
|
|
54
|
-
rotateAnchorPosition: 'top' | 'bottom';
|
|
55
|
-
rotateLineEnabled: boolean;
|
|
56
54
|
rotateSize: number;
|
|
57
55
|
rotateCornerRadius: number;
|
|
58
|
-
rotateFill: string | undefined;
|
|
59
|
-
rotateStroke: string | undefined;
|
|
60
|
-
rotateStrokeWidth: number | undefined;
|
|
61
|
-
rotateIconEnabled: boolean;
|
|
62
|
-
rotateIconStroke: string | undefined;
|
|
63
|
-
rotateIconStrokeWidth: number;
|
|
64
56
|
borderEnabled: boolean;
|
|
65
57
|
borderStroke: string;
|
|
66
58
|
borderStrokeWidth: number;
|
|
@@ -71,19 +63,10 @@ export declare class Transformer extends Disposable implements ITransformerConfi
|
|
|
71
63
|
anchorStrokeWidth: number;
|
|
72
64
|
anchorSize: number;
|
|
73
65
|
anchorCornerRadius: number;
|
|
74
|
-
anchorStyle: 'default' | 'canva';
|
|
75
|
-
anchorSideLongSize: number;
|
|
76
|
-
anchorSideShortSize: number;
|
|
77
|
-
anchorSideCornerRadius: number;
|
|
78
|
-
anchorShadowColor: string | undefined;
|
|
79
|
-
anchorShadowBlur: number;
|
|
80
|
-
anchorShadowOffsetX: number;
|
|
81
|
-
anchorShadowOffsetY: number;
|
|
82
66
|
keepRatio: boolean;
|
|
83
67
|
centeredScaling: boolean;
|
|
84
68
|
zeroLeft: number;
|
|
85
69
|
zeroTop: number;
|
|
86
|
-
moveBoundaryEnabled: boolean;
|
|
87
70
|
/**
|
|
88
71
|
* leftTop centerTop rightTop
|
|
89
72
|
* leftMiddle rightMiddle
|
|
@@ -169,11 +152,8 @@ export declare class Transformer extends Disposable implements ITransformerConfi
|
|
|
169
152
|
private _rotateMoving;
|
|
170
153
|
private _getOutlinePosition;
|
|
171
154
|
private _getRotateAnchorCursor;
|
|
172
|
-
private _createRotateIcon;
|
|
173
155
|
private _getCopperAnchorPosition;
|
|
174
156
|
private _getRotateAnchorPosition;
|
|
175
|
-
private _isMiddleAnchor;
|
|
176
|
-
private _getResizeAnchorProps;
|
|
177
157
|
private _createResizeAnchor;
|
|
178
158
|
private _createCopperResizeAnchor;
|
|
179
159
|
private _getNorthEastPoints;
|
|
@@ -36,6 +36,5 @@ export declare class CanvasColorService extends Disposable implements ICanvasCol
|
|
|
36
36
|
constructor(_themeService: ThemeService);
|
|
37
37
|
getRenderColor(color: string): string;
|
|
38
38
|
}
|
|
39
|
-
export declare function getDarkRenderColorOverride(color: string): string | null;
|
|
40
39
|
export declare function hexToRgb(_hex: string): RGBColorType;
|
|
41
40
|
export declare function rgbToHex(rgbColor: RGBColorType): string;
|
|
@@ -55,7 +55,6 @@ export interface IImageProps extends IShapeProps {
|
|
|
55
55
|
*/
|
|
56
56
|
adjustValues?: Nullable<Record<string, number>>;
|
|
57
57
|
opacity?: number;
|
|
58
|
-
clipBounds?: Nullable<IShapeClipBounds>;
|
|
59
58
|
}
|
|
60
59
|
export declare class Image extends Shape<IImageProps> {
|
|
61
60
|
protected _props: IImageProps;
|
|
@@ -69,9 +68,7 @@ export declare class Image extends Shape<IImageProps> {
|
|
|
69
68
|
get srcRect(): Nullable<ISrcRect>;
|
|
70
69
|
get prstGeom(): Nullable<string>;
|
|
71
70
|
get opacity(): number;
|
|
72
|
-
get clipBounds(): Nullable<IShapeClipBounds>;
|
|
73
71
|
setOpacity(opacity: number): void;
|
|
74
|
-
setClipBounds(clipBounds?: Nullable<IShapeClipBounds>): void;
|
|
75
72
|
setClipService(clipService: Nullable<IImageShapeClipService>): void;
|
|
76
73
|
getClipService(): Nullable<IImageShapeClipService>;
|
|
77
74
|
get classType(): RENDER_CLASS_TYPE;
|