-
Notifications
You must be signed in to change notification settings - Fork 0
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
refactor: migrate scratch-blocks to Typescript #224
Conversation
…icator_label_flyout_inflater.ts
…_flyout_inflater.ts
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 but please ask CWF to look at the structure of it and sign off.
For later cleanup: many fields have a lot of underscores on private properties, which can now be renamed.
@cwillisf let me know if this all looks good to you! |
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.
Exciting!
This PR migrates the scratch-blocks codebase to Typescript, and cleans up/modernizes a few files. Two files are unconverted:
layout_()
on VerticalFlyout (bypassing its parent class), which is a protected method. Although it is a subclass, because its parent class (ContinuousFlyout) is JS, TS doesn't know this and complains. This is a temporary workaround that can be removed once the Continuous Toolbox plugin is updated to account for the new flyout API, at which point this file can be converted.ISelectable
requires a publicworkspace
field.CommentView
, the superclass ofScratchCommentBubble
, has aworkspace
field, but it's private, soCommentView
can't make it public to implement the interface. This will either need to be made public in core, or have the field in core named something else.