@univerjs/engine-render 0.10.6 → 0.10.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 +1 -1
- package/lib/es/index.js +2479 -2353
- package/lib/index.js +2479 -2353
- package/lib/types/components/docs/extensions/line.d.ts +3 -0
- package/lib/types/shape/text.d.ts +6 -1
- package/lib/umd/index.js +1 -1
- package/package.json +5 -5
|
@@ -9,5 +9,8 @@ export declare class Line extends docExtension {
|
|
|
9
9
|
draw(ctx: UniverRenderingContext, parentScale: IScale, glyph: IDocumentSkeletonGlyph): void;
|
|
10
10
|
clearCache(): void;
|
|
11
11
|
private _drawLine;
|
|
12
|
+
private _drawLineTo;
|
|
12
13
|
private _setLineType;
|
|
14
|
+
private _isWave;
|
|
15
|
+
private _isDouble;
|
|
13
16
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Nullable, CellValueType, HorizontalAlign, VerticalAlign } from '@univerjs/core';
|
|
1
|
+
import { Nullable, CellValueType, HorizontalAlign, TextDecoration, VerticalAlign } from '@univerjs/core';
|
|
2
2
|
import { UniverRenderingContext } from '../context';
|
|
3
3
|
import { IShapeProps, Shape } from './shape';
|
|
4
4
|
import { DocSimpleSkeleton } from '../components/docs/layout/doc-simple-skeleton';
|
|
@@ -13,6 +13,7 @@ export interface ITextProps extends IShapeProps {
|
|
|
13
13
|
color?: Nullable<string>;
|
|
14
14
|
strokeLine?: boolean;
|
|
15
15
|
underline?: boolean;
|
|
16
|
+
underlineType?: TextDecoration;
|
|
16
17
|
cellValueType?: Nullable<CellValueType>;
|
|
17
18
|
}
|
|
18
19
|
export declare const TEXT_OBJECT_ARRAY: string[];
|
|
@@ -29,6 +30,10 @@ export declare class Text extends Shape<ITextProps> {
|
|
|
29
30
|
* Draw text decoration lines (underline, strikethrough, etc.)
|
|
30
31
|
*/
|
|
31
32
|
private static _drawTextDecoration;
|
|
33
|
+
private static _drawLine;
|
|
34
|
+
private static _setLineType;
|
|
35
|
+
private static _isWave;
|
|
36
|
+
private static _isDouble;
|
|
32
37
|
protected _draw(ctx: UniverRenderingContext): void;
|
|
33
38
|
makeDirty(state?: boolean): this | undefined;
|
|
34
39
|
toJson(): {
|