@univerjs-pro/collaboration 1.0.0-rc.0 → 1.0.1

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.
@@ -1,4 +1,4 @@
1
1
  import type { IRevertRevisionMutationParams } from '../../../../commands/revert-revision.mutation';
2
2
  import type { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
3
- export declare const RevertRevisionMutationWithOthers: IMutationTransformAlgorithm<IRevertRevisionMutationParams, any>;
4
- export declare const OthersWithRevertRevision: IMutationTransformAlgorithm<any, IRevertRevisionMutationParams>;
3
+ export declare const RevertRevisionMutationWithOthers: IMutationTransformAlgorithm<IRevertRevisionMutationParams, object>;
4
+ export declare const OthersWithRevertRevision: IMutationTransformAlgorithm<object, IRevertRevisionMutationParams>;
@@ -1,4 +1,4 @@
1
- import type { ICellData, IObjectMatrixPrimitiveType, IRange, Nullable } from '@univerjs/core';
1
+ import type { ICellData, IObjectArrayPrimitiveType, IObjectMatrixPrimitiveType, IRange, Nullable } from '@univerjs/core';
2
2
  import { RANGE_TYPE } from '@univerjs/core';
3
3
  export declare function toColumn(range: IRange): {
4
4
  rangeType: RANGE_TYPE;
@@ -28,6 +28,14 @@ export interface ISheetRangeLocation {
28
28
  export declare function intersect(line1: ILine, line2: ILine): boolean;
29
29
  export declare function contain(line1: ILine, line2: ILine): boolean;
30
30
  export declare function lineSubtractLines(line1: ILine, lines2: ILine[]): ILine[];
31
+ /**
32
+ * Returns only the rows or columns that a dimension mutation actually writes.
33
+ * Numeric payloads apply to every range index, while map payloads may be sparse.
34
+ */
35
+ export declare function getEffectiveDimensionLines(ranges: IRange[], value: number | IObjectArrayPrimitiveType<Nullable<number>>, axis: 'row' | 'column'): Array<{
36
+ start: number;
37
+ end: number;
38
+ }>;
31
39
  export declare function lineSubtractLine(line1: ILine, line2: ILine): ILine[];
32
40
  export declare function handleInsert(insert: ILine, target: ILine): ILine;
33
41
  export declare function handleRemove(remove: ILine, target: ILine): ILine | null;
@@ -0,0 +1,4 @@
1
+ import type { ISetWorksheetBackgroundImageMutationParams } from '@univerjs/sheets-drawing';
2
+ import type { IMutationTransformAlgorithm } from '../../../../services/transform/transform.service';
3
+ export declare const SetWorksheetBackgroundImageWithSelf: IMutationTransformAlgorithm<ISetWorksheetBackgroundImageMutationParams, ISetWorksheetBackgroundImageMutationParams>;
4
+ export declare const WorksheetBackgroundImageAlgorithms: Array<IMutationTransformAlgorithm>;