@zyui/components 0.0.136 → 0.0.138
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/es/index.js +68 -68
- package/es/index.mjs +17154 -17094
- package/es/src/components/NodesEditor/helper.d.ts +13 -0
- package/es/style.css +1 -1
- package/lib/src/components/NodesEditor/helper.d.ts +13 -0
- package/package.json +1 -1
|
@@ -50,6 +50,19 @@ export declare function findMinMaxPoints(points: Point[]): {
|
|
|
50
50
|
/**nodes变为text缩写 */
|
|
51
51
|
export declare const abbrNodes2TextNode: (nodes: NodeItem[], allNodes: NodeItem[]) => any[];
|
|
52
52
|
export declare const tableCellText: (item: any) => string;
|
|
53
|
+
/**
|
|
54
|
+
* 获取表格单元格坐标(如 A0、B1)
|
|
55
|
+
* 传入节点为 TD 元素时,返回列字母 + 行索引;否则返回空字符串。
|
|
56
|
+
*/
|
|
57
|
+
export declare const getTdCoordinate: (node: NodeItem) => string;
|
|
58
|
+
/**
|
|
59
|
+
* 计算非 TD 节点的索引(subNodeSort,从 0 开始)。
|
|
60
|
+
* - 若 node 已有有效索引(>=0),直接返回。
|
|
61
|
+
* - 否则在 nodes 中取所有非 TD 节点的索引:
|
|
62
|
+
* - 若索引从 0 起连续,则返回最大值 + 1;
|
|
63
|
+
* - 若存在缺口,则返回从 0 开始的第一个缺失的索引。
|
|
64
|
+
*/
|
|
65
|
+
export declare const getNonTdNodeIndex: (nodes: NodeItem[], node: NodeItem) => number;
|
|
53
66
|
export declare const abbrNodes2Text: (nodes: NodeItem[], allNodes: NodeItem[]) => string;
|
|
54
67
|
/**
|
|
55
68
|
* 判断是否是uuid
|