slate-angular 20.2.0-next.11 → 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 +363 -83
- package/fesm2022/slate-angular.mjs.map +1 -1
- package/index.d.ts +12 -12
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -103,6 +103,7 @@ type OriginEvent = 'drag' | 'copy' | 'cut';
|
|
|
103
103
|
interface AngularEditor extends CustomDOMEditor {
|
|
104
104
|
deleteCutData: () => void;
|
|
105
105
|
selectAll: () => void;
|
|
106
|
+
isVisible: (element: Element$1) => boolean;
|
|
106
107
|
onKeydown: (event: KeyboardEvent) => void;
|
|
107
108
|
onClick: (event: MouseEvent) => void;
|
|
108
109
|
injector: Injector;
|
|
@@ -323,7 +324,7 @@ interface SlateVirtualScrollConfig {
|
|
|
323
324
|
bufferCount?: number;
|
|
324
325
|
}
|
|
325
326
|
interface VirtualViewResult {
|
|
326
|
-
|
|
327
|
+
inViewportChildren: Element$1[];
|
|
327
328
|
visibleIndexes: Set<number>;
|
|
328
329
|
top: number;
|
|
329
330
|
bottom: number;
|
|
@@ -389,10 +390,10 @@ declare class SlateEditable implements OnInit, OnChanges, OnDestroy, AfterViewCh
|
|
|
389
390
|
getOutletParent: () => any;
|
|
390
391
|
getOutletElement: () => HTMLElement;
|
|
391
392
|
listRender: ListRender;
|
|
392
|
-
private
|
|
393
|
-
private
|
|
394
|
-
private
|
|
395
|
-
private
|
|
393
|
+
private virtualScrollConfig;
|
|
394
|
+
private inViewportChildren;
|
|
395
|
+
private inViewportIndics;
|
|
396
|
+
private keyHeightMap;
|
|
396
397
|
private refreshVirtualViewAnimId;
|
|
397
398
|
private measureVisibleHeightsAnimId;
|
|
398
399
|
private editorResizeObserver?;
|
|
@@ -414,20 +415,19 @@ declare class SlateEditable implements OnInit, OnChanges, OnDestroy, AfterViewCh
|
|
|
414
415
|
initializeViewContext(): void;
|
|
415
416
|
composePlaceholderDecorate(editor: Editor): SlatePlaceholder[];
|
|
416
417
|
generateDecorations(): slate.BaseRange[];
|
|
417
|
-
private
|
|
418
|
+
private isEnabledVirtualScroll;
|
|
418
419
|
private businessHeight;
|
|
419
420
|
virtualScrollInitialized: boolean;
|
|
420
421
|
virtualTopHeightElement: HTMLElement;
|
|
421
422
|
virtualBottomHeightElement: HTMLElement;
|
|
422
423
|
virtualCenterOutlet: HTMLElement;
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
changeVirtualHeight(topHeight: number, bottomHeight: number): void;
|
|
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