verstak 0.22.510 → 0.22.511
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.
|
@@ -24,23 +24,6 @@ export declare type Cells = undefined | string | number | {
|
|
|
24
24
|
down?: number;
|
|
25
25
|
verticalOverlap?: boolean;
|
|
26
26
|
};
|
|
27
|
-
export interface Bounds {
|
|
28
|
-
place?: string;
|
|
29
|
-
widthSpan?: number;
|
|
30
|
-
widthMin?: string;
|
|
31
|
-
widthMax?: string;
|
|
32
|
-
widthGrowth?: number;
|
|
33
|
-
widthOverlap?: boolean;
|
|
34
|
-
heightSpan?: number;
|
|
35
|
-
heightMin?: string;
|
|
36
|
-
heightMax?: string;
|
|
37
|
-
heightGrowth?: number;
|
|
38
|
-
heightOverlap?: boolean;
|
|
39
|
-
alignContent?: Align;
|
|
40
|
-
alignFrame?: Align;
|
|
41
|
-
wrapping?: boolean;
|
|
42
|
-
dangling?: boolean;
|
|
43
|
-
}
|
|
44
27
|
export declare class Cursor {
|
|
45
28
|
static readonly UndefinedCellRange: Readonly<{
|
|
46
29
|
x1: 0;
|
|
@@ -44,7 +44,7 @@ export declare abstract class VBlock<T = unknown, M = unknown, R = void> {
|
|
|
44
44
|
abstract heightMax: string;
|
|
45
45
|
abstract alignContent: Align;
|
|
46
46
|
abstract alignFrame: Align;
|
|
47
|
-
abstract
|
|
47
|
+
abstract wrapContent: boolean;
|
|
48
48
|
abstract dangling: boolean;
|
|
49
49
|
abstract readonly level: number;
|
|
50
50
|
abstract readonly host: VBlock;
|
|
@@ -91,7 +91,7 @@ export declare class AbstractDriver<T> {
|
|
|
91
91
|
applyHeightMax(block: VBlock<T, any, any>, heightMax: string): void;
|
|
92
92
|
applyAlignContent(block: VBlock<T, any, any>, alignContent: Align): void;
|
|
93
93
|
applyAlignFrame(block: VBlock<T, any, any>, alignFrame: Align): void;
|
|
94
|
-
|
|
94
|
+
applyWrapContent(block: VBlock<T, any, any>, wrapContent: boolean): void;
|
|
95
95
|
applyDangling(block: VBlock<T, any, any>, dangling: boolean): void;
|
|
96
96
|
render(block: VBlock<T>): void | Promise<void>;
|
|
97
97
|
}
|
|
@@ -153,7 +153,7 @@ export class AbstractDriver {
|
|
|
153
153
|
}
|
|
154
154
|
applyAlignFrame(block, alignFrame) {
|
|
155
155
|
}
|
|
156
|
-
|
|
156
|
+
applyWrapContent(block, wrapContent) {
|
|
157
157
|
}
|
|
158
158
|
applyDangling(block, dangling) {
|
|
159
159
|
}
|
|
@@ -214,7 +214,7 @@ class VBlockImpl extends VBlock {
|
|
|
214
214
|
this.appliedHeightMax = "";
|
|
215
215
|
this.appliedAlignContent = Align.Default;
|
|
216
216
|
this.appliedAlignFrame = Align.Default;
|
|
217
|
-
this.
|
|
217
|
+
this.appliedWrapContent = false;
|
|
218
218
|
this.appliedDangling = false;
|
|
219
219
|
this.level = owner.level + 1;
|
|
220
220
|
this.host = owner;
|
|
@@ -297,11 +297,11 @@ class VBlockImpl extends VBlock {
|
|
|
297
297
|
this.appliedAlignFrame = value;
|
|
298
298
|
}
|
|
299
299
|
}
|
|
300
|
-
get
|
|
301
|
-
set
|
|
302
|
-
if (value !== this.
|
|
303
|
-
this.driver.
|
|
304
|
-
this.
|
|
300
|
+
get wrapContent() { return this.appliedWrapContent; }
|
|
301
|
+
set wrapContent(value) {
|
|
302
|
+
if (value !== this.appliedWrapContent) {
|
|
303
|
+
this.driver.applyWrapContent(this, value);
|
|
304
|
+
this.appliedWrapContent = value;
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
307
|
get dangling() { return this.appliedDangling; }
|
|
@@ -17,7 +17,7 @@ export declare class VerstakDriver<T extends HTMLElement> extends HtmlDriver<T>
|
|
|
17
17
|
applyHeightMax(block: VBlock<T>, heightMax: string): void;
|
|
18
18
|
applyAlignContent(block: VBlock<T>, alignContent: Align): void;
|
|
19
19
|
applyAlignFrame(block: VBlock<T>, alignFrame: Align): void;
|
|
20
|
-
|
|
20
|
+
applyWrapContent(block: VBlock<T>, wrapContent: boolean): void;
|
|
21
21
|
applyDangling(block: VBlock<T>, dangling: boolean): void;
|
|
22
22
|
render(block: VBlock<T>): void | Promise<void>;
|
|
23
23
|
}
|
|
@@ -106,8 +106,8 @@ export class VerstakDriver extends HtmlDriver {
|
|
|
106
106
|
else
|
|
107
107
|
css.alignSelf = css.justifySelf = "";
|
|
108
108
|
}
|
|
109
|
-
|
|
110
|
-
if (
|
|
109
|
+
applyWrapContent(block, wrapContent) {
|
|
110
|
+
if (wrapContent)
|
|
111
111
|
block.native.setAttribute("wrapping", "true");
|
|
112
112
|
else
|
|
113
113
|
block.native.removeAttribute("wrapping");
|