@univerjs/sheets-crosshair-highlight 0.5.2-nightly.202412301606 → 0.5.2-nightly.202501011606
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/es/facade.js +6 -6
- package/lib/types/facade/f-univer.d.ts +4 -4
- package/lib/umd/facade.js +1 -1
- package/package.json +8 -32
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("@univerjs/core"),e=require("@univerjs/sheets-crosshair-highlight");class s extends r.FUniver{setCrosshairHighlightEnabled(i){i?this._commandService.
|
|
1
|
+
"use strict";const r=require("@univerjs/core"),e=require("@univerjs/sheets-crosshair-highlight");class s extends r.FUniver{setCrosshairHighlightEnabled(i){return i?this._commandService.syncExecuteCommand(e.EnableCrosshairHighlightOperation.id):this._commandService.syncExecuteCommand(e.DisableCrosshairHighlightOperation.id),this}setCrosshairHighlightColor(i){return this._commandService.syncExecuteCommand(e.SetCrosshairHighlightColorOperation.id,{value:i}),this}}r.FUniver.extend(s);
|
package/lib/es/facade.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { FUniver as e } from "@univerjs/core";
|
|
2
|
-
import { EnableCrosshairHighlightOperation as r, DisableCrosshairHighlightOperation as
|
|
3
|
-
class
|
|
2
|
+
import { EnableCrosshairHighlightOperation as r, DisableCrosshairHighlightOperation as s, SetCrosshairHighlightColorOperation as t } from "@univerjs/sheets-crosshair-highlight";
|
|
3
|
+
class h extends e {
|
|
4
4
|
setCrosshairHighlightEnabled(i) {
|
|
5
|
-
i ? this._commandService.
|
|
5
|
+
return i ? this._commandService.syncExecuteCommand(r.id) : this._commandService.syncExecuteCommand(s.id), this;
|
|
6
6
|
}
|
|
7
7
|
setCrosshairHighlightColor(i) {
|
|
8
|
-
this._commandService.
|
|
8
|
+
return this._commandService.syncExecuteCommand(t.id, {
|
|
9
9
|
value: i
|
|
10
|
-
});
|
|
10
|
+
}), this;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
e.extend(
|
|
13
|
+
e.extend(h);
|
|
@@ -4,16 +4,16 @@ export interface IFUniverCrosshairHighlightMixin {
|
|
|
4
4
|
* Enable or disable crosshair highlight.
|
|
5
5
|
* @param {boolean} enabled if crosshair highlight should be enabled
|
|
6
6
|
*/
|
|
7
|
-
setCrosshairHighlightEnabled(enabled: boolean):
|
|
7
|
+
setCrosshairHighlightEnabled(enabled: boolean): FUniver;
|
|
8
8
|
/**
|
|
9
9
|
* Set the color of the crosshair highlight.
|
|
10
10
|
* @param {string} color the color of the crosshair highlight
|
|
11
11
|
*/
|
|
12
|
-
setCrosshairHighlightColor(color: string):
|
|
12
|
+
setCrosshairHighlightColor(color: string): FUniver;
|
|
13
13
|
}
|
|
14
14
|
export declare class FUniverCrosshairHighlightMixin extends FUniver implements IFUniverCrosshairHighlightMixin {
|
|
15
|
-
setCrosshairHighlightEnabled(enabled: boolean):
|
|
16
|
-
setCrosshairHighlightColor(color: string):
|
|
15
|
+
setCrosshairHighlightEnabled(enabled: boolean): FUniver;
|
|
16
|
+
setCrosshairHighlightColor(color: string): FUniver;
|
|
17
17
|
}
|
|
18
18
|
declare module '@univerjs/core' {
|
|
19
19
|
interface FUniver extends IFUniverCrosshairHighlightMixin {
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,i){typeof exports=="object"&&typeof module<"u"?i(require("@univerjs/core"),require("@univerjs/sheets-crosshair-highlight")):typeof define=="function"&&define.amd?define(["@univerjs/core","@univerjs/sheets-crosshair-highlight"],i):(e=typeof globalThis<"u"?globalThis:e||self,i(e.UniverCore,e.UniverSheetsCrosshairHighlight))})(this,function(e,i){"use strict";class
|
|
1
|
+
(function(e,i){typeof exports=="object"&&typeof module<"u"?i(require("@univerjs/core"),require("@univerjs/sheets-crosshair-highlight")):typeof define=="function"&&define.amd?define(["@univerjs/core","@univerjs/sheets-crosshair-highlight"],i):(e=typeof globalThis<"u"?globalThis:e||self,i(e.UniverCore,e.UniverSheetsCrosshairHighlight))})(this,function(e,i){"use strict";class r extends e.FUniver{setCrosshairHighlightEnabled(n){return n?this._commandService.syncExecuteCommand(i.EnableCrosshairHighlightOperation.id):this._commandService.syncExecuteCommand(i.DisableCrosshairHighlightOperation.id),this}setCrosshairHighlightColor(n){return this._commandService.syncExecuteCommand(i.SetCrosshairHighlightColorOperation.id,{value:n}),this}}e.FUniver.extend(r)});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs/sheets-crosshair-highlight",
|
|
3
|
-
"version": "0.5.2-nightly.
|
|
3
|
+
"version": "0.5.2-nightly.202501011606",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,48 +57,24 @@
|
|
|
57
57
|
"rxjs": ">=7.0.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@univerjs/icons": "^0.2.
|
|
60
|
+
"@univerjs/icons": "^0.2.10",
|
|
61
61
|
"clsx": "^2.1.1",
|
|
62
|
-
"@univerjs/core": "0.5.2-nightly.
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/sheets": "0.5.2-nightly.
|
|
66
|
-
"@univerjs/
|
|
62
|
+
"@univerjs/core": "0.5.2-nightly.202501011606",
|
|
63
|
+
"@univerjs/engine-render": "0.5.2-nightly.202501011606",
|
|
64
|
+
"@univerjs/ui": "0.5.2-nightly.202501011606",
|
|
65
|
+
"@univerjs/sheets": "0.5.2-nightly.202501011606",
|
|
66
|
+
"@univerjs/sheets-ui": "0.5.2-nightly.202501011606"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
69
|
"less": "^4.2.1",
|
|
70
70
|
"postcss": "^8.4.49",
|
|
71
71
|
"react": "18.3.1",
|
|
72
72
|
"rxjs": "^7.8.1",
|
|
73
|
-
"tailwindcss": "^3.4.16",
|
|
74
73
|
"typescript": "^5.7.2",
|
|
75
|
-
"vite": "^6.0.
|
|
74
|
+
"vite": "^6.0.6",
|
|
76
75
|
"vitest": "^2.1.8",
|
|
77
76
|
"@univerjs-infra/shared": "0.5.2"
|
|
78
77
|
},
|
|
79
|
-
"space": {
|
|
80
|
-
".": {
|
|
81
|
-
"import": "./lib/es/index.js",
|
|
82
|
-
"require": "./lib/cjs/index.js",
|
|
83
|
-
"types": "./lib/types/index.d.ts"
|
|
84
|
-
},
|
|
85
|
-
"./*": {
|
|
86
|
-
"import": "./lib/es/*",
|
|
87
|
-
"require": "./lib/cjs/*",
|
|
88
|
-
"types": "./lib/types/index.d.ts"
|
|
89
|
-
},
|
|
90
|
-
"./locale/*": {
|
|
91
|
-
"import": "./lib/es/locale/*.js",
|
|
92
|
-
"require": "./lib/cjs/locale/*.js",
|
|
93
|
-
"types": "./lib/types/locale/*.d.ts"
|
|
94
|
-
},
|
|
95
|
-
"./facade": {
|
|
96
|
-
"import": "./lib/es/facade.js",
|
|
97
|
-
"require": "./lib/cjs/facade.js",
|
|
98
|
-
"types": "./lib/types/facade/index.d.ts"
|
|
99
|
-
},
|
|
100
|
-
"./lib/*": "./lib/*"
|
|
101
|
-
},
|
|
102
78
|
"scripts": {
|
|
103
79
|
"test": "vitest run",
|
|
104
80
|
"test:watch": "vitest",
|