@univerjs/engine-render 0.8.1 → 0.8.2-nightly.202506201607
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/index.js +1 -1
- package/lib/es/index.js +2000 -1989
- package/lib/index.js +2000 -1989
- package/lib/types/render-manager/render-manager.service.d.ts +4 -2
- package/lib/umd/index.js +1 -1
- package/package.json +3 -3
- package/LICENSE +0 -176
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dependency, DependencyIdentifier, IDisposable, Nullable, UnitModel, UnitType, Disposable, Injector, IUniverInstanceService, UniverInstanceType } from '@univerjs/core';
|
|
1
|
+
import { Dependency, DependencyIdentifier, IDisposable, Nullable, UnitModel, UnitType, Disposable, Injector, IUniverInstanceService, ThemeService, UniverInstanceType } from '@univerjs/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { BaseObject } from '../base-object';
|
|
4
4
|
import { DocComponent } from '../components/docs/doc-component';
|
|
@@ -46,6 +46,7 @@ export interface IRenderManagerService extends IDisposable {
|
|
|
46
46
|
export declare class RenderManagerService extends Disposable implements IRenderManagerService {
|
|
47
47
|
protected readonly _injector: Injector;
|
|
48
48
|
protected readonly _univerInstanceService: IUniverInstanceService;
|
|
49
|
+
private readonly _themeService;
|
|
49
50
|
private _defaultEngine;
|
|
50
51
|
private _renderMap;
|
|
51
52
|
private readonly _createRender$;
|
|
@@ -57,7 +58,7 @@ export declare class RenderManagerService extends Disposable implements IRenderM
|
|
|
57
58
|
readonly disposed$: Observable<string>;
|
|
58
59
|
get defaultEngine(): Engine;
|
|
59
60
|
private readonly _renderDependencies;
|
|
60
|
-
constructor(_injector: Injector, _univerInstanceService: IUniverInstanceService);
|
|
61
|
+
constructor(_injector: Injector, _univerInstanceService: IUniverInstanceService, _themeService: ThemeService);
|
|
61
62
|
dispose(): void;
|
|
62
63
|
registerRenderModules(type: UnitType, deps: Dependency[]): IDisposable;
|
|
63
64
|
/**
|
|
@@ -72,6 +73,7 @@ export declare class RenderManagerService extends Disposable implements IRenderM
|
|
|
72
73
|
* @returns Dependency[]
|
|
73
74
|
*/
|
|
74
75
|
private _getRenderDepsByType;
|
|
76
|
+
private _initDarkModeListener;
|
|
75
77
|
create(unitId: string): void;
|
|
76
78
|
/**
|
|
77
79
|
* create renderUnit & init deps from renderDependencies
|