@talrace/ngx-noder 0.0.33 → 0.0.35
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/talrace-ngx-noder.mjs +181 -72
- package/fesm2022/talrace-ngx-noder.mjs.map +1 -1
- package/lib/editor/content/constants/display-values.const.d.ts +1 -0
- package/lib/editor/content/display-data/line-info.model.d.ts +1 -0
- package/lib/editor/content/display-data/text-line-info.d.ts +1 -0
- package/lib/editor/display/rendering.helper.d.ts +2 -1
- package/lib/editor/execution/editor.d.ts +3 -0
- package/lib/editor/interaction/touch.handler.d.ts +13 -0
- package/lib/editor/operations/helpers/content-operations.helper.d.ts +1 -0
- package/package.json +1 -1
|
@@ -11,7 +11,7 @@ export declare class RenderingHelper {
|
|
|
11
11
|
static renderContentSimpleLine(domContent: {
|
|
12
12
|
currentElement: HTMLElement;
|
|
13
13
|
parentNode: Node;
|
|
14
|
-
}, formatsExt: FormatExtModel[], rowDistance: DistanceModel, customContentService: CustomContentService, customComponents: ICustomComponents, breaks?: BreakModel[]): void;
|
|
14
|
+
}, formatsExt: FormatExtModel[], rowDistance: DistanceModel, customContentService: CustomContentService, customComponents: ICustomComponents, lineInfo: TextLineInfo, breaks?: BreakModel[]): void;
|
|
15
15
|
static renderContentWrappedLine(domContent: {
|
|
16
16
|
currentElement: HTMLElement;
|
|
17
17
|
parentNode: Node;
|
|
@@ -20,6 +20,7 @@ export declare class RenderingHelper {
|
|
|
20
20
|
static createDivContainer(className: string): HTMLDivElement;
|
|
21
21
|
private static renderFormatContent;
|
|
22
22
|
private static renderTextWithCustomContent;
|
|
23
|
+
private static renderTextWithSpacingHandling;
|
|
23
24
|
private static renderText;
|
|
24
25
|
private static getTextIndexLengthForInsert;
|
|
25
26
|
protected static attachComponent(fragment: DocumentFragment, component: ComponentRef<unknown>, customContentService: CustomContentService): void;
|
|
@@ -43,6 +43,7 @@ import { Selection } from '../positioning/selection';
|
|
|
43
43
|
import { SessionModel } from '../execution/targeting/session.model';
|
|
44
44
|
import { TargetModel } from '../../models/generated/target.model';
|
|
45
45
|
import { TextStyleModel } from '../../models/generated/text-style.model';
|
|
46
|
+
import { TouchHandler } from '../interaction/touch.handler';
|
|
46
47
|
import { VirtualRenderer } from '../display/virtual.renderer';
|
|
47
48
|
export declare class Editor {
|
|
48
49
|
private model;
|
|
@@ -68,6 +69,7 @@ export declare class Editor {
|
|
|
68
69
|
get targets(): TargetModel[];
|
|
69
70
|
selection: Selection;
|
|
70
71
|
mouseHandler: MouseHandler;
|
|
72
|
+
touchHandler: TouchHandler;
|
|
71
73
|
inputHandler: InputHandler;
|
|
72
74
|
documentHandler: DocumentHandler;
|
|
73
75
|
dragAndDrop: DragAndDrop;
|
|
@@ -161,6 +163,7 @@ export declare class Editor {
|
|
|
161
163
|
onTripleClick(event: MouseEvent): void;
|
|
162
164
|
onQuadClick(event: MouseEvent): void;
|
|
163
165
|
onMouseWheel(event: WheelEvent): void;
|
|
166
|
+
onScroll(deltaY: number): void;
|
|
164
167
|
onDragStart(): void;
|
|
165
168
|
onDragMove(event: MouseEvent): void;
|
|
166
169
|
onDragDrop(sourceSession: SessionModel, sourceRange: Range): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Editor } from '../../editor/execution/editor';
|
|
2
|
+
export declare class TouchHandler {
|
|
3
|
+
private editor;
|
|
4
|
+
private touchStart$;
|
|
5
|
+
private touchMove$;
|
|
6
|
+
private touchEnd$;
|
|
7
|
+
private lastY?;
|
|
8
|
+
constructor(container: Node, editor: Editor);
|
|
9
|
+
destroy(): void;
|
|
10
|
+
private onTouchStart;
|
|
11
|
+
private onTouchMove;
|
|
12
|
+
private endTouch;
|
|
13
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare class ContentOperationsHelper {
|
|
2
2
|
static removeContent(content: string, startIndex: number, count: number): string;
|
|
3
|
+
static sliceContent(content: string, startIndex: number, count: number): string;
|
|
3
4
|
static insertContent(content: string, text: string, index: number): string;
|
|
4
5
|
static replaceContent(content: string, startIndex: number, endIndex: number, text: string): string;
|
|
5
6
|
}
|