@univerjs/engine-render 0.1.5 → 0.1.7
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 +2 -2
- package/lib/es/index.js +3115 -2944
- package/lib/types/components/docs/document.d.ts +1 -1
- package/lib/types/components/sheets/extensions/custom.d.ts +10 -0
- package/lib/types/components/sheets/extensions/index.d.ts +2 -0
- package/lib/types/components/sheets/extensions/marker.d.ts +10 -0
- package/lib/types/index.d.ts +2 -0
- package/lib/types/shape/checkbox.d.ts +17 -0
- package/lib/types/shape/dropdown-item.d.ts +12 -0
- package/lib/types/shape/index.d.ts +1 -0
- package/lib/types/shape/text.d.ts +7 -0
- package/lib/umd/index.js +2 -2
- package/package.json +6 -6
|
@@ -37,7 +37,7 @@ export declare class Documents extends DocComponent {
|
|
|
37
37
|
static create(oKey: string, documentSkeleton?: DocumentSkeleton, config?: IDocumentsConfig): Documents;
|
|
38
38
|
setConfig(config?: IDocumentsConfig): void;
|
|
39
39
|
getOffsetConfig(): IDocumentOffsetConfig;
|
|
40
|
-
getEngine(): Nullable<import('
|
|
40
|
+
getEngine(): Nullable<import('../..').ThinEngine<Scene>>;
|
|
41
41
|
draw(ctx: UniverRenderingContext, bounds?: IViewportBound): void;
|
|
42
42
|
changeSkeleton(newSkeleton: DocumentSkeleton): this;
|
|
43
43
|
protected _draw(ctx: UniverRenderingContext, bounds?: IViewportBound): void;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SheetExtension } from './sheet-extension';
|
|
2
|
+
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
3
|
+
import { UniverRenderingContext } from '../../../context';
|
|
4
|
+
import { IRange, IScale } from '@univerjs/core';
|
|
5
|
+
|
|
6
|
+
export declare class Custom extends SheetExtension {
|
|
7
|
+
protected Z_INDEX: number;
|
|
8
|
+
uKey: string;
|
|
9
|
+
draw(ctx: UniverRenderingContext, parentScale: IScale, skeleton: SpreadsheetSkeleton, diffRanges?: IRange[] | undefined): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SheetExtension } from './sheet-extension';
|
|
2
|
+
import { SpreadsheetSkeleton } from '../sheet-skeleton';
|
|
3
|
+
import { UniverRenderingContext } from '../../../context';
|
|
4
|
+
import { IRange, IScale } from '@univerjs/core';
|
|
5
|
+
|
|
6
|
+
export declare class Marker extends SheetExtension {
|
|
7
|
+
protected Z_INDEX: number;
|
|
8
|
+
uKey: string;
|
|
9
|
+
draw(ctx: UniverRenderingContext, parentScale: IScale, skeleton: SpreadsheetSkeleton, diffRanges?: IRange[] | undefined): void;
|
|
10
|
+
}
|
package/lib/types/index.d.ts
CHANGED
|
@@ -38,3 +38,5 @@ export type { IActiveTextRange, IEditorInputConfig, ITextSelectionInnerParam } f
|
|
|
38
38
|
export { Documents } from './components/docs/document';
|
|
39
39
|
export type { IPageRenderConfig } from './components/docs/document';
|
|
40
40
|
export { DocumentSkeleton } from './components/docs/layout/doc-skeleton';
|
|
41
|
+
export { ThinEngine } from './thin-engine';
|
|
42
|
+
export { getCharSpaceApply, getNumberUnitValue } from './components/docs/layout/tools';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IShapeProps, Shape } from './shape';
|
|
2
|
+
import { UniverRenderingContext } from '../context';
|
|
3
|
+
|
|
4
|
+
export interface ICheckboxProps extends IShapeProps {
|
|
5
|
+
checked?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const CHECK_OBJECT_ARRAY: string[];
|
|
8
|
+
export declare class Checkbox extends Shape<ICheckboxProps> {
|
|
9
|
+
_checked: boolean;
|
|
10
|
+
constructor(key: string, props: ICheckboxProps);
|
|
11
|
+
get checked(): boolean;
|
|
12
|
+
static drawWith(ctx: UniverRenderingContext, props: ICheckboxProps): void;
|
|
13
|
+
protected _draw(ctx: UniverRenderingContext): void;
|
|
14
|
+
toJson(): {
|
|
15
|
+
[x: string]: any;
|
|
16
|
+
};
|
|
17
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IShapeProps, Shape } from './shape';
|
|
2
|
+
import { UniverRenderingContext } from '../context';
|
|
3
|
+
|
|
4
|
+
export interface IListItemProps extends IShapeProps {
|
|
5
|
+
text: number;
|
|
6
|
+
fontString: string;
|
|
7
|
+
fontFamily: string;
|
|
8
|
+
fontSize: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class ListItem extends Shape<IListItemProps> {
|
|
11
|
+
static drawWith(ctx: UniverRenderingContext, props: IListItemProps): void;
|
|
12
|
+
}
|