@univerjs/core 0.4.0 → 0.4.1-experimental.20241023-bbb123f

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.
@@ -13,9 +13,4 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
- /**
17
- * Determine whether it is a pure number, "12" and "12e+3" are both true
18
- * @param val The number or string to be judged
19
- * @returns Result
20
- */
21
16
  export declare function isRealNum(val: string | number | boolean): boolean;
@@ -12,13 +12,29 @@ export interface IRTreeData {
12
12
  };
13
13
  }
14
14
  export declare class RTree {
15
+ private _enableOneCellCache;
15
16
  private _tree;
17
+ private _oneCellCache;
18
+ private _kdTree;
19
+ private _kdTreeSearchState;
20
+ constructor(_enableOneCellCache?: boolean);
16
21
  dispose(): void;
17
22
  getTree(unitId: string, subUnitId: string): RBush<IRBushItem>;
23
+ private _getOneCellCache;
24
+ private _removeOneCellCache;
25
+ private _insertOneCellCache;
26
+ private _getRdTreeItems;
27
+ private _searchByOneCellCache;
28
+ /**
29
+ * Open the kd-tree search state.
30
+ * The kd-tree is used to search for data in a single cell.
31
+ */
32
+ openKdTree(): void;
33
+ closeKdTree(): void;
18
34
  insert(item: IRTreeItem): void;
19
35
  bulkInsert(items: IRTreeItem[]): void;
20
- search(search: IUnitRange): Map<string, IRTreeItem>;
21
- bulkSearch(searchList: IUnitRange[]): Map<string, IRTreeItem>;
36
+ search(search: IUnitRange): string[];
37
+ bulkSearch(searchList: IUnitRange[]): Set<string>;
22
38
  removeById(unitId: string, subUnitId?: string): void;
23
39
  remove(search: IRTreeItem): void;
24
40
  bulkRemove(searchList: IRTreeItem[]): void;
@@ -330,8 +330,9 @@ export interface IHeaderAndFooterBase {
330
330
  evenAndOddHeaders?: BooleanNumber;
331
331
  }
332
332
  export declare enum DocumentFlavor {
333
- TRADITIONAL = 0,
334
- MODERN = 1
333
+ UNSPECIFIED = 0,
334
+ TRADITIONAL = 1,
335
+ MODERN = 2
335
336
  }
336
337
  /**
337
338
  * Basics properties of doc style