@univerjs/core 0.15.2 → 0.15.3

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.
@@ -174,6 +174,7 @@ export declare const ICommandService: import('@wendellhu/redi').IdentifierDecora
174
174
  * The service to register and execute commands.
175
175
  */
176
176
  export interface ICommandService {
177
+ disposed(): boolean;
177
178
  /**
178
179
  * Check if a command is already registered at the current command service.
179
180
  * @param commandId The id of the command.
@@ -253,6 +254,7 @@ export declare class CommandService extends Disposable implements ICommandServic
253
254
  private _commandExecutionStack;
254
255
  constructor(_injector: Injector, _logService: ILogService, _configService: IConfigService);
255
256
  dispose(): void;
257
+ disposed(): boolean;
256
258
  hasCommand(commandId: string): boolean;
257
259
  registerCommand(command: ICommand): IDisposable;
258
260
  unregisterCommand(commandId: string): void;
@@ -35,4 +35,8 @@ export declare const FOCUSING_UNIVER_EDITOR_STANDALONE_SINGLE_MODE = "FOCUSING_U
35
35
  * The focusing state of the common drawings.
36
36
  */
37
37
  export declare const FOCUSING_COMMON_DRAWINGS = "FOCUSING_COMMON_DRAWINGS";
38
+ /**
39
+ * The focusing state of the shape text editor.
40
+ */
41
+ export declare const FOCUSING_SHAPE_TEXT_EDITOR = "FOCUSING_SHAPE_TEXT_EDITOR";
38
42
  export declare const FORMULA_EDITOR_ACTIVATED = "FORMULA_EDITOR_ACTIVATED";
@@ -27,6 +27,7 @@ export * from './dayjs';
27
27
  export * from './doc-tool';
28
28
  export * from './generate';
29
29
  export * from './hash-algorithm';
30
+ export * from './intervals';
30
31
  export * from './lifecycle';
31
32
  export * from './locale';
32
33
  export { LRUHelper, LRUMap } from './lru/lru-map';
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Copyright 2023-present DreamNum Co., Ltd.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare function generateIntervalsByPoints(points: Array<number | [number, number]>): [number, number][];
17
+ export declare function mergeIntervals(intervals: [number, number][]): [number, number][];
@@ -34,7 +34,6 @@ export declare class SpanModel extends Disposable {
34
34
  */
35
35
  private _mergeData;
36
36
  private _rangeMap;
37
- private _skeletonCache;
38
37
  constructor(mergeData: IRange[]);
39
38
  private _init;
40
39
  private _clearCache;
@@ -61,16 +60,7 @@ export declare class SpanModel extends Disposable {
61
60
  isRowContainsMergedCell(row: number): boolean;
62
61
  isColumnContainsMergedCell(column: number): boolean;
63
62
  getMergedCellRange(startRow: number, startColumn: number, endRow: number, endColumn: number): IRange[];
64
- /**
65
- * @deprecated sigificant performance impact, use _getCellMergeInfo instead.
66
- * @param startRow
67
- * @param startColumn
68
- * @param endRow
69
- * @param endColumn
70
- */
71
- getMergedCellRangeForSkeleton(startRow: number, startColumn: number, endRow: number, endColumn: number): IRange[];
72
63
  private _getRangeFromCache;
73
- private _getSkeletonRangeFromCache;
74
64
  private _getMergeDataIndex;
75
65
  getMergeDataSnapshot(): IRange[];
76
66
  dispose(): void;
@@ -35,6 +35,7 @@ export declare function createDocumentModelWithStyle(content: string, textStyle:
35
35
  export declare function extractOtherStyle(style?: Nullable<IStyleData>): ICellStyle;
36
36
  /**
37
37
  * Pick font style from cell style.
38
+ * Important note: Do not add attributes to this method arbitrarily.
38
39
  * @param format
39
40
  * @returns {IStyleBase} style
40
41
  */