@wcardinal/wcardinal-ui 0.331.0 → 0.333.0
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/dist/types/wcardinal/ui/d-base-padding-adjustable.d.ts +12 -34
- package/dist/types/wcardinal/ui/d-base.d.ts +2 -0
- package/dist/types/wcardinal/ui/d-table-body-cell-input-tree-input.d.ts +1 -1
- package/dist/types/wcardinal/ui/d-table-body-cell-tree.d.ts +1 -0
- package/dist/types/wcardinal/ui/d-tree-item-text.d.ts +1 -0
- package/dist/types/wcardinal/ui/shape/e-shape-connector-edge-impl.d.ts +7 -1
- package/dist/wcardinal/ui/d-base-padding-adjustable.js +27 -88
- package/dist/wcardinal/ui/d-base-padding-adjustable.js.map +1 -1
- package/dist/wcardinal/ui/d-base.js +5 -1
- package/dist/wcardinal/ui/d-base.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-input-tree-input.js +5 -4
- package/dist/wcardinal/ui/d-table-body-cell-input-tree-input.js.map +1 -1
- package/dist/wcardinal/ui/d-table-body-cell-tree.js +4 -4
- package/dist/wcardinal/ui/d-table-body-cell-tree.js.map +1 -1
- package/dist/wcardinal/ui/d-tree-item-text.js +3 -1
- package/dist/wcardinal/ui/d-tree-item-text.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-container-impl.js +6 -2
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-container-impl.js.map +1 -1
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-impl.js +94 -28
- package/dist/wcardinal/ui/shape/e-shape-connector-edge-impl.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +1 -1
- package/dist/wcardinal-ui-theme-dark.min.js +1 -1
- package/dist/wcardinal-ui-theme-white.js +1 -1
- package/dist/wcardinal-ui-theme-white.min.js +1 -1
- package/dist/wcardinal-ui.cjs.js +144 -129
- package/dist/wcardinal-ui.js +144 -129
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,39 +1,17 @@
|
|
|
1
|
-
import { DThemeBase } from "./d-base";
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export declare class DBasePaddingAdjustable implements DPadding {
|
|
10
|
-
protected _target: DPadding;
|
|
11
|
-
protected _top: number;
|
|
12
|
-
protected _right: number;
|
|
13
|
-
protected _bottom: number;
|
|
14
|
-
protected _left: number;
|
|
15
|
-
protected _callback?: () => void;
|
|
16
|
-
constructor(target: DPadding);
|
|
17
|
-
getTheme(): DThemeBase;
|
|
18
|
-
setTheme(theme: DThemeBase): void;
|
|
1
|
+
import { DBaseOptions, DThemeBase } from "./d-base";
|
|
2
|
+
import { DBasePadding } from "./d-base-padding";
|
|
3
|
+
export declare class DBasePaddingAdjustable extends DBasePadding {
|
|
4
|
+
protected _atop: number;
|
|
5
|
+
protected _aright: number;
|
|
6
|
+
protected _abottom: number;
|
|
7
|
+
protected _aleft: number;
|
|
8
|
+
constructor(theme: DThemeBase, options?: DBaseOptions<any>, callback?: () => void);
|
|
19
9
|
getLeft(): number;
|
|
20
|
-
adjLeft(
|
|
21
|
-
get left(): number | undefined;
|
|
22
|
-
set left(left: number | undefined);
|
|
10
|
+
adjLeft(aleft: number): void;
|
|
23
11
|
getTop(): number;
|
|
24
|
-
adjTop(
|
|
25
|
-
get top(): number | undefined;
|
|
26
|
-
set top(top: number | undefined);
|
|
12
|
+
adjTop(atop: number): void;
|
|
27
13
|
getRight(): number;
|
|
28
|
-
adjRight(
|
|
29
|
-
get right(): number | undefined;
|
|
30
|
-
set right(right: number | undefined);
|
|
14
|
+
adjRight(aright: number): void;
|
|
31
15
|
getBottom(): number;
|
|
32
|
-
adjBottom(
|
|
33
|
-
get bottom(): number | undefined;
|
|
34
|
-
set bottom(bottom: number | undefined);
|
|
35
|
-
set(padding: number): void;
|
|
36
|
-
set(topAndBottom: number, leftAndRight: number): void;
|
|
37
|
-
set(top: number, leftAndRight: number, bottom: number): void;
|
|
38
|
-
set(top: number, right: number, bottom: number, left: number): void;
|
|
16
|
+
adjBottom(abottom: number): void;
|
|
39
17
|
}
|
|
@@ -3,6 +3,7 @@ import InteractionEvent = interaction.InteractionEvent;
|
|
|
3
3
|
import InteractionManager = interaction.InteractionManager;
|
|
4
4
|
import { DBackgroundStateAware } from "./d-background";
|
|
5
5
|
import { DBaseInteractive } from "./d-base-interactive";
|
|
6
|
+
import { DBasePadding } from "./d-base-padding";
|
|
6
7
|
import { DBasePoint } from "./d-base-point";
|
|
7
8
|
import { DBaseStateSet } from "./d-base-state-set";
|
|
8
9
|
import { DBorderStateAware } from "./d-border";
|
|
@@ -617,6 +618,7 @@ export declare class DBase<THEME extends DThemeBase = DThemeBase, OPTIONS extend
|
|
|
617
618
|
protected _lastDownPoint?: Point;
|
|
618
619
|
protected _cursor?: DStateAwareOrValueMightBe<string>;
|
|
619
620
|
constructor(options?: OPTIONS);
|
|
621
|
+
protected newPadding(theme: THEME, options?: OPTIONS, callback?: () => void): DBasePadding;
|
|
620
622
|
protected toCursor(cursor: DStateAwareOrValueMightBe<string> | undefined, state: DBaseStateSet): string;
|
|
621
623
|
get snippet(): DBaseSnippetContainer;
|
|
622
624
|
get reflowable(): DBaseReflowableContainer;
|
|
@@ -6,7 +6,7 @@ export interface DThemeTableBodyCellInputTreeInput extends DThemeInputText {
|
|
|
6
6
|
}
|
|
7
7
|
export declare class DTableBodyCellInputTreeInput<THEME extends DThemeTableBodyCellInputTreeInput = DThemeTableBodyCellInputTreeInput, OPTIONS extends DTableBodyCellInputTreeInputOptions<THEME> = DTableBodyCellInputTreeInputOptions<THEME>> extends DInputText<THEME, OPTIONS> {
|
|
8
8
|
protected _padding: DBasePaddingAdjustable;
|
|
9
|
-
|
|
9
|
+
protected newPadding(theme: THEME, options?: OPTIONS, callback?: () => void): DBasePaddingAdjustable;
|
|
10
10
|
get padding(): DBasePaddingAdjustable;
|
|
11
11
|
protected getType(): string;
|
|
12
12
|
}
|
|
@@ -15,6 +15,7 @@ export declare class DTableBodyCellTree<ROW, VALUE = unknown, THEME extends DThe
|
|
|
15
15
|
protected _padding: DBasePaddingAdjustable;
|
|
16
16
|
protected _link?: DLink | null;
|
|
17
17
|
constructor(columnIndex: number, column: DTableColumn<ROW, VALUE | null>, onChange: DTableBodyCellOnChange<ROW, VALUE | null>, options?: OPTIONS);
|
|
18
|
+
protected newPadding(theme: THEME, options?: OPTIONS, callback?: () => void): DBasePaddingAdjustable;
|
|
18
19
|
protected onClick(e: interaction.InteractionEvent): void;
|
|
19
20
|
get link(): DLink | null;
|
|
20
21
|
protected newLink(): DLink | null;
|
|
@@ -44,6 +44,7 @@ export declare class DTreeItemText<NODE extends DTreeNode = DTreeNode, THEME ext
|
|
|
44
44
|
protected _node?: NODE;
|
|
45
45
|
protected _index?: number;
|
|
46
46
|
constructor(data: DTreeData<NODE>, options?: OPTIONS);
|
|
47
|
+
protected newPadding(theme: THEME, options?: OPTIONS, callback?: () => void): DBasePaddingAdjustable;
|
|
47
48
|
get node(): NODE | undefined;
|
|
48
49
|
get value(): NODE | undefined;
|
|
49
50
|
get index(): number | undefined;
|
|
@@ -12,6 +12,9 @@ export declare class EShapeConnectorEdgeImpl implements EShapeConnectorEdge {
|
|
|
12
12
|
protected _parent: EShapeConnector;
|
|
13
13
|
protected _onChange: () => void;
|
|
14
14
|
protected _acceptor: EShapeConnectorEdgeAcceptor;
|
|
15
|
+
protected _acceptorTransformNew: Matrix;
|
|
16
|
+
protected _acceptorTransformOld: Matrix;
|
|
17
|
+
protected _hasAcceptorTransformOld: boolean;
|
|
15
18
|
protected _localIdRequired: number;
|
|
16
19
|
protected _localId: number;
|
|
17
20
|
protected _local: IPoint;
|
|
@@ -20,6 +23,7 @@ export declare class EShapeConnectorEdgeImpl implements EShapeConnectorEdge {
|
|
|
20
23
|
protected _normal: IPoint;
|
|
21
24
|
protected _side: EShapeAcceptorEdgeSide;
|
|
22
25
|
protected _margin: number;
|
|
26
|
+
protected _other: EShapeConnectorEdge | null;
|
|
23
27
|
protected _lockCount: number;
|
|
24
28
|
protected _isAcceptorChanged: boolean;
|
|
25
29
|
protected _isLocalChanged: boolean;
|
|
@@ -38,13 +42,15 @@ export declare class EShapeConnectorEdgeImpl implements EShapeConnectorEdge {
|
|
|
38
42
|
set side(side: EShapeAcceptorEdgeSide);
|
|
39
43
|
get margin(): number;
|
|
40
44
|
set margin(margin: number);
|
|
45
|
+
get other(): EShapeConnectorEdge | null;
|
|
46
|
+
set other(other: EShapeConnectorEdge | null);
|
|
41
47
|
set(acceptorShape?: EShape | null, acceptorEdge?: string | null, acceptorX?: number | null, acceptorY?: number | null, margin?: number, x?: number, y?: number, nx?: number, ny?: number, side?: EShapeAcceptorEdgeSide): this;
|
|
42
48
|
copy(source: EShapeConnectorEdge): this;
|
|
43
49
|
serialize(manager: EShapeResourceManagerSerialization): number;
|
|
44
50
|
deserialize(resourceId: number, mapping: EShapeUuidMapping, manager: EShapeResourceManagerDeserialization): void;
|
|
45
51
|
fit(forcibly?: boolean): this;
|
|
46
52
|
protected doFit(): boolean;
|
|
47
|
-
protected toAcceptorTransform(shape: EShape): Matrix;
|
|
53
|
+
protected toAcceptorTransform(shape: EShape, result: Matrix): Matrix;
|
|
48
54
|
onAcceptorChange(): void;
|
|
49
55
|
protected onLocalChange(): void;
|
|
50
56
|
protected onNormalChange(): void;
|
|
@@ -2,128 +2,67 @@
|
|
|
2
2
|
* Copyright (C) 2019 Toshiba Corporation
|
|
3
3
|
* SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
*/
|
|
5
|
+
import { __extends } from "tslib";
|
|
5
6
|
import { DBasePadding } from "./d-base-padding";
|
|
6
|
-
var DBasePaddingAdjustable = /** @class */ (function () {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
7
|
+
var DBasePaddingAdjustable = /** @class */ (function (_super) {
|
|
8
|
+
__extends(DBasePaddingAdjustable, _super);
|
|
9
|
+
function DBasePaddingAdjustable(theme, options, callback) {
|
|
10
|
+
var _this = _super.call(this, theme, options, callback) || this;
|
|
11
|
+
_this._atop = 0;
|
|
12
|
+
_this._aright = 0;
|
|
13
|
+
_this._abottom = 0;
|
|
14
|
+
_this._aleft = 0;
|
|
15
|
+
return _this;
|
|
16
16
|
}
|
|
17
|
-
DBasePaddingAdjustable.prototype.getTheme = function () {
|
|
18
|
-
return this._target.getTheme();
|
|
19
|
-
};
|
|
20
|
-
DBasePaddingAdjustable.prototype.setTheme = function (theme) {
|
|
21
|
-
this._target.setTheme(theme);
|
|
22
|
-
};
|
|
23
17
|
DBasePaddingAdjustable.prototype.getLeft = function () {
|
|
24
|
-
return
|
|
18
|
+
return _super.prototype.getLeft.call(this) + this._aleft;
|
|
25
19
|
};
|
|
26
|
-
DBasePaddingAdjustable.prototype.adjLeft = function (
|
|
27
|
-
if (this.
|
|
28
|
-
this.
|
|
20
|
+
DBasePaddingAdjustable.prototype.adjLeft = function (aleft) {
|
|
21
|
+
if (this._aleft !== aleft) {
|
|
22
|
+
this._aleft = aleft;
|
|
29
23
|
var callback = this._callback;
|
|
30
24
|
if (callback) {
|
|
31
25
|
callback();
|
|
32
26
|
}
|
|
33
27
|
}
|
|
34
28
|
};
|
|
35
|
-
Object.defineProperty(DBasePaddingAdjustable.prototype, "left", {
|
|
36
|
-
get: function () {
|
|
37
|
-
return this._target.left;
|
|
38
|
-
},
|
|
39
|
-
set: function (left) {
|
|
40
|
-
this._target.left = left;
|
|
41
|
-
},
|
|
42
|
-
enumerable: false,
|
|
43
|
-
configurable: true
|
|
44
|
-
});
|
|
45
29
|
DBasePaddingAdjustable.prototype.getTop = function () {
|
|
46
|
-
return
|
|
30
|
+
return _super.prototype.getTop.call(this) + this._atop;
|
|
47
31
|
};
|
|
48
|
-
DBasePaddingAdjustable.prototype.adjTop = function (
|
|
49
|
-
if (this.
|
|
50
|
-
this.
|
|
32
|
+
DBasePaddingAdjustable.prototype.adjTop = function (atop) {
|
|
33
|
+
if (this._atop !== atop) {
|
|
34
|
+
this._atop = atop;
|
|
51
35
|
var callback = this._callback;
|
|
52
36
|
if (callback) {
|
|
53
37
|
callback();
|
|
54
38
|
}
|
|
55
39
|
}
|
|
56
40
|
};
|
|
57
|
-
Object.defineProperty(DBasePaddingAdjustable.prototype, "top", {
|
|
58
|
-
get: function () {
|
|
59
|
-
return this._target.top;
|
|
60
|
-
},
|
|
61
|
-
set: function (top) {
|
|
62
|
-
this._target.top = top;
|
|
63
|
-
},
|
|
64
|
-
enumerable: false,
|
|
65
|
-
configurable: true
|
|
66
|
-
});
|
|
67
41
|
DBasePaddingAdjustable.prototype.getRight = function () {
|
|
68
|
-
return
|
|
42
|
+
return _super.prototype.getRight.call(this) + this._aright;
|
|
69
43
|
};
|
|
70
|
-
DBasePaddingAdjustable.prototype.adjRight = function (
|
|
71
|
-
if (this.
|
|
72
|
-
this.
|
|
44
|
+
DBasePaddingAdjustable.prototype.adjRight = function (aright) {
|
|
45
|
+
if (this._aright !== aright) {
|
|
46
|
+
this._aright = aright;
|
|
73
47
|
var callback = this._callback;
|
|
74
48
|
if (callback) {
|
|
75
49
|
callback();
|
|
76
50
|
}
|
|
77
51
|
}
|
|
78
52
|
};
|
|
79
|
-
Object.defineProperty(DBasePaddingAdjustable.prototype, "right", {
|
|
80
|
-
get: function () {
|
|
81
|
-
return this._target.right;
|
|
82
|
-
},
|
|
83
|
-
set: function (right) {
|
|
84
|
-
this._target.right = right;
|
|
85
|
-
},
|
|
86
|
-
enumerable: false,
|
|
87
|
-
configurable: true
|
|
88
|
-
});
|
|
89
53
|
DBasePaddingAdjustable.prototype.getBottom = function () {
|
|
90
|
-
return
|
|
54
|
+
return _super.prototype.getBottom.call(this) + this._abottom;
|
|
91
55
|
};
|
|
92
|
-
DBasePaddingAdjustable.prototype.adjBottom = function (
|
|
93
|
-
if (this.
|
|
94
|
-
this.
|
|
56
|
+
DBasePaddingAdjustable.prototype.adjBottom = function (abottom) {
|
|
57
|
+
if (this._abottom !== abottom) {
|
|
58
|
+
this._abottom = abottom;
|
|
95
59
|
var callback = this._callback;
|
|
96
60
|
if (callback) {
|
|
97
61
|
callback();
|
|
98
62
|
}
|
|
99
63
|
}
|
|
100
64
|
};
|
|
101
|
-
Object.defineProperty(DBasePaddingAdjustable.prototype, "bottom", {
|
|
102
|
-
get: function () {
|
|
103
|
-
return this._target.bottom;
|
|
104
|
-
},
|
|
105
|
-
set: function (bottom) {
|
|
106
|
-
this._target.bottom = bottom;
|
|
107
|
-
},
|
|
108
|
-
enumerable: false,
|
|
109
|
-
configurable: true
|
|
110
|
-
});
|
|
111
|
-
DBasePaddingAdjustable.prototype.set = function (top, right, bottom, left) {
|
|
112
|
-
var target = this._target;
|
|
113
|
-
if (right == null) {
|
|
114
|
-
target.set(top);
|
|
115
|
-
}
|
|
116
|
-
else if (bottom == null) {
|
|
117
|
-
target.set(top, right);
|
|
118
|
-
}
|
|
119
|
-
else if (left == null) {
|
|
120
|
-
target.set(top, right, bottom);
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
target.set(top, right, bottom, left);
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
65
|
return DBasePaddingAdjustable;
|
|
127
|
-
}());
|
|
66
|
+
}(DBasePadding));
|
|
128
67
|
export { DBasePaddingAdjustable };
|
|
129
68
|
//# sourceMappingURL=d-base-padding-adjustable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"d-base-padding-adjustable.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-base-padding-adjustable.ts"],"names":[],"mappings":"AAAA;;;GAGG
|
|
1
|
+
{"version":3,"file":"d-base-padding-adjustable.js","sourceRoot":"","sources":["../../../src/main/typescript/wcardinal/ui/d-base-padding-adjustable.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhD;IAA4C,0CAAY;IAMvD,gCAAY,KAAiB,EAAE,OAA2B,EAAE,QAAqB;QAAjF,YACC,kBAAM,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,SAK/B;QAJA,KAAI,CAAC,KAAK,GAAG,CAAC,CAAC;QACf,KAAI,CAAC,OAAO,GAAG,CAAC,CAAC;QACjB,KAAI,CAAC,QAAQ,GAAG,CAAC,CAAC;QAClB,KAAI,CAAC,MAAM,GAAG,CAAC,CAAC;;IACjB,CAAC;IAEQ,wCAAO,GAAhB;QACC,OAAO,iBAAM,OAAO,WAAE,GAAG,IAAI,CAAC,MAAM,CAAC;IACtC,CAAC;IAED,wCAAO,GAAP,UAAQ,KAAa;QACpB,IAAI,IAAI,CAAC,MAAM,KAAK,KAAK,EAAE;YAC1B,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;YACpB,IAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;YAChC,IAAI,QAAQ,EAAE;gBACb,QAAQ,EAAE,CAAC;aACX;SACD;IACF,CAAC;IAEQ,uCAAM,GAAf;QACC,OAAO,iBAAM,MAAM,WAAE,GAAG,IAAI,CAAC,KAAK,CAAC;IACpC,CAAC;IAED,uCAAM,GAAN,UAAO,IAAY;QAClB,IAAI,IAAI,CAAC,KAAK,KAAK,IAAI,EAAE;YACxB,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC;YAClB,IAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;YAChC,IAAI,QAAQ,EAAE;gBACb,QAAQ,EAAE,CAAC;aACX;SACD;IACF,CAAC;IAEQ,yCAAQ,GAAjB;QACC,OAAO,iBAAM,QAAQ,WAAE,GAAG,IAAI,CAAC,OAAO,CAAC;IACxC,CAAC;IAED,yCAAQ,GAAR,UAAS,MAAc;QACtB,IAAI,IAAI,CAAC,OAAO,KAAK,MAAM,EAAE;YAC5B,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC;YACtB,IAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;YAChC,IAAI,QAAQ,EAAE;gBACb,QAAQ,EAAE,CAAC;aACX;SACD;IACF,CAAC;IAEQ,0CAAS,GAAlB;QACC,OAAO,iBAAM,SAAS,WAAE,GAAG,IAAI,CAAC,QAAQ,CAAC;IAC1C,CAAC;IAED,0CAAS,GAAT,UAAU,OAAe;QACxB,IAAI,IAAI,CAAC,QAAQ,KAAK,OAAO,EAAE;YAC9B,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;YACxB,IAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC;YAChC,IAAI,QAAQ,EAAE;gBACb,QAAQ,EAAE,CAAC;aACX;SACD;IACF,CAAC;IACF,6BAAC;AAAD,CAAC,AArED,CAA4C,YAAY,GAqEvD","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DBaseOptions, DThemeBase } from \"./d-base\";\nimport { DBasePadding } from \"./d-base-padding\";\n\nexport class DBasePaddingAdjustable extends DBasePadding {\n\tprotected _atop: number;\n\tprotected _aright: number;\n\tprotected _abottom: number;\n\tprotected _aleft: number;\n\n\tconstructor(theme: DThemeBase, options?: DBaseOptions<any>, callback?: () => void) {\n\t\tsuper(theme, options, callback);\n\t\tthis._atop = 0;\n\t\tthis._aright = 0;\n\t\tthis._abottom = 0;\n\t\tthis._aleft = 0;\n\t}\n\n\toverride getLeft(): number {\n\t\treturn super.getLeft() + this._aleft;\n\t}\n\n\tadjLeft(aleft: number): void {\n\t\tif (this._aleft !== aleft) {\n\t\t\tthis._aleft = aleft;\n\t\t\tconst callback = this._callback;\n\t\t\tif (callback) {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t}\n\t}\n\n\toverride getTop(): number {\n\t\treturn super.getTop() + this._atop;\n\t}\n\n\tadjTop(atop: number): void {\n\t\tif (this._atop !== atop) {\n\t\t\tthis._atop = atop;\n\t\t\tconst callback = this._callback;\n\t\t\tif (callback) {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t}\n\t}\n\n\toverride getRight(): number {\n\t\treturn super.getRight() + this._aright;\n\t}\n\n\tadjRight(aright: number): void {\n\t\tif (this._aright !== aright) {\n\t\t\tthis._aright = aright;\n\t\t\tconst callback = this._callback;\n\t\t\tif (callback) {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t}\n\t}\n\n\toverride getBottom(): number {\n\t\treturn super.getBottom() + this._abottom;\n\t}\n\n\tadjBottom(abottom: number): void {\n\t\tif (this._abottom !== abottom) {\n\t\t\tthis._abottom = abottom;\n\t\t\tconst callback = this._callback;\n\t\t\tif (callback) {\n\t\t\t\tcallback();\n\t\t\t}\n\t\t}\n\t}\n}\n"]}
|
|
@@ -90,7 +90,8 @@ var DBase = /** @class */ (function (_super) {
|
|
|
90
90
|
_this._snippet = new DBaseSnippetContainer(_this);
|
|
91
91
|
_this._reflowable = new DBaseReflowableContainer();
|
|
92
92
|
_this._clearType = toEnum((_b = options === null || options === void 0 ? void 0 : options.clear) !== null && _b !== void 0 ? _b : theme.getClearType(), DLayoutClearType);
|
|
93
|
-
_this._padding =
|
|
93
|
+
_this._padding = _this.newPadding(theme, options, function () {
|
|
94
|
+
_this.toDirty();
|
|
94
95
|
_this.toParentResized();
|
|
95
96
|
_this.toHierarchyDirty();
|
|
96
97
|
DApplications.update(_this);
|
|
@@ -336,6 +337,9 @@ var DBase = /** @class */ (function (_super) {
|
|
|
336
337
|
_this.emit("init", _this);
|
|
337
338
|
return _this;
|
|
338
339
|
}
|
|
340
|
+
DBase.prototype.newPadding = function (theme, options, callback) {
|
|
341
|
+
return new DBasePadding(theme, options, callback);
|
|
342
|
+
};
|
|
339
343
|
DBase.prototype.toCursor = function (cursor, state) {
|
|
340
344
|
if (cursor) {
|
|
341
345
|
if (isFunction(cursor)) {
|