-
Notifications
You must be signed in to change notification settings - Fork 13
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
SY-1098 Add Ability to Resize Most Schematic Symbols #813
SY-1098 Add Ability to Resize Most Schematic Symbols #813
Conversation
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## rc #813 +/- ##
==========================================
- Coverage 46.48% 46.38% -0.11%
==========================================
Files 1083 1090 +7
Lines 67600 67833 +233
Branches 3494 3514 +20
==========================================
+ Hits 31424 31464 +40
- Misses 35129 35316 +187
- Partials 1047 1053 +6
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
This generally looks ok. I think we need to make some other changes for this feature to be nice though. Label positions look strange when elements are larger. Take this rotary mixer for example. It's probably pretty common to want to make this thing pretty large. It looks strange to fill in the entire mixer when it is turned on. We should probably make it so you hook up a switch to turn the mixer on and off, then we can make it possible to hide and show the controls states on it, so then it becomes more of a 'static' element. Also, if you can scale the element, you should also have the option to make the stroke width of the symbol larger or smaller. |
Even though you would probably want to have a rotary mixer that big on your P&ID |
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.
Approved, although I think we need to spend more time thinking about the larger implications of making sure this feature has a nice UX
Feature Pull Request Template
Key Information
Description
Added ability to resize (almost) any schematic symbols - buttons, switches, values, and setpoints still cannot be resized. Also refactored some code in relevant files.
NOTE: Previous versions of the schematic will have a
scale
ofnull
, so the options for scaling them will not show up. I don't know a great way to fix this problem, and don't think it matters too much - all it means is that the elements created before this version gets released cannot be scaled. If someone wants to scale that element, they could delete it and replace it with a new one.Basic Readiness Checklist
Migrations
properly migrated to new formats.
properly migrated to new formats.
Additional Notes
Manual QA Additions
with necessary manual QA steps to test my change.
Breaking Changes
Please list any breaking changes to public or internal packages.
Reviwer Checklist