-
-
Notifications
You must be signed in to change notification settings - Fork 648
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(pivot): fix scroll height & add hooks to format paint #3224
Conversation
VicKun4937
commented
Aug 28, 2024
- fix scroll height to be a interger
- add before apply format hooks
View Deployment
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #3224 +/- ##
=======================================
Coverage 28.63% 28.63%
=======================================
Files 2025 2025
Lines 106972 106979 +7
Branches 23130 23134 +4
=======================================
+ Hits 30629 30633 +4
- Misses 76343 76346 +3 ☔ View full report in Codecov by Sentry. |
@@ -68,6 +79,7 @@ export class FormatPainterService extends Disposable implements IFormatPainterSe | |||
private readonly _status$: BehaviorSubject<FormatPainterStatus>; | |||
private _defaultHook: IFormatPainterHook | null = null; | |||
private _extendHooks: IFormatPainterHook[] = []; | |||
private _beforeApplyHooks: IFormatPainterBeforeApplyHook[] = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
beforeApply 是否放在原有的IFormatPainterHook里更会好? 和onApply平级,这样和其他的 hook 的设计方式是一致的。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
似乎不可以,因为功能不一样, 这个是阻止执行的, 原先的hook 会sort
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
has fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM