dockview-core 8.5.0 → 8.5.1
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/cjs/dockview/dockviewShell.d.ts +3 -0
- package/dist/dockview-core.js +9 -4
- package/dist/dockview-core.min.js +146 -2
- package/dist/dockview-core.min.noStyle.js +2 -2
- package/dist/dockview-core.noStyle.js +8 -3
- package/dist/package/main.cjs.js +8 -3
- package/dist/package/main.cjs.min.js +2 -2
- package/dist/package/main.esm.min.mjs +2 -2
- package/dist/package/main.esm.mjs +8 -3
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview-core
|
|
3
|
-
* @version 8.5.
|
|
3
|
+
* @version 8.5.1
|
|
4
4
|
* @link https://github.com/dockview/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -15145,9 +15145,14 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
15145
15145
|
get isCollapsed() {
|
|
15146
15146
|
return this._isCollapsed;
|
|
15147
15147
|
}
|
|
15148
|
+
/** Includes the gap share, as expanding restores a slot size. */
|
|
15148
15149
|
get lastExpandedSize() {
|
|
15149
15150
|
return this._lastExpandedSize;
|
|
15150
15151
|
}
|
|
15152
|
+
/** Without the gap share. */
|
|
15153
|
+
get lastExpandedContentSize() {
|
|
15154
|
+
return this._lastExpandedSize - this._gapAdd;
|
|
15155
|
+
}
|
|
15151
15156
|
get collapsedSize() {
|
|
15152
15157
|
return this._effectiveBaseCollapsed + this._gapAdd;
|
|
15153
15158
|
}
|
|
@@ -15211,7 +15216,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
15211
15216
|
if (this._isCollapsed) this._onDidChange.fire({ size: this.collapsedSize });
|
|
15212
15217
|
}
|
|
15213
15218
|
layout(size, orthogonalSize) {
|
|
15214
|
-
if (!this._isCollapsed) this._lastExpandedSize = size;
|
|
15219
|
+
if (!this._isCollapsed) this._lastExpandedSize = size + this._gapAdd;
|
|
15215
15220
|
if (this._orientation === "horizontal") this._group.layout(size, orthogonalSize);
|
|
15216
15221
|
else this._group.layout(orthogonalSize, size);
|
|
15217
15222
|
}
|
|
@@ -15642,7 +15647,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
15642
15647
|
* the auto-hide peek overlay. */
|
|
15643
15648
|
getEdgeGroupExpandedSize(position) {
|
|
15644
15649
|
var _this$_getView$lastEx, _this$_getView2;
|
|
15645
|
-
return (_this$_getView$lastEx = (_this$_getView2 = this._getView(position)) === null || _this$_getView2 === void 0 ? void 0 : _this$_getView2.
|
|
15650
|
+
return (_this$_getView$lastEx = (_this$_getView2 = this._getView(position)) === null || _this$_getView2 === void 0 ? void 0 : _this$_getView2.lastExpandedContentSize) !== null && _this$_getView$lastEx !== void 0 ? _this$_getView$lastEx : 0;
|
|
15646
15651
|
}
|
|
15647
15652
|
_getView(position) {
|
|
15648
15653
|
switch (position) {
|
package/dist/package/main.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview-core
|
|
3
|
-
* @version 8.5.
|
|
3
|
+
* @version 8.5.1
|
|
4
4
|
* @link https://github.com/dockview/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -15140,9 +15140,14 @@ var EdgeGroupView = class {
|
|
|
15140
15140
|
get isCollapsed() {
|
|
15141
15141
|
return this._isCollapsed;
|
|
15142
15142
|
}
|
|
15143
|
+
/** Includes the gap share, as expanding restores a slot size. */
|
|
15143
15144
|
get lastExpandedSize() {
|
|
15144
15145
|
return this._lastExpandedSize;
|
|
15145
15146
|
}
|
|
15147
|
+
/** Without the gap share. */
|
|
15148
|
+
get lastExpandedContentSize() {
|
|
15149
|
+
return this._lastExpandedSize - this._gapAdd;
|
|
15150
|
+
}
|
|
15146
15151
|
get collapsedSize() {
|
|
15147
15152
|
return this._effectiveBaseCollapsed + this._gapAdd;
|
|
15148
15153
|
}
|
|
@@ -15206,7 +15211,7 @@ var EdgeGroupView = class {
|
|
|
15206
15211
|
if (this._isCollapsed) this._onDidChange.fire({ size: this.collapsedSize });
|
|
15207
15212
|
}
|
|
15208
15213
|
layout(size, orthogonalSize) {
|
|
15209
|
-
if (!this._isCollapsed) this._lastExpandedSize = size;
|
|
15214
|
+
if (!this._isCollapsed) this._lastExpandedSize = size + this._gapAdd;
|
|
15210
15215
|
if (this._orientation === "horizontal") this._group.layout(size, orthogonalSize);
|
|
15211
15216
|
else this._group.layout(orthogonalSize, size);
|
|
15212
15217
|
}
|
|
@@ -15637,7 +15642,7 @@ var ShellManager = class {
|
|
|
15637
15642
|
* the auto-hide peek overlay. */
|
|
15638
15643
|
getEdgeGroupExpandedSize(position) {
|
|
15639
15644
|
var _this$_getView$lastEx, _this$_getView2;
|
|
15640
|
-
return (_this$_getView$lastEx = (_this$_getView2 = this._getView(position)) === null || _this$_getView2 === void 0 ? void 0 : _this$_getView2.
|
|
15645
|
+
return (_this$_getView$lastEx = (_this$_getView2 = this._getView(position)) === null || _this$_getView2 === void 0 ? void 0 : _this$_getView2.lastExpandedContentSize) !== null && _this$_getView$lastEx !== void 0 ? _this$_getView$lastEx : 0;
|
|
15641
15646
|
}
|
|
15642
15647
|
_getView(position) {
|
|
15643
15648
|
switch (position) {
|