@univerjs/core 0.16.1 → 0.17.0
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/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +8 -8
- package/lib/es/facade.js +32 -44
- package/lib/es/index.js +3847 -4078
- package/lib/facade.js +32 -44
- package/lib/index.js +3847 -4078
- package/lib/types/facade/f-univer.d.ts +1 -11
- package/lib/types/services/plugin/plugin.service.d.ts +4 -0
- package/lib/types/services/resource-manager/resource-manager.service.d.ts +1 -2
- package/lib/types/shared/compare.d.ts +3 -3
- package/lib/types/shared/index.d.ts +0 -1
- package/lib/types/shared/object-matrix-query.d.ts +1 -1
- package/lib/types/shared/shape.d.ts +6 -0
- package/lib/types/types/interfaces/i-drawing.d.ts +6 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +8 -8
- package/package.json +3 -3
- package/lib/types/shared/color/color.d.ts +0 -84
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Core library for Univer.",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"numfmt": "^3.2.3",
|
|
71
71
|
"ot-json1": "^1.0.2",
|
|
72
72
|
"rbush": "^4.0.1",
|
|
73
|
-
"@univerjs/themes": "0.
|
|
73
|
+
"@univerjs/themes": "0.17.0"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@types/async-lock": "^1.4.2",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"typescript": "^5.9.3",
|
|
81
81
|
"vite": "^7.3.1",
|
|
82
82
|
"vitest": "^4.0.18",
|
|
83
|
-
"@univerjs-infra/shared": "0.
|
|
83
|
+
"@univerjs-infra/shared": "0.17.0"
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
86
86
|
"test": "vitest run",
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
import { Nullable } from '../types';
|
|
2
|
-
import { ColorType, ThemeColors, ThemeColorType } from '../../types/enum';
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated
|
|
5
|
-
*/
|
|
6
|
-
export declare class ColorBuilder {
|
|
7
|
-
private _themeValue;
|
|
8
|
-
private _themeColors;
|
|
9
|
-
private _themeTint;
|
|
10
|
-
private _rgbValue;
|
|
11
|
-
private _colorType;
|
|
12
|
-
constructor();
|
|
13
|
-
asRgbColor(): RgbColor;
|
|
14
|
-
asThemeColor(): ThemeColor;
|
|
15
|
-
build(): Nullable<Color>;
|
|
16
|
-
setRgbColor(cssString: string): ColorBuilder;
|
|
17
|
-
setThemeColors(value: ThemeColors): void;
|
|
18
|
-
setThemeTint(value: number): void;
|
|
19
|
-
setThemeColor(theme: ThemeColorType): ColorBuilder;
|
|
20
|
-
getColorType(): ColorType;
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated
|
|
24
|
-
*/
|
|
25
|
-
export declare class Color {
|
|
26
|
-
protected _builder: ColorBuilder;
|
|
27
|
-
constructor(builder: ColorBuilder);
|
|
28
|
-
static rgbColorToHexValue(color: RgbColor): string;
|
|
29
|
-
static hexValueToRgbColor(hexValue: string): RgbColor;
|
|
30
|
-
static hexToRgbString(hex: string): Nullable<string>;
|
|
31
|
-
asRgbColor(): RgbColor;
|
|
32
|
-
asThemeColor(): ThemeColor;
|
|
33
|
-
getColorType(): ColorType;
|
|
34
|
-
clone(): Color;
|
|
35
|
-
equals(color: Color): boolean;
|
|
36
|
-
}
|
|
37
|
-
export declare class HLSColor {
|
|
38
|
-
private _saturation;
|
|
39
|
-
private _hue;
|
|
40
|
-
private _lightness;
|
|
41
|
-
private _alpha;
|
|
42
|
-
constructor(rgbColor: RgbColor);
|
|
43
|
-
asRgbColor(): RgbColor;
|
|
44
|
-
getLightness(): number;
|
|
45
|
-
getHue(): number;
|
|
46
|
-
getSaturation(): number;
|
|
47
|
-
getAlpha(): number;
|
|
48
|
-
setColor(t1: number, t2: number, t3: number): number;
|
|
49
|
-
setLightness(lightness: number): void;
|
|
50
|
-
}
|
|
51
|
-
export declare class RgbColor extends Color {
|
|
52
|
-
static RGB_COLOR_AMT: number;
|
|
53
|
-
static RGBA_EXTRACT: RegExp;
|
|
54
|
-
static RGB_EXTRACT: RegExp;
|
|
55
|
-
private _cssString;
|
|
56
|
-
private _red;
|
|
57
|
-
private _green;
|
|
58
|
-
private _blue;
|
|
59
|
-
private _alpha;
|
|
60
|
-
constructor(cssString: string, builder: ColorBuilder);
|
|
61
|
-
asHexString(): string;
|
|
62
|
-
getRed(): number;
|
|
63
|
-
getGreen(): number;
|
|
64
|
-
getBlue(): number;
|
|
65
|
-
getAlpha(): number;
|
|
66
|
-
getColorType(): ColorType;
|
|
67
|
-
clone(): RgbColor;
|
|
68
|
-
asThemeColor(): ThemeColor;
|
|
69
|
-
equals(color: Color): boolean;
|
|
70
|
-
getCssString(): string;
|
|
71
|
-
}
|
|
72
|
-
export declare class ThemeColor extends Color {
|
|
73
|
-
private static _cacheThemeColor;
|
|
74
|
-
private _themeColorType;
|
|
75
|
-
private _themeTint;
|
|
76
|
-
private _themeColors;
|
|
77
|
-
constructor(theme: ThemeColorType, themeTint: number, themeColors: ThemeColors, builder: ColorBuilder);
|
|
78
|
-
lumValue(tint: number, lum: number): number;
|
|
79
|
-
asRgbColor(): RgbColor;
|
|
80
|
-
clone(): ThemeColor;
|
|
81
|
-
equals(color: Color): boolean;
|
|
82
|
-
getColorType(): ColorType;
|
|
83
|
-
getThemeColorType(): ThemeColorType;
|
|
84
|
-
}
|