@hailin-zheng/editor-core 2.2.37 → 2.2.39

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.
@@ -278,6 +278,11 @@ export declare class DocumentChange {
278
278
  * @private
279
279
  */
280
280
  private handlePasteContent;
281
+ /**
282
+ * 整理数据:如果复制的数据包含留痕,需要把留痕的块替换为里面的文本内容
283
+ * @param eles
284
+ */
285
+ cleanTrackRun(eles: Array<Element> | Element): void;
281
286
  /**
282
287
  * 处理表单模式下的粘贴事件
283
288
  * @param data 要粘贴的元素
@@ -308,6 +308,7 @@ export declare class ViewOptions {
308
308
  enableVisibleExpression: boolean;
309
309
  shapeRendering: string;
310
310
  enableFastMeasure: boolean;
311
+ dataGroupDblClickMode: 'default' | 'selectall';
311
312
  get fullPageView(): boolean;
312
313
  set fullPageView(value: boolean);
313
314
  mmToPixelsRatio: number;
@@ -3,7 +3,7 @@ import { LeafRenderObject, RenderObject } from "./render-define";
3
3
  import { EditorContext } from "./document-context";
4
4
  import { type TrackRunTypeEnum } from "./impl";
5
5
  export declare type EventStage = 'All' | 'Capture' | 'Bubbling';
6
- export declare type EventTypes = 'ElementMousedown' | 'ElementMousemove' | 'ElementClick' | 'ElementDblClick' | 'ElementMouseEnter' | 'ElementMouseLeave' | 'BackspaceKey' | 'DeleteKey' | 'ElementShown' | 'ElementContextMenu' | 'GotCursor' | 'LostCursor' | 'ElementKeyDown' | 'ElementDrop' | 'ElementTabKey' | 'GetTrackTips' | 'ElementInput' | 'ElementCopy' | 'ElementPaste';
6
+ export declare type EventTypes = 'ElementMousedown' | 'ElementMousemove' | 'ElementClick' | 'ElementDblClick' | 'ElementMouseEnter' | 'ElementMouseLeave' | 'BackspaceKey' | 'DeleteKey' | 'ElementShown' | 'ElementContextMenu' | 'GotCursor' | 'LostCursor' | 'ElementKeyDown' | 'ElementDrop' | 'ElementTabKey' | 'GetTrackTips' | 'ElementInput' | 'ElementCopy' | 'ElementPaste' | 'ElementCut';
7
7
  export declare type HitRegion = 'header' | 'body' | 'footer' | 'review';
8
8
  export interface HitEventInfo {
9
9
  relativeRect: Rect;
@@ -6,9 +6,12 @@ export declare class ElementSerialize {
6
6
  * @param element
7
7
  * @param viewOptions
8
8
  */
9
- static serialize(element: Element, viewOptions: ViewOptions): SerializeProps | null;
9
+ static serialize(element: Element, viewOptions: ViewOptions, serializeOptions?: {
10
+ excludeDel?: boolean;
11
+ }): SerializeProps | null;
10
12
  static serializeString(element: Element, options?: {
11
- includeRunDel: boolean;
13
+ includeRunDel?: boolean;
14
+ dataEleValueMode?: 'text' | 'value';
12
15
  }): string;
13
16
  static serializeObject(obj: object | undefined | null): any;
14
17
  /**
@@ -18,6 +18,19 @@ export declare abstract class RenderObject<T extends Element = Element> {
18
18
  getIndex(): number;
19
19
  exportSVG(event: IEditorVNodeOptions): any;
20
20
  }
21
+ export declare type IHLNode = {
22
+ sel: string;
23
+ data?: {
24
+ ns?: string;
25
+ attrs?: {
26
+ [key: string]: any;
27
+ };
28
+ };
29
+ text?: string;
30
+ children?: Array<IHLNode>;
31
+ };
32
+ export declare const NS = "http://www.w3.org/2000/svg";
33
+ export declare function HLNode(sel: string, attrs: object | undefined, child?: Array<IHLNode> | string): IHLNode;
21
34
  export declare type ElementExportTypes = 'svg';
22
35
  /**
23
36
  * 叶子节点渲染元素
@@ -17,6 +17,7 @@ export declare class EditorCalendarVNode {
17
17
  selectedTime: ISignal<string | null>;
18
18
  constructor(viewOptions: ViewOptions);
19
19
  reset(): void;
20
+ clear(): void;
20
21
  render(position: Omit<Rect, 'width'>, dataValue: string, format?: string): EditorVNodeObject | null;
21
22
  private renderDropContainer;
22
23
  private resizePosition;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "hailin-zheng",
5
5
  "private": false,
6
6
  "license": "ISC",
7
- "version": "2.2.37",
7
+ "version": "2.2.39",
8
8
  "scripts": {},
9
9
  "dependencies": {
10
10
  "moment": "^2.29.3",