@univerjs/ui 0.9.1 → 0.9.2
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
|
@@ -2951,6 +2951,13 @@ class rt {
|
|
|
2951
2951
|
_notice() {
|
|
2952
2952
|
this._domLayers$.next(Array.from(this._domLayerMap.entries()));
|
|
2953
2953
|
}
|
|
2954
|
+
updateFloatDom(t, r) {
|
|
2955
|
+
const n = this._domLayerMap.get(t);
|
|
2956
|
+
n && (this._domLayerMap.set(t, {
|
|
2957
|
+
...n,
|
|
2958
|
+
...r
|
|
2959
|
+
}), this._notice());
|
|
2960
|
+
}
|
|
2954
2961
|
addFloatDom(t) {
|
|
2955
2962
|
this._domLayerMap.set(t.id, t), this._notice();
|
|
2956
2963
|
}
|
package/lib/index.js
CHANGED
|
@@ -2951,6 +2951,13 @@ class rt {
|
|
|
2951
2951
|
_notice() {
|
|
2952
2952
|
this._domLayers$.next(Array.from(this._domLayerMap.entries()));
|
|
2953
2953
|
}
|
|
2954
|
+
updateFloatDom(t, r) {
|
|
2955
|
+
const n = this._domLayerMap.get(t);
|
|
2956
|
+
n && (this._domLayerMap.set(t, {
|
|
2957
|
+
...n,
|
|
2958
|
+
...r
|
|
2959
|
+
}), this._notice());
|
|
2960
|
+
}
|
|
2954
2961
|
addFloatDom(t) {
|
|
2955
2962
|
this._domLayerMap.set(t.id, t), this._notice();
|
|
2956
2963
|
}
|
|
@@ -28,6 +28,7 @@ export declare class CanvasFloatDomService {
|
|
|
28
28
|
domLayers$: Observable<[string, IFloatDom][]>;
|
|
29
29
|
get domLayers(): [string, IFloatDom][];
|
|
30
30
|
private _notice;
|
|
31
|
+
updateFloatDom(id: string, item: Partial<IFloatDom>): void;
|
|
31
32
|
addFloatDom(item: IFloatDom): void;
|
|
32
33
|
removeFloatDom(id: string): void;
|
|
33
34
|
removeAll(): void;
|