Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(sheet): editor access to sheet #290

Merged
merged 10 commits into from
Oct 16, 2023
Merged

feat(sheet): editor access to sheet #290

merged 10 commits into from
Oct 16, 2023

Conversation

DR-Univer
Copy link
Collaborator

No description provided.

@github-actions
Copy link

github-actions bot commented Oct 15, 2023

[View Deployment]

// create univer doc editor instance
univer.createUniverDoc(DOCS_EDITOR_SNAPSHOT);
// create univer doc normal editor instance
univer.createUniverDoc({
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个创建的过程应该由 sheet 的 controller 来负责而不是交给用户来做

}

export interface ICellEditorManagerService {
state$: Observable<Nullable<ICellEditorManagerParam>>;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

建议 ICellEditorManagerParam 接口名称以 state 结尾以和其他 API 保持一致

}

private _initialKeyboardListener() {
this._textSelectionRenderManager.onInput$.subscribe(this._showEditorByKeyboard.bind(this));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

订阅必须要有对应的注销逻辑


// this._textSelectionRenderManager.changeRuntime(docSkeleton, scene);

this._textSelectionRenderManager.active(-1000, -1000);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

textSelectionRenderManager 应该暴露一个 deactivate 方法

另外 active 是个形容词, 应该用动词 activate

@DR-Univer DR-Univer merged commit 7d4851c into dev Oct 16, 2023
3 checks passed
@DR-Univer DR-Univer deleted the refactor-base-doc-third branch October 16, 2023 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants