dockview-core 5.0.0 → 5.1.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/cjs/overlay/overlayRenderContainer.js +8 -0
- package/dist/dockview-core.js +9 -1
- package/dist/dockview-core.min.js +2 -2
- package/dist/dockview-core.min.js.map +1 -1
- package/dist/dockview-core.min.noStyle.js +2 -2
- package/dist/dockview-core.min.noStyle.js.map +1 -1
- package/dist/dockview-core.noStyle.js +9 -1
- package/dist/esm/overlay/overlayRenderContainer.js +8 -0
- package/dist/package/main.cjs.js +9 -1
- package/dist/package/main.cjs.min.js +2 -2
- package/dist/package/main.esm.min.mjs +2 -2
- package/dist/package/main.esm.mjs +9 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview-core
|
|
3
|
-
* @version 5.
|
|
3
|
+
* @version 5.1.0
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -8103,6 +8103,9 @@
|
|
|
8103
8103
|
if (!this.map[panel.api.id]) {
|
|
8104
8104
|
const element = createFocusableElement();
|
|
8105
8105
|
element.className = 'dv-render-overlay';
|
|
8106
|
+
// Hide until the first RAF-based position is applied to prevent a
|
|
8107
|
+
// one-frame flash at position 0,0 when the element is first attached.
|
|
8108
|
+
element.style.visibility = 'hidden';
|
|
8106
8109
|
this.map[panel.api.id] = {
|
|
8107
8110
|
panel,
|
|
8108
8111
|
disposable: exports.DockviewDisposable.NONE,
|
|
@@ -8139,6 +8142,11 @@
|
|
|
8139
8142
|
focusContainer.style.top = `${top}px`;
|
|
8140
8143
|
focusContainer.style.width = `${width}px`;
|
|
8141
8144
|
focusContainer.style.height = `${height}px`;
|
|
8145
|
+
// Reveal after the first position is applied (was hidden to
|
|
8146
|
+
// prevent a flash at 0,0 before the initial layout fires).
|
|
8147
|
+
if (focusContainer.style.visibility === 'hidden') {
|
|
8148
|
+
focusContainer.style.visibility = '';
|
|
8149
|
+
}
|
|
8142
8150
|
toggleClass(focusContainer, 'dv-render-overlay-float', panel.group.api.location.type === 'floating');
|
|
8143
8151
|
});
|
|
8144
8152
|
};
|
|
@@ -79,6 +79,9 @@ export class OverlayRenderContainer extends CompositeDisposable {
|
|
|
79
79
|
if (!this.map[panel.api.id]) {
|
|
80
80
|
const element = createFocusableElement();
|
|
81
81
|
element.className = 'dv-render-overlay';
|
|
82
|
+
// Hide until the first RAF-based position is applied to prevent a
|
|
83
|
+
// one-frame flash at position 0,0 when the element is first attached.
|
|
84
|
+
element.style.visibility = 'hidden';
|
|
82
85
|
this.map[panel.api.id] = {
|
|
83
86
|
panel,
|
|
84
87
|
disposable: Disposable.NONE,
|
|
@@ -115,6 +118,11 @@ export class OverlayRenderContainer extends CompositeDisposable {
|
|
|
115
118
|
focusContainer.style.top = `${top}px`;
|
|
116
119
|
focusContainer.style.width = `${width}px`;
|
|
117
120
|
focusContainer.style.height = `${height}px`;
|
|
121
|
+
// Reveal after the first position is applied (was hidden to
|
|
122
|
+
// prevent a flash at 0,0 before the initial layout fires).
|
|
123
|
+
if (focusContainer.style.visibility === 'hidden') {
|
|
124
|
+
focusContainer.style.visibility = '';
|
|
125
|
+
}
|
|
118
126
|
toggleClass(focusContainer, 'dv-render-overlay-float', panel.group.api.location.type === 'floating');
|
|
119
127
|
});
|
|
120
128
|
};
|
package/dist/package/main.cjs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* dockview-core
|
|
3
|
-
* @version 5.
|
|
3
|
+
* @version 5.1.0
|
|
4
4
|
* @link https://github.com/mathuo/dockview
|
|
5
5
|
* @license MIT
|
|
6
6
|
*/
|
|
@@ -8129,6 +8129,9 @@ class OverlayRenderContainer extends CompositeDisposable {
|
|
|
8129
8129
|
if (!this.map[panel.api.id]) {
|
|
8130
8130
|
const element = createFocusableElement();
|
|
8131
8131
|
element.className = 'dv-render-overlay';
|
|
8132
|
+
// Hide until the first RAF-based position is applied to prevent a
|
|
8133
|
+
// one-frame flash at position 0,0 when the element is first attached.
|
|
8134
|
+
element.style.visibility = 'hidden';
|
|
8132
8135
|
this.map[panel.api.id] = {
|
|
8133
8136
|
panel,
|
|
8134
8137
|
disposable: exports.DockviewDisposable.NONE,
|
|
@@ -8165,6 +8168,11 @@ class OverlayRenderContainer extends CompositeDisposable {
|
|
|
8165
8168
|
focusContainer.style.top = `${top}px`;
|
|
8166
8169
|
focusContainer.style.width = `${width}px`;
|
|
8167
8170
|
focusContainer.style.height = `${height}px`;
|
|
8171
|
+
// Reveal after the first position is applied (was hidden to
|
|
8172
|
+
// prevent a flash at 0,0 before the initial layout fires).
|
|
8173
|
+
if (focusContainer.style.visibility === 'hidden') {
|
|
8174
|
+
focusContainer.style.visibility = '';
|
|
8175
|
+
}
|
|
8168
8176
|
toggleClass(focusContainer, 'dv-render-overlay-float', panel.group.api.location.type === 'floating');
|
|
8169
8177
|
});
|
|
8170
8178
|
};
|