@win2win/shared 1.0.41 → 1.0.42
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.
|
@@ -22,11 +22,17 @@ export interface LayoutSection {
|
|
|
22
22
|
styles: LayoutStyle;
|
|
23
23
|
content: any;
|
|
24
24
|
}
|
|
25
|
+
export declare enum TextLineType {
|
|
26
|
+
TITLE = "title",
|
|
27
|
+
SUBTITLE = "subtitle",
|
|
28
|
+
PARAGRAPH = "paragraph"
|
|
29
|
+
}
|
|
30
|
+
export interface TextLine {
|
|
31
|
+
type: TextLineType;
|
|
32
|
+
text: string;
|
|
33
|
+
}
|
|
25
34
|
export interface TextContent {
|
|
26
|
-
lines:
|
|
27
|
-
type: 'title' | 'subtitle' | 'paragraph';
|
|
28
|
-
text: string;
|
|
29
|
-
}[];
|
|
35
|
+
lines: TextLine[];
|
|
30
36
|
}
|
|
31
37
|
export interface LayoutSectionText extends LayoutSection {
|
|
32
38
|
type: LayoutSectionType.TEXT;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.LAYOUT_SECTION_TYPES = exports.LayoutSectionType = void 0;
|
|
3
|
+
exports.LAYOUT_SECTION_TYPES = exports.LayoutSectionType = exports.TextLineType = void 0;
|
|
4
|
+
var TextLineType;
|
|
5
|
+
(function (TextLineType) {
|
|
6
|
+
TextLineType["TITLE"] = "title";
|
|
7
|
+
TextLineType["SUBTITLE"] = "subtitle";
|
|
8
|
+
TextLineType["PARAGRAPH"] = "paragraph";
|
|
9
|
+
})(TextLineType || (exports.TextLineType = TextLineType = {}));
|
|
4
10
|
var LayoutSectionType;
|
|
5
11
|
(function (LayoutSectionType) {
|
|
6
12
|
LayoutSectionType["TEXT"] = "text";
|