slate-angular 20.2.0-next.23 → 20.2.0-next.24
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/fesm2022/slate-angular.mjs +93 -55
- package/fesm2022/slate-angular.mjs.map +1 -1
- package/index.d.ts +10 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -311,9 +311,10 @@ declare class ListRender {
|
|
|
311
311
|
private viewTypes;
|
|
312
312
|
private differ;
|
|
313
313
|
initialized: boolean;
|
|
314
|
+
private preRenderingHTMLElement;
|
|
314
315
|
constructor(viewContext: SlateViewContext, viewContainerRef: ViewContainerRef, getOutletParent: () => HTMLElement, getOutletElement: () => HTMLElement | null);
|
|
315
|
-
initialize(children: Descendant[], parent: Ancestor, childrenContext: SlateChildrenContext): void;
|
|
316
|
-
update(children: Descendant[], parent: Ancestor, childrenContext: SlateChildrenContext): void;
|
|
316
|
+
initialize(children: Descendant[], parent: Ancestor, childrenContext: SlateChildrenContext, preRenderingCount?: number): void;
|
|
317
|
+
update(children: Descendant[], parent: Ancestor, childrenContext: SlateChildrenContext, preRenderingCount?: number): void;
|
|
317
318
|
destroy(): void;
|
|
318
319
|
}
|
|
319
320
|
|
|
@@ -327,7 +328,7 @@ interface SlateVirtualScrollConfig {
|
|
|
327
328
|
}
|
|
328
329
|
interface VirtualViewResult {
|
|
329
330
|
inViewportChildren: Element$1[];
|
|
330
|
-
visibleIndexes:
|
|
331
|
+
visibleIndexes: number[];
|
|
331
332
|
top: number;
|
|
332
333
|
bottom: number;
|
|
333
334
|
heights: number[];
|
|
@@ -423,8 +424,13 @@ declare class SlateEditable implements OnInit, OnChanges, OnDestroy, AfterViewCh
|
|
|
423
424
|
virtualBottomHeightElement: HTMLElement;
|
|
424
425
|
virtualCenterOutlet: HTMLElement;
|
|
425
426
|
initializeVirtualScroll(): void;
|
|
426
|
-
setVirtualSpaceHeight(topHeight: number, bottomHeight
|
|
427
|
+
setVirtualSpaceHeight(topHeight: number, bottomHeight?: number): void;
|
|
428
|
+
getVirtualTopHeight(): number;
|
|
427
429
|
private debugLog;
|
|
430
|
+
handlePreRendering(): {
|
|
431
|
+
preRenderingCount: number;
|
|
432
|
+
childrenWithPreRendering: slate.BaseElement[];
|
|
433
|
+
};
|
|
428
434
|
private tryUpdateVirtualViewport;
|
|
429
435
|
private calculateVirtualViewport;
|
|
430
436
|
private applyVirtualView;
|
package/package.json
CHANGED