New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@univerjs/core

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@univerjs/core - npm Package Compare versions

Comparing version

to
0.6.4

@@ -13,2 +13,6 @@ import { Observable, BehaviorSubject } from 'rxjs';

redoMutations: IMutationInfo[];
/**
* sometimes we need an id to mark the undo-redo item
*/
id?: string;
}

@@ -24,2 +28,3 @@ export interface IUndoRedoService {

popRedoToUndo(): void;
rollback(id: string, unitId?: string): void;
clearUndoRedo(unitId: string): void;

@@ -95,2 +100,3 @@ /**

popRedoToUndo(): void;
rollback(id: string, unitID?: string): void;
__tempBatchingUndoRedo(unitId: string): IDisposable;

@@ -97,0 +103,0 @@ protected _updateStatus(): void;

@@ -76,2 +76,21 @@ import { IRange, IRectLTRB } from '../sheets/typedef';

/**
* Checks if any of the ranges in the target array intersect with any of the ranges in the source array.
* Attention! Please make sure there is no NaN in the ranges.
* @param src
* @param target
* @example
* ```typescript
* const ranges1 = [
* { startRow: 0, startColumn: 0, endRow: 2, endColumn: 2 },
* { startRow: 3, startColumn: 3, endRow: 5, endColumn: 5 }
* ];
* const ranges2 = [
* { startRow: 1, startColumn: 1, endRow: 4, endColumn: 4 },
* { startRow: 6, startColumn: 6, endRow: 8, endColumn: 8 }
* ];
* const doIntersect = Rectangle.doAnyRangesIntersect(ranges1, ranges2); // true
* ```
*/
static doAnyRangesIntersect(src: IRange[], target: IRange[]): boolean;
/**
* Gets the intersection range between two ranges

@@ -78,0 +97,0 @@ * @param src

import { IInterceptor } from '../common/interceptor';
import { Nullable, ObjectMatrix } from '../shared';
import { BooleanNumber, HorizontalAlign, TextDirection, VerticalAlign, WrapStrategy, CellValueType } from '../types/enum';
import { IPaddingData, IStyleData, ITextRotation } from '../types/interfaces';

@@ -7,3 +8,2 @@ import { Styles } from './styles';

import { DocumentDataModel } from '../docs';
import { BooleanNumber, CellValueType, HorizontalAlign, TextDirection, VerticalAlign, WrapStrategy } from '../types/enum';
import { ColumnManager } from './column-manager';

@@ -10,0 +10,0 @@ import { Range } from './range';

{
"name": "@univerjs/core",
"version": "0.6.3",
"version": "0.6.4",
"private": false,

@@ -77,3 +77,3 @@ "description": "Core library for Univer.",

"vitest": "^3.0.7",
"@univerjs-infra/shared": "0.6.3"
"@univerjs-infra/shared": "0.6.4"
},

@@ -80,0 +80,0 @@ "scripts": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display