fix!: remove MarkerSvg and uses#8991
fix!: remove MarkerSvg and uses#8991rachel-fenichel merged 4 commits intoRaspberryPiFoundation:rc/v12.0.0from rachel-fenichel:excise-marker
Conversation
|
Does not fix #8968 |
| renderManagement | ||
| .finishQueuedRenders() | ||
| .then(() => void this.markerManager.updateMarkers()); |
There was a problem hiding this comment.
Should render no longer call renderManagement.finishQueuedRenders() at all?
(Maybe the queued renderers will be finished automatically, and the method call is not needed if you don't need the resulting promise?)
There was a problem hiding this comment.
Yes, queued renders will finish automatically, and the method call is specifically to be able to get a promise and run after the renders have finished.
| export interface IASTNodeLocationSvg extends IASTNodeLocation { | ||
|
|
||
| } | ||
| export interface IASTNodeLocationSvg extends IASTNodeLocation {} |
There was a problem hiding this comment.
Could this interface not be deleted entirely, now that it is empty?
I suppose we could formally deprecate it first, but since anyone who was calling setFooSvg on an IASTNodeLocationSvg instance already has broken code I'm not sure it's worth it.
|
For some reason GitHub hasn't run build, format or lint workflows, and I can't figure out how to kick it in to action. |
|
Workflows ran and passed. |
bb76d6e
into
RaspberryPiFoundation:rc/v12.0.0
The basics
The details
Resolves
Fix for #8962
Proposed Changes
Commit 1: Delete the actual drawer, subclasses, and uses
Commit 2: Delete residual SVG elements that were rendered through the cursor/marker flow instead of through the normal block flow.
Commits 3 and 4: lint and format.
Reason for Changes
MarkerSvgand friends represented a way to draw the cursor that was outside of the standard rendering flow. These SVG elements were children of the standard block (field, workspace, etc) SVG elements, but were updated through explicit calls tosetCurNodeon the cursor.Ben's focus changes updated focus rendering to use elements that are rendered/updated through the standard rendering flow. Where possible, focus is shown using CSS rather than by creating new elements.
Test Coverage
Documentation
Additional Information
hide().IASTNodeLocationSvgcan be removed as a follow-up, if it hasn't already been removed during refactors ofASTNode.