/** * Copyright 2023-present DreamNum Co., Ltd. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import type { UnitModel } from '@univerjs/core'; import type { IRenderContext, IRenderModule, RichText } from '@univerjs/engine-render'; import type { ISlideRichTextProps } from '../type'; import { ICommandService, IUniverInstanceService, RxDisposable } from '@univerjs/core'; import { Subject } from 'rxjs'; import { ISlideEditorBridgeService } from '../services/slide-editor-bridge.service'; export declare class SlideEditorBridgeRenderController extends RxDisposable implements IRenderModule { private readonly _renderContext; private readonly _instanceSrv; private readonly _commandService; private readonly _editorBridgeService; /** * It is used to distinguish whether the user has actively moved the cursor in the editor, mainly through mouse clicks. */ /** If the corresponding unit is active and prepared for editing. */ setSlideTextEditor$: Subject; private _curRichText; private _d; constructor(_renderContext: IRenderContext, _instanceSrv: IUniverInstanceService, _commandService: ICommandService, _editorBridgeService: ISlideEditorBridgeService); private _init; private _disposeCurrent; private _setEditorRect; private _initEventListener; pickOtherObjects(): void; /** * invoked when picking other object. * * save editing state to curr richText. */ endEditing(): false | undefined; /** * TODO calling twice ???? * editingParam derives from RichText object. * * TODO @lumixraku need scale param * @param target */ startEditing(pageId: string, target: RichText): void; setEditorVisible(visible: boolean): void; }