@vscode/markdown-editor 0.0.2-131 → 0.0.2-133
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/README.md +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/web-editors.d.ts +3 -0
- package/dist/web-editors.js +5 -3
- package/dist/web-editors.js.map +1 -1
- package/package.json +2 -2
package/dist/web-editors.d.ts
CHANGED
|
@@ -72,6 +72,8 @@ declare interface IEmbeddedCodeEditorFactory {
|
|
|
72
72
|
* back to the default (highlighting / {@link BlockViewOptions.renderCustomCodeBlock}).
|
|
73
73
|
*/
|
|
74
74
|
create(language: string, infoString: string, initialContent: string): IEmbeddedCodeEditor | undefined;
|
|
75
|
+
/** Reposition overlays after the document's layout has been measured. */
|
|
76
|
+
layout?(): void;
|
|
75
77
|
}
|
|
76
78
|
|
|
77
79
|
export declare type IframeEditorPresentationMode = 'inline' | 'full-width' | 'full-view';
|
|
@@ -333,6 +335,7 @@ export declare class VirtualizedIframeEmbeddedEditorFactory implements IEmbedded
|
|
|
333
335
|
private _ensureFrameRoot;
|
|
334
336
|
private _setFrameRoot;
|
|
335
337
|
private readonly _scheduleLayout;
|
|
338
|
+
layout(): void;
|
|
336
339
|
private _disposePools;
|
|
337
340
|
}
|
|
338
341
|
|
package/dist/web-editors.js
CHANGED
|
@@ -7126,11 +7126,13 @@ class Wl {
|
|
|
7126
7126
|
}
|
|
7127
7127
|
_scheduleLayout = () => {
|
|
7128
7128
|
this._layoutFrame || (this._layoutFrame = requestAnimationFrame(() => {
|
|
7129
|
-
this._layoutFrame = 0;
|
|
7130
|
-
for (const e of this._pools.values())
|
|
7131
|
-
e.layout();
|
|
7129
|
+
this._layoutFrame = 0, this.layout();
|
|
7132
7130
|
}));
|
|
7133
7131
|
};
|
|
7132
|
+
layout() {
|
|
7133
|
+
for (const e of this._pools.values())
|
|
7134
|
+
e.layout();
|
|
7135
|
+
}
|
|
7134
7136
|
_disposePools() {
|
|
7135
7137
|
for (const e of this._pools.values())
|
|
7136
7138
|
e.dispose();
|