-
Notifications
You must be signed in to change notification settings - Fork 3.8k
feat: merge branch osd
into develop
#8173
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
Conversation
…um-standalone" (google#7520) This reverts commit b22656b.
* minor: update return type of widgetCreate_ Signed-off-by: Akanksha Kushwaha <cmakanksha@gmail.com> * minor: remove 'as HTMLInputElement' cast Signed-off-by: Akanksha Kushwaha <cmakanksha@gmail.com> * minor: update return type and cast Signed-off-by: Akanksha Kushwaha <cmakanksha@gmail.com> --------- Signed-off-by: Akanksha Kushwaha <cmakanksha@gmail.com>
fix: move delete keyboard shortcut in-progress gesture check to precondition google#6274
* removed internal from horizontal and vertical flyout * feat : made the method isDragTowardWorkspace non private * feat : made the method isDragTowardWorkspace non private --------- Co-authored-by: Ramya Non-IU <ramyaram2092@outlook.com>
* fix: Paste block in viewport / near cursor * Fix: formatting fix with prettier * fix import path for Coordinate * fix import path for coordinate * paste so that the block's center is at the viewport center
* Removed underscore from isLabel_ in flyout_button.ts * chore: rename isLabel_ to isFlyoutLabel in flyout_button.ts * fix: format --------- Co-authored-by: sayali-kandarkar <skandark@andrew.cmu.edu>
…oogle#7191 (google#7517) * addition of the .gitattributes file * Update .gitattributes
…oogle#7522 (google#7537) * google#7522 edits -- collaborated with Hinal Patel, Swedhaa Sri Elango, & Yuchi Hsieh * google#7522 edits: collaborated with Hinal Patel, Swedhaa Sri Elango, & Yuchi Hsieh * fix: non-nullable check for block variable and removed ! in layout_ google#7522 * fix: non-nullable check for block variable and removed ! in layout_
…oogle#7536) * Fix: 7523 - non-nullable check for block variable and removed ! * Fix: non nullable check for block variable * fix: fixed styling issue * fix: updated block variable nullable condition * Updated nullable condition for block variable
* fix: pasting with nothing selected * fix: import * chore: format
This reverts commit c37f4b8.
@@ -0,0 +1 @@ | |||
* text=auto |
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.
Should this be included?
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.
Yes, this is the fix for #7191
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.
One question and then lgtm. Thanks for sorting this out!
The basics
The details
Resolves
Fixes #6848 & many others already marked closed
Proposed Changes
osd
branch intodevelop
getRelativeToSurfaceXY
to theIMovable
interface. However, doing so would have been have been a breaking change since this interface is public. Additionally, it seems no longer necessary as this interface appears to be totally unused now within Blockly. The precondition function forcopy
checks that the selected objectisDraggable
10000 , and theIDraggable
interface includesgetRelativeToSurfaceXY
. Therefore, no changes to any interfaces were required.contains
instead of doing manual coordinate math.copyCoords
when they were within the viewport. Instead, I chose not to pass any coordinates and let the paster choose the location. This has the same effect in practice but may be better in the future depending on the paster.copyCoords
might be null, and I don't return early if that's the case, I just let the paster handle the location as before. In practice, I don't think they ever will be null with the current set of copyable objects, but sincegetRelativeToSurfaceXY
is only required by theIDraggable
interface and not theICopyable
interface, this seemed prudent.Reason for Changes
Merging in fixes from contributors.
Test Coverage
I have hand-checked each of the commits to ensure they are still relevant & intended. Aside from the two mentioned above, these changes are all relevant, intended, plus straightforward. The paste behavior has been checked carefully, including looking for symptoms of #8099, after reapplying #7521. Tested both block & workspace comment pasting within viewport & after scrolling.
Documentation
Additional Information
As an aside, it's interesting to note that the
preconditionFn
forcopy
requires that the selected item be bothcopyable
anddraggable
. ThepreconditionFn
forcut
does not check that the selected item bedraggable
, but the actualcallback
does return false if the object isn'tdraggable
. Fixing that seemed outside the scope of this PR though.This PR should be merged, not squashed