slate-angular 20.2.0 → 20.2.2
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 +111 -43
- package/fesm2022/slate-angular.mjs.map +1 -1
- package/index.d.ts +6 -3
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -313,8 +313,8 @@ declare class ListRender {
|
|
|
313
313
|
initialized: boolean;
|
|
314
314
|
private preRenderingHTMLElement;
|
|
315
315
|
constructor(viewContext: SlateViewContext, viewContainerRef: ViewContainerRef, getOutletParent: () => HTMLElement, getOutletElement: () => HTMLElement | null);
|
|
316
|
-
initialize(children: Descendant[], parent: Ancestor, childrenContext: SlateChildrenContext, preRenderingCount?: number): void;
|
|
317
|
-
update(children: Descendant[], parent: Ancestor, childrenContext: SlateChildrenContext, preRenderingCount?: number): void;
|
|
316
|
+
initialize(children: Descendant[], parent: Ancestor, childrenContext: SlateChildrenContext, preRenderingCount?: number, childrenIndics?: number[]): void;
|
|
317
|
+
update(children: Descendant[], parent: Ancestor, childrenContext: SlateChildrenContext, preRenderingCount?: number, childrenIndics?: number[]): void;
|
|
318
318
|
destroy(): void;
|
|
319
319
|
}
|
|
320
320
|
|
|
@@ -405,6 +405,7 @@ declare class SlateEditable implements OnInit, OnChanges, OnDestroy, AfterViewCh
|
|
|
405
405
|
writeValue(value: Element$1[]): void;
|
|
406
406
|
initialize(): void;
|
|
407
407
|
calculateVirtualScrollSelection(selection: Selection$1): slate.BaseRange;
|
|
408
|
+
private isSelectionInvisible;
|
|
408
409
|
toNativeSelection(autoScroll?: boolean): void;
|
|
409
410
|
onChange(): void;
|
|
410
411
|
ngAfterViewChecked(): void;
|
|
@@ -428,6 +429,7 @@ declare class SlateEditable implements OnInit, OnChanges, OnDestroy, AfterViewCh
|
|
|
428
429
|
handlePreRendering(): {
|
|
429
430
|
preRenderingCount: number;
|
|
430
431
|
childrenWithPreRendering: slate.BaseElement[];
|
|
432
|
+
childrenWithPreRenderingIndics: number[];
|
|
431
433
|
};
|
|
432
434
|
private tryUpdateVirtualViewport;
|
|
433
435
|
private calculateVirtualViewport;
|
|
@@ -838,10 +840,11 @@ declare const debugLog: (type: "log" | "warn", ...args: any[]) => void;
|
|
|
838
840
|
declare const measureHeightByElement: (editor: AngularEditor, element: Element$1) => number;
|
|
839
841
|
declare const measureHeightByIndics: (editor: AngularEditor, indics: number[], force?: boolean) => boolean;
|
|
840
842
|
declare const getBusinessTop: (editor: AngularEditor) => number;
|
|
841
|
-
declare const getRealHeightByElement: (editor: AngularEditor, element: Element$1, defaultHeight?: number) => number;
|
|
843
|
+
declare const getRealHeightByElement: (editor: AngularEditor, element: Element$1, defaultHeight?: number, isVisible?: boolean) => number;
|
|
842
844
|
declare const buildHeightsAndAccumulatedHeights: (editor: AngularEditor) => {
|
|
843
845
|
heights: any[];
|
|
844
846
|
accumulatedHeights: any[];
|
|
847
|
+
visibleStates: any[];
|
|
845
848
|
};
|
|
846
849
|
declare const calculateVirtualTopHeight: (editor: AngularEditor, startIndex: number) => any;
|
|
847
850
|
declare const scrollToElement: (editor: AngularEditor, element: Element$1, scrollTo: (scrollTop: number) => void) => void;
|
package/package.json
CHANGED