@univerjs/engine-render 0.21.0 → 0.21.1-insiders.20260509-bf98cad
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/README.md +25 -18
- package/lib/cjs/index.js +721 -906
- package/lib/es/index.js +721 -906
- package/lib/types/components/sheets/sheet.render-skeleton.d.ts +1 -0
- package/lib/types/render-manager/render-manager.service.d.ts +4 -4
- package/lib/types/render-manager/render-unit.d.ts +4 -2
- package/lib/umd/index.js +2 -3
- package/package.json +14 -10
- package/LICENSE +0 -176
|
@@ -69,6 +69,7 @@ export declare class SpreadsheetSkeleton extends SheetSkeleton {
|
|
|
69
69
|
private _gridlinesColor;
|
|
70
70
|
private _scene;
|
|
71
71
|
constructor(worksheet: Worksheet, _styles: Styles, _localeService: LocaleService, _contextService: IContextService, _configService: IConfigService, _injector: Injector);
|
|
72
|
+
registerGetCellHeight(): void;
|
|
72
73
|
setScene(scene: Scene): void;
|
|
73
74
|
_updateLayout(): void;
|
|
74
75
|
/**
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { Dependency, DependencyIdentifier, IDisposable, Nullable, UnitModel } from '@univerjs/core';
|
|
16
|
+
import type { Dependency, DependencyIdentifier, ICreateUnitOptions, IDisposable, Nullable, UnitModel } from '@univerjs/core';
|
|
17
17
|
import type { Observable } from 'rxjs';
|
|
18
18
|
import type { BaseObject } from '../base-object';
|
|
19
19
|
import type { DocComponent } from '../components/docs/doc-component';
|
|
@@ -31,7 +31,7 @@ export interface IRenderManagerService extends IDisposable {
|
|
|
31
31
|
* @param unitId
|
|
32
32
|
* @returns renderUnit:IRender
|
|
33
33
|
*/
|
|
34
|
-
createRender(unitId: string): IRender;
|
|
34
|
+
createRender(unitId: string, createUnitOptions?: ICreateUnitOptions): IRender;
|
|
35
35
|
removeRender(unitId: string): void;
|
|
36
36
|
/**
|
|
37
37
|
* Get RenderUnit By Id, RenderUnit implements IRender
|
|
@@ -97,7 +97,7 @@ export declare class RenderManagerService extends Disposable implements IRenderM
|
|
|
97
97
|
* @param unitId
|
|
98
98
|
* @returns renderUnit:IRender
|
|
99
99
|
*/
|
|
100
|
-
createRender(unitId: string): IRender;
|
|
100
|
+
createRender(unitId: string, createUnitOptions?: ICreateUnitOptions): IRender;
|
|
101
101
|
getAllRenderersOfType(type: UniverInstanceType): RenderUnit[];
|
|
102
102
|
/**
|
|
103
103
|
* init deps by injector.get(dep), and injector derives from renderer.
|
|
@@ -112,7 +112,7 @@ export declare class RenderManagerService extends Disposable implements IRenderM
|
|
|
112
112
|
* @param isMainScene
|
|
113
113
|
* @returns renderUnit:IRender
|
|
114
114
|
*/
|
|
115
|
-
protected _createRender(unitId: string, engine: Engine, isMainScene?: boolean): IRender;
|
|
115
|
+
protected _createRender(unitId: string, engine: Engine, isMainScene?: boolean, createUnitOptions?: ICreateUnitOptions): IRender;
|
|
116
116
|
addRender(unitId: string, renderUnit: IRender): void;
|
|
117
117
|
private _addRenderUnit;
|
|
118
118
|
removeRender(unitId: string): void;
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* See the License for the specific language governing permissions and
|
|
14
14
|
* limitations under the License.
|
|
15
15
|
*/
|
|
16
|
-
import type { Dependency, DependencyIdentifier, IDisposable, Nullable, UnitModel, UniverInstanceType } from '@univerjs/core';
|
|
16
|
+
import type { Dependency, DependencyIdentifier, ICreateUnitOptions, IDisposable, Nullable, UnitModel, UniverInstanceType } from '@univerjs/core';
|
|
17
17
|
import type { Observable } from 'rxjs';
|
|
18
18
|
import type { Engine } from '../engine';
|
|
19
19
|
import type { Scene } from '../scene';
|
|
@@ -85,7 +85,9 @@ export declare class RenderUnit extends Disposable implements IRender {
|
|
|
85
85
|
set scene(scene: Scene);
|
|
86
86
|
get scene(): Scene;
|
|
87
87
|
get components(): Map<string, RenderComponentType>;
|
|
88
|
-
constructor(init: Pick<IRenderContext, 'engine' | 'scene' | 'isMainScene' | 'unit'
|
|
88
|
+
constructor(init: Pick<IRenderContext, 'engine' | 'scene' | 'isMainScene' | 'unit'> & {
|
|
89
|
+
createUnitOptions?: ICreateUnitOptions;
|
|
90
|
+
}, parentInjector: Injector);
|
|
89
91
|
dispose(): void;
|
|
90
92
|
/**
|
|
91
93
|
* Get a dependency from the RenderUnit's injector.
|