@univerjs/sheets-crosshair-highlight 0.5.5-nightly.202501220324 → 0.5.5

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/es/index.js CHANGED
@@ -1,72 +1,66 @@
1
- var __defProp = Object.defineProperty;
2
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: !0, configurable: !0, writable: !0, value }) : obj[key] = value;
3
- var __name = (target, value) => __defProp(target, "name", { value, configurable: !0 });
4
- var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key != "symbol" ? key + "" : key, value);
5
- import { Disposable, CommandType, useDependency, useObservable, UniverInstanceType, Inject, ICommandService, RANGE_TYPE, Rectangle, IContextService, ColorKit, Plugin, merge as merge$1, Injector, IConfigService } from "@univerjs/core";
6
- import { Shape, Rect, IRenderManagerService } from "@univerjs/engine-render";
7
- import { MenuItemType, getMenuHiddenObservable, ContextMenuPosition, ContextMenuGroup, ComponentManager, IMenuManagerService } from "@univerjs/ui";
8
- import { BehaviorSubject, combineLatest, startWith, tap, merge, map } from "rxjs";
9
- import { jsx } from "react/jsx-runtime";
10
- import { forwardRef, useRef, createElement, useCallback } from "react";
11
- import { SheetsSelectionsService, REF_SELECTIONS_ENABLED, IRefSelectionsService } from "@univerjs/sheets";
12
- import { SheetSkeletonManagerService, getCoordByCell } from "@univerjs/sheets-ui";
13
- const SHEETS_CROSSHAIR_HIGHLIGHT_PLUGIN_CONFIG_KEY = "sheets-crosshair-highlight.config", defaultPluginConfig = {};
14
- var __assign = function() {
15
- return __assign = Object.assign || function(t) {
16
- for (var s, i = 1, n = arguments.length; i < n; i++) {
17
- s = arguments[i];
18
- for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && (t[p] = s[p]);
1
+ var re = Object.defineProperty;
2
+ var ne = (n, e, t) => e in n ? re(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
3
+ var h = (n, e, t) => ne(n, typeof e != "symbol" ? e + "" : e, t);
4
+ import { Disposable as $, CommandType as O, useDependency as se, useObservable as ie, UniverInstanceType as x, Inject as p, ICommandService as oe, RANGE_TYPE as v, Rectangle as T, IContextService as ae, ColorKit as ce, Plugin as le, merge as he, Injector as ge, IConfigService as ue } from "@univerjs/core";
5
+ import { Shape as de, Rect as fe, IRenderManagerService as _e } from "@univerjs/engine-render";
6
+ import { MenuItemType as Se, getMenuHiddenObservable as pe, ContextMenuPosition as ve, ContextMenuGroup as me, ComponentManager as Ce, IMenuManagerService as Re } from "@univerjs/ui";
7
+ import { BehaviorSubject as N, combineLatest as be, startWith as He, tap as Oe, merge as j, map as V } from "rxjs";
8
+ import Ie, { forwardRef as Z, useRef as ye, createElement as B, useCallback as Ee } from "react";
9
+ import { SheetsSelectionsService as we, REF_SELECTIONS_ENABLED as xe, IRefSelectionsService as $e } from "@univerjs/sheets";
10
+ import { SheetSkeletonManagerService as Me, getCoordByCell as L } from "@univerjs/sheets-ui";
11
+ const Pe = "sheets-crosshair-highlight.config", A = {};
12
+ var g = function() {
13
+ return g = Object.assign || function(n) {
14
+ for (var e, t = 1, r = arguments.length; t < r; t++) {
15
+ e = arguments[t];
16
+ for (var s in e) Object.prototype.hasOwnProperty.call(e, s) && (n[s] = e[s]);
19
17
  }
20
- return t;
21
- }, __assign.apply(this, arguments);
22
- }, __rest = function(s, e) {
18
+ return n;
19
+ }, g.apply(this, arguments);
20
+ }, Te = function(n, e) {
23
21
  var t = {};
24
- for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
25
- if (s != null && typeof Object.getOwnPropertySymbols == "function")
26
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++)
27
- e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
22
+ for (var r in n) Object.prototype.hasOwnProperty.call(n, r) && e.indexOf(r) < 0 && (t[r] = n[r]);
23
+ if (n != null && typeof Object.getOwnPropertySymbols == "function")
24
+ for (var s = 0, r = Object.getOwnPropertySymbols(n); s < r.length; s++)
25
+ e.indexOf(r[s]) < 0 && Object.prototype.propertyIsEnumerable.call(n, r[s]) && (t[r[s]] = n[r[s]]);
28
26
  return t;
29
- }, IconBase = forwardRef(function(props, ref) {
30
- var icon = props.icon, id = props.id, className = props.className, extend = props.extend, restProps = __rest(props, ["icon", "id", "className", "extend"]), cls = "univerjs-icon univerjs-icon-".concat(id, " ").concat(className || "").trim(), idSuffix = useRef("_".concat(generateShortUuid()));
31
- return render(icon, "".concat(id), { defIds: icon.defIds, idSuffix: idSuffix.current }, __assign({ ref, className: cls }, restProps), extend);
27
+ }, F = Z(function(n, e) {
28
+ var t = n.icon, r = n.id, s = n.className, i = n.extend, o = Te(n, ["icon", "id", "className", "extend"]), a = "univerjs-icon univerjs-icon-".concat(r, " ").concat(s || "").trim(), c = ye("_".concat(Ve()));
29
+ return W(t, "".concat(r), { defIds: t.defIds, idSuffix: c.current }, g({ ref: e, className: a }, o), i);
32
30
  });
33
- function render(node, id, runtimeProps, rootProps, extend) {
34
- return createElement(node.tag, __assign(__assign({ key: id }, replaceRuntimeIdsAndExtInAttrs(node, runtimeProps, extend)), rootProps), (replaceRuntimeIdsInDefs(node, runtimeProps).children || []).map(function(child, index) {
35
- return render(child, "".concat(id, "-").concat(node.tag, "-").concat(index), runtimeProps, void 0, extend);
31
+ function W(n, e, t, r, s) {
32
+ return B(n.tag, g(g({ key: e }, Ne(n, t, s)), r), (je(n, t).children || []).map(function(i, o) {
33
+ return W(i, "".concat(e, "-").concat(n.tag, "-").concat(o), t, void 0, s);
36
34
  }));
37
35
  }
38
- __name(render, "render");
39
- function replaceRuntimeIdsAndExtInAttrs(node, runtimeProps, extend) {
40
- var attrs = __assign({}, node.attrs);
41
- extend != null && extend.colorChannel1 && attrs.fill === "colorChannel1" && (attrs.fill = extend.colorChannel1);
42
- var defIds = runtimeProps.defIds;
43
- return !defIds || defIds.length === 0 || (node.tag === "use" && attrs["xlink:href"] && (attrs["xlink:href"] = attrs["xlink:href"] + runtimeProps.idSuffix), Object.entries(attrs).forEach(function(_a4) {
44
- var key = _a4[0], value = _a4[1];
45
- typeof value == "string" && (attrs[key] = value.replace(/url\(#(.*)\)/, "url(#$1".concat(runtimeProps.idSuffix, ")")));
46
- })), attrs;
36
+ function Ne(n, e, t) {
37
+ var r = g({}, n.attrs);
38
+ t != null && t.colorChannel1 && r.fill === "colorChannel1" && (r.fill = t.colorChannel1);
39
+ var s = e.defIds;
40
+ return !s || s.length === 0 || (n.tag === "use" && r["xlink:href"] && (r["xlink:href"] = r["xlink:href"] + e.idSuffix), Object.entries(r).forEach(function(i) {
41
+ var o = i[0], a = i[1];
42
+ typeof a == "string" && (r[o] = a.replace(/url\(#(.*)\)/, "url(#$1".concat(e.idSuffix, ")")));
43
+ })), r;
47
44
  }
48
- __name(replaceRuntimeIdsAndExtInAttrs, "replaceRuntimeIdsAndExtInAttrs");
49
- function replaceRuntimeIdsInDefs(node, runtimeProps) {
50
- var _a4, defIds = runtimeProps.defIds;
51
- return !defIds || defIds.length === 0 ? node : node.tag === "defs" && (!((_a4 = node.children) === null || _a4 === void 0) && _a4.length) ? __assign(__assign({}, node), { children: node.children.map(function(child) {
52
- return typeof child.attrs.id == "string" && defIds && defIds.indexOf(child.attrs.id) > -1 ? __assign(__assign({}, child), { attrs: __assign(__assign({}, child.attrs), { id: child.attrs.id + runtimeProps.idSuffix }) }) : child;
53
- }) }) : node;
45
+ function je(n, e) {
46
+ var t, r = e.defIds;
47
+ return !r || r.length === 0 ? n : n.tag === "defs" && (!((t = n.children) === null || t === void 0) && t.length) ? g(g({}, n), { children: n.children.map(function(s) {
48
+ return typeof s.attrs.id == "string" && r && r.indexOf(s.attrs.id) > -1 ? g(g({}, s), { attrs: g(g({}, s.attrs), { id: s.attrs.id + e.idSuffix }) }) : s;
49
+ }) }) : n;
54
50
  }
55
- __name(replaceRuntimeIdsInDefs, "replaceRuntimeIdsInDefs");
56
- function generateShortUuid() {
51
+ function Ve() {
57
52
  return Math.random().toString(36).substring(2, 8);
58
53
  }
59
- __name(generateShortUuid, "generateShortUuid");
60
- IconBase.displayName = "UniverIcon";
61
- var element = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "#E5E5E5", d: "M1.6499 3.65002C1.6499 2.54545 2.54533 1.65002 3.6499 1.65002H12.3499C13.4545 1.65002 14.3499 2.54545 14.3499 3.65002V12.35C14.3499 13.4546 13.4545 14.35 12.3499 14.35H3.6499C2.54533 14.35 1.6499 13.4546 1.6499 12.35V3.65002Z" } }, { tag: "path", attrs: { fill: "#fff", d: "M9.9998 1.65002H5.9998V6H1.6499V10H5.9998V14.35H9.9998V10H14.3499V6H9.9998V1.65002Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M3.6498 1.05005C2.21386 1.05005 1.0498 2.21411 1.0498 3.65005V12.35C1.0498 13.786 2.21386 14.95 3.6498 14.95H12.3498C13.7857 14.95 14.9498 13.786 14.9498 12.3501V3.65005C14.9498 2.21411 13.7857 1.05005 12.3498 1.05005H3.6498ZM5.4002 2.25005H3.6498C2.87661 2.25005 2.2498 2.87685 2.2498 3.65005V5.40002H5.4002V2.25005ZM2.2498 10.6V12.35C2.2498 13.1232 2.87661 13.75 3.6498 13.75H5.4002V10.6H2.2498ZM6.60019 13.75H9.4002V9.40002H13.7498V6.60002H9.4002V2.25005H6.60019V6.60002H2.25029V9.40002H6.60019V13.75ZM10.6002 2.25005V5.40002H13.7498V3.65005C13.7498 2.87685 13.123 2.25005 12.3498 2.25005H10.6002ZM13.7498 10.6H10.6002V13.75H12.3498C13.123 13.75 13.7498 13.1232 13.7498 12.3501V10.6Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, CrossHighlightingSingle = forwardRef(function(props, ref) {
62
- return createElement(IconBase, Object.assign({}, props, {
54
+ F.displayName = "UniverIcon";
55
+ var Le = { tag: "svg", attrs: { fill: "none", viewBox: "0 0 16 16", width: "1em", height: "1em" }, children: [{ tag: "path", attrs: { fill: "#E5E5E5", d: "M1.6499 3.65002C1.6499 2.54545 2.54533 1.65002 3.6499 1.65002H12.3499C13.4545 1.65002 14.3499 2.54545 14.3499 3.65002V12.35C14.3499 13.4546 13.4545 14.35 12.3499 14.35H3.6499C2.54533 14.35 1.6499 13.4546 1.6499 12.35V3.65002Z" } }, { tag: "path", attrs: { fill: "#fff", d: "M9.9998 1.65002H5.9998V6H1.6499V10H5.9998V14.35H9.9998V10H14.3499V6H9.9998V1.65002Z" } }, { tag: "path", attrs: { fill: "currentColor", d: "M3.6498 1.05005C2.21386 1.05005 1.0498 2.21411 1.0498 3.65005V12.35C1.0498 13.786 2.21386 14.95 3.6498 14.95H12.3498C13.7857 14.95 14.9498 13.786 14.9498 12.3501V3.65005C14.9498 2.21411 13.7857 1.05005 12.3498 1.05005H3.6498ZM5.4002 2.25005H3.6498C2.87661 2.25005 2.2498 2.87685 2.2498 3.65005V5.40002H5.4002V2.25005ZM2.2498 10.6V12.35C2.2498 13.1232 2.87661 13.75 3.6498 13.75H5.4002V10.6H2.2498ZM6.60019 13.75H9.4002V9.40002H13.7498V6.60002H9.4002V2.25005H6.60019V6.60002H2.25029V9.40002H6.60019V13.75ZM10.6002 2.25005V5.40002H13.7498V3.65005C13.7498 2.87685 13.123 2.25005 12.3498 2.25005H10.6002ZM13.7498 10.6H10.6002V13.75H12.3498C13.123 13.75 13.7498 13.1232 13.7498 12.3501V10.6Z", fillRule: "evenodd", clipRule: "evenodd" } }] }, Y = Z(function(n, e) {
56
+ return B(F, Object.assign({}, n, {
63
57
  id: "cross-highlighting-single",
64
- ref,
65
- icon: element
58
+ ref: e,
59
+ icon: Le
66
60
  }));
67
61
  });
68
- CrossHighlightingSingle.displayName = "CrossHighlightingSingle";
69
- const CROSSHAIR_HIGHLIGHT_COLORS = [
62
+ Y.displayName = "CrossHighlightingSingle";
63
+ const q = [
70
64
  "rgba(158, 109, 227, 0.3)",
71
65
  "rgba(254, 75, 75, 0.3)",
72
66
  "rgba(255, 140, 81, 0.3)",
@@ -83,13 +77,14 @@ const CROSSHAIR_HIGHLIGHT_COLORS = [
83
77
  "rgba(58, 96, 247, 0.15)",
84
78
  "rgba(242, 72, 166, 0.15)",
85
79
  "rgba(153, 153, 153, 0.15)"
86
- ], _SheetsCrosshairHighlightService = class _SheetsCrosshairHighlightService extends Disposable {
80
+ ];
81
+ class S extends $ {
87
82
  constructor() {
88
83
  super(...arguments);
89
- __publicField(this, "_enabled$", new BehaviorSubject(!1));
90
- __publicField(this, "enabled$", this._enabled$.asObservable());
91
- __publicField(this, "_color$", new BehaviorSubject(CROSSHAIR_HIGHLIGHT_COLORS[0]));
92
- __publicField(this, "color$", this._color$.asObservable());
84
+ h(this, "_enabled$", new N(!1));
85
+ h(this, "enabled$", this._enabled$.asObservable());
86
+ h(this, "_color$", new N(q[0]));
87
+ h(this, "color$", this._color$.asObservable());
93
88
  }
94
89
  get enabled() {
95
90
  return this._enabled$.getValue();
@@ -100,175 +95,199 @@ const CROSSHAIR_HIGHLIGHT_COLORS = [
100
95
  dispose() {
101
96
  this._enabled$.complete();
102
97
  }
103
- setEnabled(value) {
104
- this._enabled$.next(value);
98
+ setEnabled(t) {
99
+ this._enabled$.next(t);
105
100
  }
106
- setColor(value) {
107
- this._color$.next(value);
101
+ setColor(t) {
102
+ this._color$.next(t);
108
103
  }
109
- };
110
- __name(_SheetsCrosshairHighlightService, "SheetsCrosshairHighlightService");
111
- let SheetsCrosshairHighlightService = _SheetsCrosshairHighlightService;
112
- const ToggleCrosshairHighlightOperation = {
104
+ }
105
+ const M = {
113
106
  id: "sheet.operation.toggle-crosshair-highlight",
114
- type: CommandType.OPERATION,
115
- handler(accessor) {
116
- const service = accessor.get(SheetsCrosshairHighlightService), turnedOn = service.enabled;
117
- return service.setEnabled(!turnedOn), !0;
107
+ type: O.OPERATION,
108
+ handler(n) {
109
+ const e = n.get(S), t = e.enabled;
110
+ return e.setEnabled(!t), !0;
118
111
  }
119
- }, SetCrosshairHighlightColorOperation = {
112
+ }, J = {
120
113
  id: "sheet.operation.set-crosshair-highlight-color",
121
- type: CommandType.OPERATION,
122
- handler(accessor, { value }) {
123
- const service = accessor.get(SheetsCrosshairHighlightService);
124
- return service.enabled || service.setEnabled(!0), service.setColor(value), !0;
114
+ type: O.OPERATION,
115
+ handler(n, { value: e }) {
116
+ const t = n.get(S);
117
+ return t.enabled || t.setEnabled(!0), t.setColor(e), !0;
125
118
  }
126
- }, EnableCrosshairHighlightOperation = {
119
+ }, Ae = {
127
120
  id: "sheet.operation.enable-crosshair-highlight",
128
- type: CommandType.OPERATION,
129
- handler(accessor) {
130
- const service = accessor.get(SheetsCrosshairHighlightService);
131
- return service.enabled ? !1 : (service.setEnabled(!0), !0);
121
+ type: O.OPERATION,
122
+ handler(n) {
123
+ const e = n.get(S);
124
+ return e.enabled ? !1 : (e.setEnabled(!0), !0);
132
125
  }
133
- }, DisableCrosshairHighlightOperation = {
126
+ }, Ge = {
134
127
  id: "sheet.operation.disable-crosshair-highlight",
135
- type: CommandType.OPERATION,
136
- handler(accessor) {
137
- const service = accessor.get(SheetsCrosshairHighlightService);
138
- return service.enabled ? (service.setEnabled(!1), !0) : !1;
128
+ type: O.OPERATION,
129
+ handler(n) {
130
+ const e = n.get(S);
131
+ return e.enabled ? (e.setEnabled(!1), !0) : !1;
139
132
  }
140
133
  };
141
- function r(e) {
142
- var t, f, n = "";
143
- if (typeof e == "string" || typeof e == "number") n += e;
144
- else if (typeof e == "object") if (Array.isArray(e)) {
145
- var o = e.length;
146
- for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
147
- } else for (f in e) e[f] && (n && (n += " "), n += f);
148
- return n;
134
+ var I = { exports: {} }, m = {};
135
+ /**
136
+ * @license React
137
+ * react-jsx-runtime.production.min.js
138
+ *
139
+ * Copyright (c) Facebook, Inc. and its affiliates.
140
+ *
141
+ * This source code is licensed under the MIT license found in the
142
+ * LICENSE file in the root directory of this source tree.
143
+ */
144
+ var G;
145
+ function Ue() {
146
+ if (G) return m;
147
+ G = 1;
148
+ var n = Ie, e = Symbol.for("react.element"), t = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, s = n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, i = { key: !0, ref: !0, __self: !0, __source: !0 };
149
+ function o(a, c, f) {
150
+ var l, d = {}, _ = null, u = null;
151
+ f !== void 0 && (_ = "" + f), c.key !== void 0 && (_ = "" + c.key), c.ref !== void 0 && (u = c.ref);
152
+ for (l in c) r.call(c, l) && !i.hasOwnProperty(l) && (d[l] = c[l]);
153
+ if (a && a.defaultProps) for (l in c = a.defaultProps, c) d[l] === void 0 && (d[l] = c[l]);
154
+ return { $$typeof: e, type: a, key: _, ref: u, props: d, _owner: s.current };
155
+ }
156
+ return m.Fragment = t, m.jsx = o, m.jsxs = o, m;
157
+ }
158
+ var U;
159
+ function De() {
160
+ return U || (U = 1, I.exports = Ue()), I.exports;
149
161
  }
150
- __name(r, "r");
151
- function clsx() {
152
- for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
153
- return n;
162
+ var D = De();
163
+ function X(n) {
164
+ var e, t, r = "";
165
+ if (typeof n == "string" || typeof n == "number") r += n;
166
+ else if (typeof n == "object") if (Array.isArray(n)) {
167
+ var s = n.length;
168
+ for (e = 0; e < s; e++) n[e] && (t = X(n[e])) && (r && (r += " "), r += t);
169
+ } else for (t in n) n[t] && (r && (r += " "), r += t);
170
+ return r;
154
171
  }
155
- __name(clsx, "clsx");
156
- const crosshairHighlightOverlay = "univer-crosshair-highlight-overlay", crosshairHighlightItem = "univer-crosshair-highlight-item", crosshairHighlightItemSelected = "univer-crosshair-highlight-item-selected", styles = {
157
- crosshairHighlightOverlay,
158
- crosshairHighlightItem,
159
- crosshairHighlightItemSelected
172
+ function ke() {
173
+ for (var n, e, t = 0, r = "", s = arguments.length; t < s; t++) (n = arguments[t]) && (e = X(n)) && (r && (r += " "), r += e);
174
+ return r;
175
+ }
176
+ const Ze = "univer-crosshair-highlight-overlay", Be = "univer-crosshair-highlight-item", Fe = "univer-crosshair-highlight-item-selected", y = {
177
+ crosshairHighlightOverlay: Ze,
178
+ crosshairHighlightItem: Be,
179
+ crosshairHighlightItemSelected: Fe
160
180
  };
161
- function CrosshairOverlay(props) {
162
- const { onChange } = props, crosshairSrv = useDependency(SheetsCrosshairHighlightService), currentColor = useObservable(crosshairSrv.color$), handleColorPicked = useCallback((color) => {
163
- onChange == null || onChange(color);
164
- }, [onChange]);
165
- return /* @__PURE__ */ jsx("div", { className: styles.crosshairHighlightOverlay, children: CROSSHAIR_HIGHLIGHT_COLORS.map((color) => /* @__PURE__ */ jsx(
181
+ function We(n) {
182
+ const { onChange: e } = n, t = se(S), r = ie(t.color$), s = Ee((i) => {
183
+ e == null || e(i);
184
+ }, [e]);
185
+ return /* @__PURE__ */ D.jsx("div", { className: y.crosshairHighlightOverlay, children: q.map((i) => /* @__PURE__ */ D.jsx(
166
186
  "div",
167
187
  {
168
- className: clsx(styles.crosshairHighlightItem, {
169
- [styles.crosshairHighlightItemSelected]: color === currentColor
188
+ className: ke(y.crosshairHighlightItem, {
189
+ [y.crosshairHighlightItemSelected]: i === r
170
190
  }),
171
- style: { backgroundColor: color },
172
- onClick: /* @__PURE__ */ __name(() => handleColorPicked(color), "onClick")
191
+ style: { backgroundColor: i },
192
+ onClick: () => s(i)
173
193
  },
174
- color
194
+ i
175
195
  )) });
176
196
  }
177
- __name(CrosshairOverlay, "CrosshairOverlay");
178
- const CROSSHAIR_HIGHLIGHT_OVERLAY_COMPONENT = "CROSSHAIR_HIGHLIGHT_OVERLAY_COMPONENT";
179
- function CrosshairHighlightMenuItemFactory(accessor) {
180
- const crosshairHighlightService = accessor.get(SheetsCrosshairHighlightService);
197
+ const K = "CROSSHAIR_HIGHLIGHT_OVERLAY_COMPONENT";
198
+ function Ye(n) {
199
+ const e = n.get(S);
181
200
  return {
182
- id: ToggleCrosshairHighlightOperation.id,
201
+ id: M.id,
183
202
  tooltip: "crosshair.button.tooltip",
184
- type: MenuItemType.BUTTON_SELECTOR,
203
+ type: Se.BUTTON_SELECTOR,
185
204
  icon: "CrossHighlightingSingle",
186
205
  selections: [
187
206
  {
188
207
  label: {
189
- name: CROSSHAIR_HIGHLIGHT_OVERLAY_COMPONENT,
208
+ name: K,
190
209
  hoverable: !1
191
210
  }
192
211
  }
193
212
  ],
194
- selectionsCommandId: SetCrosshairHighlightColorOperation.id,
195
- activated$: crosshairHighlightService.enabled$,
196
- hidden$: getMenuHiddenObservable(accessor, UniverInstanceType.UNIVER_SHEET)
213
+ selectionsCommandId: J.id,
214
+ activated$: e.enabled$,
215
+ hidden$: pe(n, x.UNIVER_SHEET)
197
216
  };
198
217
  }
199
- __name(CrosshairHighlightMenuItemFactory, "CrosshairHighlightMenuItemFactory");
200
- const menuSchema = {
201
- [ContextMenuPosition.FOOTER_MENU]: {
202
- [ContextMenuGroup.OTHERS]: {
203
- [ToggleCrosshairHighlightOperation.id]: {
218
+ const qe = {
219
+ [ve.FOOTER_MENU]: {
220
+ [me.OTHERS]: {
221
+ [M.id]: {
204
222
  order: 0,
205
- menuItemFactory: CrosshairHighlightMenuItemFactory
223
+ menuItemFactory: Ye
206
224
  }
207
225
  }
208
226
  }
209
227
  };
210
- var __defProp$2 = Object.defineProperty, __getOwnPropDesc$2 = Object.getOwnPropertyDescriptor, __decorateClass$2 = /* @__PURE__ */ __name((decorators, target, key, kind) => {
211
- for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$2(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
212
- (decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
213
- return kind && result && __defProp$2(target, key, result), result;
214
- }, "__decorateClass$2"), __decorateParam$2 = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$2"), _a;
215
- let SheetsCrosshairHighlightController = (_a = class extends Disposable {
216
- constructor(_componentMgr, _menuManagerService, _cmdSrv) {
217
- super(), this._componentMgr = _componentMgr, this._menuManagerService = _menuManagerService, this._cmdSrv = _cmdSrv, this._initCommands(), this._initMenus(), this._initComponents();
228
+ var Je = Object.defineProperty, Xe = Object.getOwnPropertyDescriptor, Ke = (n, e, t, r) => {
229
+ for (var s = r > 1 ? void 0 : r ? Xe(e, t) : e, i = n.length - 1, o; i >= 0; i--)
230
+ (o = n[i]) && (s = (r ? o(e, t, s) : o(s)) || s);
231
+ return r && s && Je(e, t, s), s;
232
+ }, E = (n, e) => (t, r) => e(t, r, n);
233
+ let b = class extends $ {
234
+ constructor(n, e, t) {
235
+ super(), this._componentMgr = n, this._menuManagerService = e, this._cmdSrv = t, this._initCommands(), this._initMenus(), this._initComponents();
218
236
  }
219
237
  _initCommands() {
220
238
  [
221
- ToggleCrosshairHighlightOperation,
222
- SetCrosshairHighlightColorOperation,
223
- EnableCrosshairHighlightOperation,
224
- DisableCrosshairHighlightOperation
225
- ].forEach((c) => this._cmdSrv.registerCommand(c));
239
+ M,
240
+ J,
241
+ Ae,
242
+ Ge
243
+ ].forEach((n) => this._cmdSrv.registerCommand(n));
226
244
  }
227
245
  _initMenus() {
228
- this._menuManagerService.mergeMenu(menuSchema);
246
+ this._menuManagerService.mergeMenu(qe);
229
247
  }
230
248
  _initComponents() {
231
- this._componentMgr.register(CROSSHAIR_HIGHLIGHT_OVERLAY_COMPONENT, CrosshairOverlay), this._componentMgr.register("CrossHighlightingSingle", CrossHighlightingSingle);
232
- }
233
- }, __name(_a, "SheetsCrosshairHighlightController"), _a);
234
- SheetsCrosshairHighlightController = __decorateClass$2([
235
- __decorateParam$2(0, Inject(ComponentManager)),
236
- __decorateParam$2(1, IMenuManagerService),
237
- __decorateParam$2(2, ICommandService)
238
- ], SheetsCrosshairHighlightController);
239
- const SHEETS_CROSSHAIR_HIGHLIGHT_Z_INDEX = 1, _CrossHairRangeCollection = class _CrossHairRangeCollection {
249
+ this._componentMgr.register(K, We), this._componentMgr.register("CrossHighlightingSingle", Y);
250
+ }
251
+ };
252
+ b = Ke([
253
+ E(0, p(Ce)),
254
+ E(1, Re),
255
+ E(2, oe)
256
+ ], b);
257
+ const ze = 1;
258
+ class Qe {
240
259
  constructor() {
241
- __publicField(this, "_selectedRanges", []);
242
- __publicField(this, "_ranges", []);
260
+ h(this, "_selectedRanges", []);
261
+ h(this, "_ranges", []);
243
262
  }
244
- addRange(range) {
245
- if (range.rangeType === RANGE_TYPE.COLUMN || range.rangeType === RANGE_TYPE.ROW || range.rangeType === RANGE_TYPE.ALL)
263
+ addRange(e) {
264
+ if (e.rangeType === v.COLUMN || e.rangeType === v.ROW || e.rangeType === v.ALL)
246
265
  return;
247
- const intersects = this._getIntersects(range), splitRanges = this._getSplitRanges(range, intersects);
248
- splitRanges.length > 0 && this._ranges.push(...splitRanges);
249
- }
250
- setSelectedRanges(selectedRange) {
251
- this._selectedRanges = selectedRange;
252
- }
253
- _getSplitRanges(range, intersects) {
254
- let splitRanges = [range];
255
- for (const intersect of intersects.concat(this._selectedRanges)) {
256
- const newRanges = [];
257
- for (const splitRange of splitRanges) {
258
- const split = Rectangle.subtract(splitRange, intersect);
259
- split && split.length > 0 && newRanges.push(...split);
266
+ const t = this._getIntersects(e), r = this._getSplitRanges(e, t);
267
+ r.length > 0 && this._ranges.push(...r);
268
+ }
269
+ setSelectedRanges(e) {
270
+ this._selectedRanges = e;
271
+ }
272
+ _getSplitRanges(e, t) {
273
+ let r = [e];
274
+ for (const s of t.concat(this._selectedRanges)) {
275
+ const i = [];
276
+ for (const o of r) {
277
+ const a = T.subtract(o, s);
278
+ a && a.length > 0 && i.push(...a);
260
279
  }
261
- splitRanges = newRanges;
280
+ r = i;
262
281
  }
263
- return splitRanges.filter((range2) => range2.startRow <= range2.endRow && range2.startColumn <= range2.endColumn);
282
+ return r.filter((s) => s.startRow <= s.endRow && s.startColumn <= s.endColumn);
264
283
  }
265
- _getIntersects(addRange) {
266
- const intersects = [];
267
- for (const range of this._ranges) {
268
- const intersect = Rectangle.getIntersects(range, addRange);
269
- intersect && intersects.push(intersect);
284
+ _getIntersects(e) {
285
+ const t = [];
286
+ for (const r of this._ranges) {
287
+ const s = T.getIntersects(r, e);
288
+ s && t.push(s);
270
289
  }
271
- return intersects;
290
+ return t;
272
291
  }
273
292
  getRanges() {
274
293
  return this._ranges;
@@ -276,193 +295,189 @@ const SHEETS_CROSSHAIR_HIGHLIGHT_Z_INDEX = 1, _CrossHairRangeCollection = class
276
295
  reset() {
277
296
  this._ranges = [], this._selectedRanges = [];
278
297
  }
279
- };
280
- __name(_CrossHairRangeCollection, "CrossHairRangeCollection");
281
- let CrossHairRangeCollection = _CrossHairRangeCollection;
282
- const _SheetCrossHairHighlightShape = class _SheetCrossHairHighlightShape extends Shape {
283
- constructor(key, props) {
284
- super(key, props);
298
+ }
299
+ class et extends de {
300
+ constructor(t, r) {
301
+ super(t, r);
285
302
  // protected _showHighLight = false;
286
- __publicField(this, "_color");
287
- props && this.setShapeProps(props);
303
+ h(this, "_color");
304
+ r && this.setShapeProps(r);
288
305
  }
289
- setShapeProps(props) {
290
- typeof props.color < "u" && (this._color = props.color), this.transformByState({
291
- width: props.width,
292
- height: props.height
306
+ setShapeProps(t) {
307
+ typeof t.color < "u" && (this._color = t.color), this.transformByState({
308
+ width: t.width,
309
+ height: t.height
293
310
  });
294
311
  }
295
- _draw(ctx) {
296
- const color = `rgba(${this._color.r}, ${this._color.g}, ${this._color.b}, ${this._color.a})`;
297
- Rect.drawWith(ctx, {
312
+ _draw(t) {
313
+ const r = `rgba(${this._color.r}, ${this._color.g}, ${this._color.b}, ${this._color.a})`;
314
+ fe.drawWith(t, {
298
315
  width: this.width,
299
316
  height: this.height,
300
- fill: color,
317
+ fill: r,
301
318
  stroke: void 0,
302
319
  strokeWidth: 0,
303
320
  evented: !1
304
321
  });
305
322
  }
306
- };
307
- __name(_SheetCrossHairHighlightShape, "SheetCrossHairHighlightShape");
308
- let SheetCrossHairHighlightShape = _SheetCrossHairHighlightShape;
309
- var __defProp$1 = Object.defineProperty, __getOwnPropDesc$1 = Object.getOwnPropertyDescriptor, __decorateClass$1 = /* @__PURE__ */ __name((decorators, target, key, kind) => {
310
- for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$1(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
311
- (decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
312
- return kind && result && __defProp$1(target, key, result), result;
313
- }, "__decorateClass$1"), __decorateParam$1 = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam$1"), _a2;
314
- let SheetCrosshairHighlightRenderController = (_a2 = class extends Disposable {
315
- constructor(_context, _sheetSkeletonManagerService, _sheetsSelectionsService, _sheetsCrosshairHighlightService, _contextService, _refSelectionsService) {
323
+ }
324
+ var tt = Object.defineProperty, rt = Object.getOwnPropertyDescriptor, nt = (n, e, t, r) => {
325
+ for (var s = r > 1 ? void 0 : r ? rt(e, t) : e, i = n.length - 1, o; i >= 0; i--)
326
+ (o = n[i]) && (s = (r ? o(e, t, s) : o(s)) || s);
327
+ return r && s && tt(e, t, s), s;
328
+ }, C = (n, e) => (t, r) => e(t, r, n);
329
+ let H = class extends $ {
330
+ constructor(e, t, r, s, i, o) {
316
331
  super();
317
- __publicField(this, "_shapes", []);
318
- __publicField(this, "_rangeCollection", new CrossHairRangeCollection());
319
- __publicField(this, "_color", "rgba(255,0,0,0.5)");
320
- this._context = _context, this._sheetSkeletonManagerService = _sheetSkeletonManagerService, this._sheetsSelectionsService = _sheetsSelectionsService, this._sheetsCrosshairHighlightService = _sheetsCrosshairHighlightService, this._contextService = _contextService, this._refSelectionsService = _refSelectionsService, this._initRenderListener();
332
+ h(this, "_shapes", []);
333
+ h(this, "_rangeCollection", new Qe());
334
+ h(this, "_color", "rgba(255,0,0,0.5)");
335
+ this._context = e, this._sheetSkeletonManagerService = t, this._sheetsSelectionsService = r, this._sheetsCrosshairHighlightService = s, this._contextService = i, this._refSelectionsService = o, this._initRenderListener();
321
336
  }
322
- _transformSelection(selectionData, sheet) {
323
- if (!selectionData)
337
+ _transformSelection(e, t) {
338
+ if (!e)
324
339
  return;
325
- const rowCount = sheet.getRowCount(), columnCount = sheet.getColumnCount(), ranges = [];
326
- for (const selection of selectionData) {
327
- const { startRow, endRow, startColumn, endColumn } = selection.range;
328
- endRow - startRow + 1 === rowCount || endColumn - startColumn + 1 === columnCount || ranges.push(selection.range);
340
+ const r = t.getRowCount(), s = t.getColumnCount(), i = [];
341
+ for (const o of e) {
342
+ const { startRow: a, endRow: c, startColumn: f, endColumn: l } = o.range;
343
+ c - a + 1 === r || l - f + 1 === s || i.push(o.range);
329
344
  }
330
- this._rangeCollection.setSelectedRanges(ranges);
331
- for (const range of ranges)
332
- this.addSelection(range, sheet);
345
+ this._rangeCollection.setSelectedRanges(i);
346
+ for (const o of i)
347
+ this.addSelection(o, t);
333
348
  }
334
349
  _initRenderListener() {
335
- const workbook = this._context.unit;
336
- this.disposeWithMe(combineLatest([
337
- this._contextService.subscribeContextValue$(REF_SELECTIONS_ENABLED).pipe(startWith(!1)),
350
+ const e = this._context.unit;
351
+ this.disposeWithMe(be([
352
+ this._contextService.subscribeContextValue$(xe).pipe(He(!1)),
338
353
  this._sheetSkeletonManagerService.currentSkeleton$,
339
354
  this._sheetsCrosshairHighlightService.enabled$,
340
- this._sheetsCrosshairHighlightService.color$.pipe(tap((color) => this._color = color)),
341
- merge(
355
+ this._sheetsCrosshairHighlightService.color$.pipe(Oe((t) => this._color = t)),
356
+ j(
342
357
  this._sheetsSelectionsService.selectionMoveStart$,
343
358
  this._sheetsSelectionsService.selectionMoving$,
344
359
  this._sheetsSelectionsService.selectionMoveEnd$,
345
360
  this._sheetsSelectionsService.selectionSet$,
346
- workbook.activeSheet$.pipe(map(() => this._sheetsSelectionsService.getCurrentSelections()))
361
+ e.activeSheet$.pipe(V(() => this._sheetsSelectionsService.getCurrentSelections()))
347
362
  ),
348
- merge(
363
+ j(
349
364
  this._refSelectionsService.selectionMoveStart$,
350
365
  this._refSelectionsService.selectionMoving$,
351
366
  this._refSelectionsService.selectionMoveEnd$,
352
367
  this._sheetsSelectionsService.selectionSet$,
353
- workbook.activeSheet$.pipe(map(() => this._refSelectionsService.getCurrentSelections()))
368
+ e.activeSheet$.pipe(V(() => this._refSelectionsService.getCurrentSelections()))
354
369
  )
355
- ]).subscribe(([refSelectionEnabled, _, enabled, _color, normalSelections, refSelection]) => {
356
- if (this._clear(), !enabled) return;
357
- const selections = refSelectionEnabled ? refSelection : normalSelections;
358
- this._rangeCollection.reset(), this._transformSelection(selections, workbook.getActiveSheet()), this.render(this._rangeCollection.getRanges());
370
+ ]).subscribe(([t, r, s, i, o, a]) => {
371
+ if (this._clear(), !s) return;
372
+ const c = t ? a : o;
373
+ this._rangeCollection.reset(), this._transformSelection(c, e.getActiveSheet()), this.render(this._rangeCollection.getRanges());
359
374
  }));
360
375
  }
361
- addSelection(range, sheet) {
362
- if (range.rangeType === RANGE_TYPE.COLUMN || range.rangeType === RANGE_TYPE.ROW || range.rangeType === RANGE_TYPE.ALL)
376
+ addSelection(e, t) {
377
+ if (e.rangeType === v.COLUMN || e.rangeType === v.ROW || e.rangeType === v.ALL)
363
378
  return;
364
- const maxRow = sheet.getRowCount(), maxColumn = sheet.getColumnCount(), { startRow, endRow, startColumn, endColumn } = range, left = {
365
- startRow,
366
- endRow,
379
+ const r = t.getRowCount(), s = t.getColumnCount(), { startRow: i, endRow: o, startColumn: a, endColumn: c } = e, f = {
380
+ startRow: i,
381
+ endRow: o,
367
382
  startColumn: 0,
368
- endColumn: startColumn - 1
369
- }, right = {
370
- startRow,
371
- endRow,
372
- startColumn: endColumn + 1,
373
- endColumn: maxColumn
374
- }, top = {
383
+ endColumn: a - 1
384
+ }, l = {
385
+ startRow: i,
386
+ endRow: o,
387
+ startColumn: c + 1,
388
+ endColumn: s
389
+ }, d = {
375
390
  startRow: 0,
376
- endRow: startRow - 1,
377
- startColumn,
378
- endColumn
379
- }, bottom = {
380
- startRow: endRow + 1,
381
- endRow: maxRow,
382
- startColumn,
383
- endColumn
391
+ endRow: i - 1,
392
+ startColumn: a,
393
+ endColumn: c
394
+ }, _ = {
395
+ startRow: o + 1,
396
+ endRow: r,
397
+ startColumn: a,
398
+ endColumn: c
384
399
  };
385
- for (const range2 of [left, right, top, bottom])
386
- range2.startRow <= range2.endRow && range2.startColumn <= range2.endColumn && this._rangeCollection.addRange(range2);
400
+ for (const u of [f, l, d, _])
401
+ u.startRow <= u.endRow && u.startColumn <= u.endColumn && this._rangeCollection.addRange(u);
387
402
  }
388
403
  _clear() {
389
- this._shapes.forEach((shape) => {
390
- shape.dispose();
404
+ this._shapes.forEach((e) => {
405
+ e.dispose();
391
406
  }), this._shapes = [];
392
407
  }
393
- _addShapes(range, index, scene, skeleton) {
394
- const { startRow, endRow, startColumn, endColumn } = range, startPosition = getCoordByCell(startRow, startColumn, scene, skeleton), endPosition = getCoordByCell(endRow, endColumn, scene, skeleton), { startX, startY } = startPosition, { endX, endY } = endPosition, width = endX - startX, height = endY - startY, shapeProps = {
395
- left: startX,
396
- top: startY,
397
- color: new ColorKit(this._color).toRgb(),
398
- width,
399
- height,
400
- zIndex: SHEETS_CROSSHAIR_HIGHLIGHT_Z_INDEX,
408
+ _addShapes(e, t, r, s) {
409
+ const { startRow: i, endRow: o, startColumn: a, endColumn: c } = e, f = L(i, a, r, s), l = L(o, c, r, s), { startX: d, startY: _ } = f, { endX: u, endY: z } = l, Q = u - d, ee = z - _, te = {
410
+ left: d,
411
+ top: _,
412
+ color: new ce(this._color).toRgb(),
413
+ width: Q,
414
+ height: ee,
415
+ zIndex: ze,
401
416
  evented: !1
402
- }, currentShapes = new SheetCrossHairHighlightShape(`crosshair-${index}`, shapeProps);
403
- this._shapes.push(currentShapes), scene.addObject(currentShapes);
417
+ }, P = new et(`crosshair-${t}`, te);
418
+ this._shapes.push(P), r.addObject(P);
404
419
  }
405
- render(ranges) {
406
- const skeleton = this._sheetSkeletonManagerService.getCurrentSkeleton();
407
- if (!skeleton)
420
+ render(e) {
421
+ const t = this._sheetSkeletonManagerService.getCurrentSkeleton();
422
+ if (!t)
408
423
  return;
409
- const { scene } = this._context;
424
+ const { scene: r } = this._context;
410
425
  this._clear();
411
- for (let i = 0; i < ranges.length; i++) {
412
- const range = ranges[i];
413
- this._addShapes(range, i, scene, skeleton);
426
+ for (let s = 0; s < e.length; s++) {
427
+ const i = e[s];
428
+ this._addShapes(i, s, r, t);
414
429
  }
415
- scene.makeDirty(!0);
430
+ r.makeDirty(!0);
416
431
  }
417
432
  async dispose() {
418
433
  super.dispose();
419
434
  }
420
- }, __name(_a2, "SheetCrosshairHighlightRenderController"), _a2);
421
- SheetCrosshairHighlightRenderController = __decorateClass$1([
422
- __decorateParam$1(1, Inject(SheetSkeletonManagerService)),
423
- __decorateParam$1(2, Inject(SheetsSelectionsService)),
424
- __decorateParam$1(3, Inject(SheetsCrosshairHighlightService)),
425
- __decorateParam$1(4, Inject(IContextService)),
426
- __decorateParam$1(5, IRefSelectionsService)
427
- ], SheetCrosshairHighlightRenderController);
428
- var __defProp2 = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __decorateClass = /* @__PURE__ */ __name((decorators, target, key, kind) => {
429
- for (var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target, i = decorators.length - 1, decorator; i >= 0; i--)
430
- (decorator = decorators[i]) && (result = (kind ? decorator(target, key, result) : decorator(result)) || result);
431
- return kind && result && __defProp2(target, key, result), result;
432
- }, "__decorateClass"), __decorateParam = /* @__PURE__ */ __name((index, decorator) => (target, key) => decorator(target, key, index), "__decorateParam"), _a3;
433
- let UniverSheetsCrosshairHighlightPlugin = (_a3 = class extends Plugin {
434
- constructor(_config = defaultPluginConfig, _injector, _renderManagerService, _configService) {
435
- super(), this._config = _config, this._injector = _injector, this._renderManagerService = _renderManagerService, this._configService = _configService;
436
- const { ...rest } = merge$1(
435
+ };
436
+ H = nt([
437
+ C(1, p(Me)),
438
+ C(2, p(we)),
439
+ C(3, p(S)),
440
+ C(4, p(ae)),
441
+ C(5, $e)
442
+ ], H);
443
+ var st = Object.defineProperty, it = Object.getOwnPropertyDescriptor, ot = (n, e, t, r) => {
444
+ for (var s = r > 1 ? void 0 : r ? it(e, t) : e, i = n.length - 1, o; i >= 0; i--)
445
+ (o = n[i]) && (s = (r ? o(e, t, s) : o(s)) || s);
446
+ return r && s && st(e, t, s), s;
447
+ }, w = (n, e) => (t, r) => e(t, r, n), R;
448
+ let k = (R = class extends le {
449
+ constructor(n = A, e, t, r) {
450
+ super(), this._config = n, this._injector = e, this._renderManagerService = t, this._configService = r;
451
+ const { ...s } = he(
437
452
  {},
438
- defaultPluginConfig,
453
+ A,
439
454
  this._config
440
455
  );
441
- this._configService.setConfig(SHEETS_CROSSHAIR_HIGHLIGHT_PLUGIN_CONFIG_KEY, rest);
456
+ this._configService.setConfig(Pe, s);
442
457
  }
443
458
  onStarting() {
444
459
  [
445
- [SheetsCrosshairHighlightService],
446
- [SheetsCrosshairHighlightController]
447
- ].forEach((d) => this._injector.add(d));
460
+ [S],
461
+ [b]
462
+ ].forEach((n) => this._injector.add(n));
448
463
  }
449
464
  onReady() {
450
465
  [
451
- [SheetCrosshairHighlightRenderController]
452
- ].forEach((d) => this._injector.add(d)), this._injector.get(SheetsCrosshairHighlightController), this._renderManagerService.registerRenderModule(UniverInstanceType.UNIVER_SHEET, [SheetCrosshairHighlightRenderController]);
453
- }
454
- }, __name(_a3, "UniverSheetsCrosshairHighlightPlugin"), __publicField(_a3, "pluginName", "SHEET_CROSSHAIR_HIGHLIGHT_PLUGIN"), __publicField(_a3, "type", UniverInstanceType.UNIVER_SHEET), _a3);
455
- UniverSheetsCrosshairHighlightPlugin = __decorateClass([
456
- __decorateParam(1, Inject(Injector)),
457
- __decorateParam(2, IRenderManagerService),
458
- __decorateParam(3, IConfigService)
459
- ], UniverSheetsCrosshairHighlightPlugin);
466
+ [H]
467
+ ].forEach((n) => this._injector.add(n)), this._injector.get(b), this._renderManagerService.registerRenderModule(x.UNIVER_SHEET, [H]);
468
+ }
469
+ }, h(R, "pluginName", "SHEET_CROSSHAIR_HIGHLIGHT_PLUGIN"), h(R, "type", x.UNIVER_SHEET), R);
470
+ k = ot([
471
+ w(1, p(ge)),
472
+ w(2, _e),
473
+ w(3, ue)
474
+ ], k);
460
475
  export {
461
- CROSSHAIR_HIGHLIGHT_COLORS,
462
- DisableCrosshairHighlightOperation,
463
- EnableCrosshairHighlightOperation,
464
- SetCrosshairHighlightColorOperation,
465
- SheetsCrosshairHighlightService,
466
- ToggleCrosshairHighlightOperation,
467
- UniverSheetsCrosshairHighlightPlugin
476
+ q as CROSSHAIR_HIGHLIGHT_COLORS,
477
+ Ge as DisableCrosshairHighlightOperation,
478
+ Ae as EnableCrosshairHighlightOperation,
479
+ J as SetCrosshairHighlightColorOperation,
480
+ S as SheetsCrosshairHighlightService,
481
+ M as ToggleCrosshairHighlightOperation,
482
+ k as UniverSheetsCrosshairHighlightPlugin
468
483
  };