slate-angular 20.2.0-next.12 → 20.2.0-next.13
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 +53 -53
- package/fesm2022/slate-angular.mjs.map +1 -1
- package/index.d.ts +11 -11
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -324,7 +324,7 @@ interface SlateVirtualScrollConfig {
|
|
|
324
324
|
bufferCount?: number;
|
|
325
325
|
}
|
|
326
326
|
interface VirtualViewResult {
|
|
327
|
-
|
|
327
|
+
inViewportChildren: Element$1[];
|
|
328
328
|
visibleIndexes: Set<number>;
|
|
329
329
|
top: number;
|
|
330
330
|
bottom: number;
|
|
@@ -390,10 +390,10 @@ declare class SlateEditable implements OnInit, OnChanges, OnDestroy, AfterViewCh
|
|
|
390
390
|
getOutletParent: () => any;
|
|
391
391
|
getOutletElement: () => HTMLElement;
|
|
392
392
|
listRender: ListRender;
|
|
393
|
-
private
|
|
394
|
-
private
|
|
395
|
-
private
|
|
396
|
-
private
|
|
393
|
+
private virtualScrollConfig;
|
|
394
|
+
private inViewportChildren;
|
|
395
|
+
private inViewportIndics;
|
|
396
|
+
private keyHeightMap;
|
|
397
397
|
private refreshVirtualViewAnimId;
|
|
398
398
|
private measureVisibleHeightsAnimId;
|
|
399
399
|
private editorResizeObserver?;
|
|
@@ -415,19 +415,19 @@ declare class SlateEditable implements OnInit, OnChanges, OnDestroy, AfterViewCh
|
|
|
415
415
|
initializeViewContext(): void;
|
|
416
416
|
composePlaceholderDecorate(editor: Editor): SlatePlaceholder[];
|
|
417
417
|
generateDecorations(): slate.BaseRange[];
|
|
418
|
-
private
|
|
418
|
+
private isEnabledVirtualScroll;
|
|
419
419
|
private businessHeight;
|
|
420
420
|
virtualScrollInitialized: boolean;
|
|
421
421
|
virtualTopHeightElement: HTMLElement;
|
|
422
422
|
virtualBottomHeightElement: HTMLElement;
|
|
423
423
|
virtualCenterOutlet: HTMLElement;
|
|
424
|
-
|
|
425
|
-
|
|
424
|
+
initializeVirtualScroll(): void;
|
|
425
|
+
setVirtualSpaceHeight(topHeight: number, bottomHeight: number): void;
|
|
426
426
|
private debugLog;
|
|
427
|
-
private
|
|
428
|
-
private
|
|
427
|
+
private tryUpdateVirtualViewport;
|
|
428
|
+
private calculateVirtualViewport;
|
|
429
429
|
private applyVirtualView;
|
|
430
|
-
private
|
|
430
|
+
private diffVirtualViewport;
|
|
431
431
|
private getBlockHeight;
|
|
432
432
|
private buildAccumulatedHeight;
|
|
433
433
|
private scheduleMeasureVisibleHeights;
|
package/package.json
CHANGED