-
Notifications
You must be signed in to change notification settings - Fork 734
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor Ruler class to centralize common functionality and enforce s…
…ubclass implementation - Converted ruler file into typescript - created base class and subclass for Horizontal and vertical ruler - Moved the `_updatePaintTimer` method to the base `Ruler` class to avoid duplication across `HRuler` and `VRuler`. - Added `_updateBreakPoints` as an abstract-like method in the base class, throwing an error to enforce implementation in subclasses. - Streamlined the initialization logic in `Ruler.initializeRuler` for better readability and modularity. Signed-off-by: Darshan-upadhyay1110 <[email protected]> Change-Id: I8f0187588ffab533e135023285acb3dcada832d4
- Loading branch information
1 parent
86203fc
commit 0a8e884
Showing
7 changed files
with
1,259 additions
and
950 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.