seongjinyoon commented on code in PR #3809:
URL: https://github.com/apache/texera/pull/3809#discussion_r2400507432


##########
core/gui/src/app/workspace/component/workflow-editor/workflow-editor.component.ts:
##########
@@ -1422,13 +1421,23 @@ export class WorkflowEditorComponent implements OnInit, 
AfterViewInit, OnDestroy
   private static RemoveButton: new () => joint.linkTools.Button;
 
   private static getRemoveButton(): new () => joint.linkTools.Button {
-    // Check if the class has already been created.
     if (!WorkflowEditorComponent.RemoveButton) {
-      // If not, create it once and store it in the static property.
       WorkflowEditorComponent.RemoveButton = joint.linkTools.Button.extend({
         name: "remove-button",
         options: {
           markup: [
+            {
+              tagName: "circle",
+              selector: "hit-area",
+              attributes: {
+                r: 10,
+                fill: "#000",
+                "fill-opacity": 0.001,
+                stroke: "none",
+                "pointer-events": "visibleFill",
+                cursor: "pointer",
+              },
+            },

Review Comment:
   I modified the existing code by changing to `"pointer-events": 
"visibleFill"`. I tested and it works well without having to create an 
additional object and the visibility seems to look exactly the same. Can you 
elaborate please?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to