@hailin-zheng/editor-core 2.2.21 → 2.2.23
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.
| @@ -11,7 +11,9 @@ export declare class DynamicExecute { | |
| 11 11 | 
             
                setCurrentCtx(ele: Element, depItems: Map<string, RefCtxValue>): void;
         | 
| 12 12 | 
             
                clearCurrentCtx(): void;
         | 
| 13 13 | 
             
                cacheList: ReturnType<DocumentContext['getDataElementModelList']>;
         | 
| 14 | 
            -
                getControlById(id: string | 
| 14 | 
            +
                getControlById(id: string, options?: {
         | 
| 15 | 
            +
                    includeChildren: boolean;
         | 
| 16 | 
            +
                }): DataCheckEleModel | DataInputEleModel | DataLeafEleModel | undefined;
         | 
| 15 17 | 
             
                getObject(id: string): RefCtxValue;
         | 
| 16 18 | 
             
                AVG(fn: () => Array<number | string>): number;
         | 
| 17 19 | 
             
                SUM(fn: () => Array<number | string | Array<string>>): number;
         | 
| @@ -11,10 +11,6 @@ import { TextGroupElement, TextGroupRenderObject } from "../impl/text/text-impl" | |
| 11 11 | 
             
            import { TrackRunElement, TrackRunTypeEnum } from "../impl/text/track-run-impl";
         | 
| 12 12 | 
             
            import { BlockContainerRenderObject, BlockContentRenderObject, BorderType, BranchRenderObject, CursorType, InlineGroupRenderObject, LeafRenderObject, RenderObject } from "../render-define";
         | 
| 13 13 | 
             
            import { DataElementGroupElement } from "../impl";
         | 
| 14 | 
            -
            declare type PAIR = {
         | 
| 15 | 
            -
                x: number;
         | 
| 16 | 
            -
                y: number;
         | 
| 17 | 
            -
            };
         | 
| 18 14 | 
             
            export declare class ElementUtil {
         | 
| 19 15 | 
             
                static setCanvasProps(canvas: HTMLCanvasElement, ctx: CanvasRenderingContext2D, viewOptions: {
         | 
| 20 16 | 
             
                    width: number;
         | 
| @@ -194,14 +190,7 @@ export declare class ElementUtil { | |
| 194 190 | 
             
                 * 主要限制页眉页脚的编辑模式
         | 
| 195 191 | 
             
                 */
         | 
| 196 192 | 
             
                static verifyHitable(sourceElement: LeafElement | null | undefined): boolean;
         | 
| 197 | 
            -
                 | 
| 198 | 
            -
                 * 获取一个点到一个矩形最短的距离
         | 
| 199 | 
            -
                 * @param rect
         | 
| 200 | 
            -
                 * @param p
         | 
| 201 | 
            -
                 * @returns
         | 
| 202 | 
            -
                 */
         | 
| 203 | 
            -
                static getDistanceToRect(rect: Rect, p: Position): number;
         | 
| 204 | 
            -
                static minDistance(A: PAIR, B: PAIR, E: PAIR): number;
         | 
| 193 | 
            +
                static getDistanceToRect(rect: Rect, point: Position): number;
         | 
| 205 194 | 
             
                /**
         | 
| 206 195 | 
             
                 * 获取父级层级渲染对象
         | 
| 207 196 | 
             
                 * @param render
         |