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!: add abstract icon class #7060

Merged
merged 5 commits into from
May 9, 2023

Conversation

BeksOmega
Copy link
Collaborator

@BeksOmega BeksOmega commented May 5, 2023

The basics

  • I branched from develop
  • My pull request is against develop
  • My code follows the style guide
  • I ran npm run format and npm run lint

The details

Resolves

Fixes #7036

Proposed Changes

Adds an abstract Icon class.

Reason for Changes

To facilitate code reuse between the built-in icon classes.

Test Coverage

N/A

Documentation

N/A

Additional Information

I think I will probably want the abstract class to implement hasBubble once the bubble code is reorganized! but I'm going to wait until then to fix it =)

All existing icons still extend the old icon abstract class.

Dependent on #7054

Breaking changes / updating / upgrading

This change is unlikely to affect you unless you are monkey patching Blockly to support custom icons. In this case, we recommend checking out the docs for using custom icons, and bringing your implementation back to mainline based on those =)

If you were using the Blockly.Icon class it is now located at Blockly.icons.Icon. The blockly migration script can automatically perform this rename for you.

@github-actions github-actions bot added the PR: feature Adds a feature label May 5, 2023
@BeksOmega BeksOmega marked this pull request as ready for review May 9, 2023 18:45
@BeksOmega BeksOmega requested a review from a team as a code owner May 9, 2023 18:45
@BeksOmega BeksOmega requested a review from cpcallen May 9, 2023 18:45
core/icons/icon.ts Outdated Show resolved Hide resolved
core/icons/icon.ts Show resolved Hide resolved
@BeksOmega BeksOmega enabled auto-merge (squash) May 9, 2023 23:40
@BeksOmega BeksOmega merged commit 39cdd8a into google:develop May 9, 2023
@BeksOmega BeksOmega changed the title feat: add abstract icon class feat!: add abstract icon class Jun 13, 2023
@github-actions github-actions bot added breaking change Used to mark a PR or issue that changes our public APIs. PR: feature Adds a feature and removed PR: feature Adds a feature breaking change Used to mark a PR or issue that changes our public APIs. labels Jun 13, 2023
@BeksOmega BeksOmega mentioned this pull request Jun 13, 2023
4 tasks
@BeksOmega BeksOmega deleted the feat/abstract-icon branch May 14, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Used to mark a PR or issue that changes our public APIs. PR: feature Adds a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement the IIcon interface
3 participants